mailserver2 / mailserver

Simple and full-featured mail server using Docker
https://store.docker.com/community/images/mailserver2/mailserver
MIT License
133 stars 28 forks source link

[FEATURE-Request] Add rbl_override functionality to Postfix #36

Closed sknight80 closed 3 years ago

sknight80 commented 3 years ago

Description

We want to add a whitelist functionality to postfix to make sure we can get emails from a sender who is trusted but listed on zen.spamhaus.org. More details in #35

Fixes # (issue)

Type of change

Please delete options that are not relevant.

Status

Todo List

How has this been tested ?

I did not tested. I used my solution from one of my oldest hardware/mailserver instances.

Describe the tests that you ran to verify your changes. Provide instructions so we can reproduce and please also list any relevant details of your test configuration.

Actually tested one of my live environment with the following cases:

Test 1 startup log:

mailserver_1    | [INFO] Created default (empty) rbl_override file
mailserver_1    | [INFO] RBL Override initialized

Test 2 startup log:

mailserver_1    | [INFO] /etc/postfix/rbl_override file found
mailserver_1    | [INFO] RBL Override initialized

Test 3 startup log:

mailserver_1    | [INFO] /etc/postfix/rbl_override file found
mailserver_1    | postmap: warning: /etc/postfix/rbl_override, line 2: expected format: key whitespace value
mailserver_1    | [INFO] RBL Override initialized
sknight80 commented 3 years ago

CC: @cracker0dks here is the PR. I need to test one of my servers.

AndrewSav commented 3 years ago

LGTM