How to skip rbl check locally ?

Questions and answers about how to do stuff
Post Reply
nicola.piazzi
Posts: 282
Joined: 23 Apr 2015 09:45

How to skip rbl check locally ?

Post by nicola.piazzi » 14 May 2019 12:34

Hi
My efa receive emails from External and from internal addresses
I want to skip RBL check for internal address, i put these in local.cf

internal_networks 127.0.0.1
internal_networks 10.1.0.0/16
internal_networks 192.168.2.0/24
trusted_networks 127.0.0.1
trusted_networks 10.1.0.0/16
trusted_networks 192.168.2.0/24

but if i made a spamassassin -D of an internal message i see that rbl chechs are done
is there a way to skip ?

nicola.piazzi
Posts: 282
Joined: 23 Apr 2015 09:45

Re: How to skip rbl check locally ?

Post by nicola.piazzi » 15 May 2019 08:07

In effect seems that RBL are skipped when come from internal network but all URIBL are done in all domains found in the email
is possible to stop uribl check when email come from internal network ?

nicola.piazzi
Posts: 282
Joined: 23 Apr 2015 09:45

Re: How to skip rbl check locally ?

Post by nicola.piazzi » 15 May 2019 08:30

I found this solution
select count(from_domain) as a, from_domain from maillog group by from_domain order by a;
Then i take all most count domains and put into

uridnsbl_skip_domain gmail.com mrsend.com
etc etc

someone know if writing msend.com include also mail.mrsend.com
?

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

Re: How to skip rbl check locally ?

Post by henk » 15 May 2019 10:02

Just an idea: To bypass the uribl skipping issues, you could use EFA for inbound mail only.

nicola.piazzi
Posts: 282
Joined: 23 Apr 2015 09:45

Re: How to skip rbl check locally ?

Post by nicola.piazzi » 15 May 2019 10:05

this cannot be done because i wrote a lot of rules / plugins that get data from outgoing emails to analyze incoming emails
i know that i can use same database for all mailservers but it will be too complex

Post Reply