turn rbl off for postfix and on for mailscanner / spamassassin

Bugs in eFa 4
Post Reply
stefandewal
Posts: 33
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: 17
Joined: 07 Feb 2017 16:26
Location: Canada

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: 33
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: 17
Joined: 07 Feb 2017 16:26
Location: Canada

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: 482
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
“We are stuck with technology when what we really want is just stuff that works.” -Douglas Adams

stefandewal
Posts: 33
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..

kalessin
Posts: 2
Joined: 17 Nov 2020 18:05

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

Post by kalessin » 17 Nov 2020 18:09

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

User avatar
pdwalker
Posts: 1383
Joined: 18 Mar 2015 09:16

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

Post by pdwalker » 18 Nov 2020 09:40

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

Post Reply