Topic: Server bouncing mail due to blocklist shut-down (resolved)
Edit: TL;DR: remove references to blocklists in the "smtpd_recipient_restrictions" variable in /etc/postfix/main.cf.
============ Required information ====
- iRedMail version: 0.8.3
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): LDAP (MySQL appears to be used for stuff as well)
Mail Storage:
- Path:
+ /var/vmail
+ /var/vmail/vmail1
- Linux/BSD distribution name and version: Debian Squeeze (oldstable)
root@mail:~# cat /proc/version
Linux version 2.6.32-5-amd64 (Debian 2.6.32-48squeeze3) (dannf@debian.org) (gcc version 4.3.5 (Debian 4.3.5
-4) ) #1 SMP Fri May 10 08:43:19 UTC 2013
- Related log if you're reporting an issue: Sample bounce (trimmed,e-mail mangled):
This message was created automatically by mail delivery software.
A message that you sent could not be delivered to one or more of its
recipients. This is a permanent error. The following address(es) failed:
IT AT pirateparty.ca
SMTP error from remote mail server after RCPT TO:<IT AT pirateparty.ca>:
host mail.pirateparty.ca [192.95.44.161]: 554 5.7.1 Service unavailable; Client host [184.170.136.98] blocked using dnsbl.ahbl.o
+rg; List shut down. See:
http://www.ahbl.org/content/last-notice-wildcarding-services-jan-1st
====
As you can tell from the software verions, our server has not been updated in some time. Apparently on or about Jan 1st, one of the block-lists used by our server started wildcarding all domains. While a proper fix is to install updated software (we have been planning on a migration for moinths), and migrate the data; I have not been able to get a temporary fix of disabling the block-list working. I worry the blocks may now be stored in the postfix policyd now and may be migrated with the data.
Things I have tried:
Initial edits:
/etc/mail/spamassassin/local.cf
-> added:
skip_rbl_checks 1 # temporary measure until ahbl.org is disabled
Set all of the scoring rules to 0 (no effect noticed)/etc/amavis/conf.d/50-user (above the do not edit line)
$sa_local_tests_only=1;/etc/hosts # tried null-routing the blocklists
# Can't figure out how to disable misbehaving block-list
127.0.0.1 dnsbl.ahbl.org
127.0.0.1 rhsbl.ahbl.org
(/etc/nsswitch.conf says this *should* take precedence over dns..)
I have since revereted the changes to /etc/mail/spamassassin/local.cf and /etc/amavis/conf.d/50-user
and tried implementing the advice in this post: http://www.iredmail.org/forum/post29696.html#p29696
(still no effect)
I tried poking around in the iredadmin interface and could not find a option to disable certain block-lists. I found it strange that the Admin interface could not do much configuration when I was encountering configuration file after configuration file telling me not to edit things.
BTW, I got into contact with the people in charge of the AHBL via e-mail. They pointed me to this thread for clues:
http://www.gossamer-threads.com/lists/s … ers/190473
Are you actively updating the spamassassin rules daily/weekly using
'sa-update' - usually via a cronjob in /etc/cron.daily or /etc/cron.weekly?If you aren't, then you should be.
https://wiki.apache.org/spamassassin/RuleUpdates
If your using debian/ubuntu/centos/rhel/fedora you should already be
doing that update automatically, unless it was disabled by someone.The rules to disable AHBL were put in back in April or so by the SA
developers in preparation for the 1st, so it sounds like the updates are
not being done.
First, I think she is wrong that Debian runs sa-update by default (but have not double-checked)
Second, the thread was helpful. My version of Spamassassin is no longer supported, and thus does not get updates anyway:
root@mail:~# dpkg -l spamassassin
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Description
+++-=================-=================-==================================================
ii spamassassin 3.3.1-1.1 Perl-based spam filter using text analysis
Note: v3.4 suports the "dns_query_restriction deny bldomain" directive.
Would need debian Stable (Wheezy) for that.
Source: DNS Blocklists (was over-relying on this one as we are using Postfix/dovecot, not apache for mail)
http://wiki.apache.org/spamassassin/DnsBlocklists
Edit: I tried setting "BLACKLISTING=0" in /etc/postfix-policyd.conf
root@mail:~# /etc/init.d/postfix-policyd restart
Restarting Postfix greylisting policy daemon: postfix-policyd.
.. mail still bounces.
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.