Page 1 of 1

turn rbl off for postfix and on for mailscanner / spamassassin

Posted: 21 Feb 2019 12:36
by stefandewal
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?

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

Posted: 21 Feb 2019 19:42
by jon doe
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.

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

Posted: 22 Feb 2019 08:23
by stefandewal
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?

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

Posted: 25 Feb 2019 18:48
by jon doe
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.

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

Posted: 26 Feb 2019 22:38
by henk
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

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

Posted: 27 Feb 2019 08:10
by stefandewal
henk, i only removed the rbl checks in postfix. i left the rest ofcourse :P thanks for the tip..

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

Posted: 17 Nov 2020 18:09
by kalessin
Hey, how do you check that RBL's are working at spamassassin ? Using -D gives no useful info regarding that . And what's the difference with viewtopic.php?f=19&t=3821&p=16931#p14655

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

Posted: 18 Nov 2020 09:40
by pdwalker
It works for me. I can see the results of the RBL checks when I use the -D option.
Nov 18 17:40:15.773 [24344] dbg: async: calling callback on key dns:A:130.190.168.104.bl.mailspike.net
Nov 18 17:40:15.773 [24344] dbg: dns: hit <dns:130.190.168.104.bl.mailspike.net> 127.0.0.10