turn rbl off for postfix and on for mailscanner / spamassassin

Testing of eFa 4
Post Reply
stefandewal
Posts: 30
Joined: 16 Jan 2019 09:34

turn rbl off for postfix and on for mailscanner / spamassassin

Post by stefandewal » 21 Feb 2019 12:36

Hi,

I want to disable all rbl checks in postfix and enable them in mailscanner / spamassassin.

Can i do this via the efa shell or do i do this manually?

jon doe
Posts: 4
Joined: 07 Feb 2017 16:26

Re: turn rbl off for postfix and on for mailscanner / spamassassin

Post by jon doe » 21 Feb 2019 19:42

You do this manually as far as I know.

Comment out the line in main.cf for postfix.
#smtpd_client_restrictions = permit_sasl_authenticated, permit_mynetworks, reject_rbl_client zen.spamhaus.org

and enable the config in mailscanner.conf.
Spam List = BARRACUDA SORBS SPAMHAUS SPAMCOP

this will use a file called spam.lists which already has some default values.
I am sure you can customize this file and which RBL's you call to on the line above to tweak it for your needs.

Finally, restart both services (postfix and mailscanner) and you should be good.

stefandewal
Posts: 30
Joined: 16 Jan 2019 09:34

Re: turn rbl off for postfix and on for mailscanner / spamassassin

Post by stefandewal » 22 Feb 2019 08:23

thanks, thats what i thought also.
I want this because otherwise you have the risk of losing mail before its get in the quarantain list?

jon doe
Posts: 4
Joined: 07 Feb 2017 16:26

Re: turn rbl off for postfix and on for mailscanner / spamassassin

Post by jon doe » 25 Feb 2019 18:48

Yes
The mail would be rejected by postfix and never make it to mailscanner or show up in mailwatch. This the same reason I do the blocking in mailscanner.
The downside is that allowing the messages past postfix would increase processing on the server.

henk
Posts: 335
Joined: 14 Dec 2015 22:16
Location: Netherlands
Contact:

Re: turn rbl off for postfix and on for mailscanner / spamassassin

Post by henk » 26 Feb 2019 22:38

Comment out the line in main.cf for postfix.
#smtpd_client_restrictions = permit_sasl_authenticated, permit_mynetworks, reject_rbl_client zen.spamhaus.org
What about this? :shifty:

Code: Select all

smtpd_client_restrictions = permit_sasl_authenticated, permit_mynetworks
and what about the reject_non_fqdn_sender, reject_unknown_sender_domain?
#smtpd_sender_restrictions = permit_sasl_authenticated, check_sender_access hash:/etc/postfix/sender_access, reject_non_fqdn_sender, reject_unknown_sender_domain

Code: Select all

smtpd_sender_restrictions = permit_sasl_authenticated, check_sender_access hash:/etc/postfix/sender_access, reject_non_fqdn_sender

stefandewal
Posts: 30
Joined: 16 Jan 2019 09:34

Re: turn rbl off for postfix and on for mailscanner / spamassassin

Post by stefandewal » 27 Feb 2019 08:10

henk, i only removed the rbl checks in postfix. i left the rest ofcourse :P thanks for the tip..

Post Reply