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?
turn rbl off for postfix and on for mailscanner / spamassassin
-
- Posts: 33
- Joined: 16 Jan 2019 09:34
Re: turn rbl off for postfix and on for mailscanner / spamassassin
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.
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.
-
- Posts: 33
- Joined: 16 Jan 2019 09:34
Re: turn rbl off for postfix and on for mailscanner / spamassassin
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?
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
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.
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
What about this?Comment out the line in main.cf for postfix.
#smtpd_client_restrictions = permit_sasl_authenticated, permit_mynetworks, reject_rbl_client zen.spamhaus.org
Code: Select all
smtpd_client_restrictions = permit_sasl_authenticated, permit_mynetworks
#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
-
- Posts: 33
- Joined: 16 Jan 2019 09:34
Re: turn rbl off for postfix and on for mailscanner / spamassassin
henk, i only removed the rbl checks in postfix. i left the rest ofcourse thanks for the tip..
Re: turn rbl off for postfix and on for mailscanner / spamassassin
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
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