Spamassassin parameter "trusted_networks" does not work
Posted: 31 Jan 2020 05:26
I'm running my own mailserver (Lotus Domino) behind a dynamic IP. DDNS works perfectly.
efa project server is up and running and normally checks/delivers mail properly.
MailWatch Version: 1.2.14
Operating System Version: CentOS Linux 7 (Core)
Postfix Version: 3.3.0
MailScanner Version: 5.1.4
ClamAV Version: 0.101.5
SpamAssassin Version: 3.4.2
PHP Version: 7.2.26
MySQL Version: 10.1.41-MariaDB
efa is used for incoming mail only, outbound mail is handled by Domino and has no problems.
Unfortunately my ISP (3bb in Thailand) interferes in handling port 25. So I have the following scenario:
mail from internet (port 25) -> 3bb internal SMTP checker -> efa project -> Domino server -> user mail
From time to time the ISP assigns a new external IP. And here the problem comes into play.
Very many of the dynamic IPs of 3bb are listed bei Spamhouse. And that kills the process of accepting mails by efa:
<** 554 5.7.1 Service unavailable; Client host [14.207.140.204] blocked using zen.spamhaus.org; https://www.spamhaus.org/query/ip/14.207.140.204
When this IP is checked at the Blocklist Removal Center
https://www.spamhaus.org/lookup/
most of the time the IP is listed in the PBL.
Removing the IP from this list is an easy process and takes about 30 minutes to be effective.
The problem is that all mails are rejected during the period from changing the IP and removing the IP from the PBL.
I tried to solve that problem with the following entry in /etc/mail/spamassassin/local.cf:
trusted_networks 14.207. 182.88.
(dynamic IPs are are assigned from IP-ranges like that)
But that has no effect. Spamhouse listed IPs still kill the reception of mail.
Any idea what I can do? Any errors in the logic/notation?
Help is very appreciated.
Thank you.
efa project server is up and running and normally checks/delivers mail properly.
MailWatch Version: 1.2.14
Operating System Version: CentOS Linux 7 (Core)
Postfix Version: 3.3.0
MailScanner Version: 5.1.4
ClamAV Version: 0.101.5
SpamAssassin Version: 3.4.2
PHP Version: 7.2.26
MySQL Version: 10.1.41-MariaDB
efa is used for incoming mail only, outbound mail is handled by Domino and has no problems.
Unfortunately my ISP (3bb in Thailand) interferes in handling port 25. So I have the following scenario:
mail from internet (port 25) -> 3bb internal SMTP checker -> efa project -> Domino server -> user mail
From time to time the ISP assigns a new external IP. And here the problem comes into play.
Very many of the dynamic IPs of 3bb are listed bei Spamhouse. And that kills the process of accepting mails by efa:
<** 554 5.7.1 Service unavailable; Client host [14.207.140.204] blocked using zen.spamhaus.org; https://www.spamhaus.org/query/ip/14.207.140.204
When this IP is checked at the Blocklist Removal Center
https://www.spamhaus.org/lookup/
most of the time the IP is listed in the PBL.
Removing the IP from this list is an easy process and takes about 30 minutes to be effective.
The problem is that all mails are rejected during the period from changing the IP and removing the IP from the PBL.
I tried to solve that problem with the following entry in /etc/mail/spamassassin/local.cf:
trusted_networks 14.207. 182.88.
(dynamic IPs are are assigned from IP-ranges like that)
But that has no effect. Spamhouse listed IPs still kill the reception of mail.
Any idea what I can do? Any errors in the logic/notation?
Help is very appreciated.
Thank you.