Yesterday I updated all 5 of my servers with 3.1.15p3. This morning, I had no email for today. Normally I get email starting at 2am. So I checked the server and ran mailq and there are tons of messages stating: (delivery temporarily suspended: connect to 127.0.0.1 [127.0.0.1]:10024 : Connection Refused) I saw an old threat from 2015 and I ran the grep command for /etc/postfix/main.cf and the content_filter line is there for amavis and port 10024, and it's not commented. I have tried restarting amavis, restarting postfix, telling postfix to process the queue with "postqueue -f" but yet the email remains there. What can be done to get email flowing again??? At this point, all email here is down.
The message indicates that amavis is not running, restart it and it case it does not start, check the mail.log to find out why.
Im seeing this in /var/log/mail.log amavis[6027]: starting. /usr/sbin/amavisd-new at server.mydomain.com amavisd-new-2.11.0 (20160426), Unicode aware, LC_ALL="C", LANG="en_US.UTF-8" Feb 25 16:10:01 mail amavis[6043]: (!)Net::Server: 2020/02/25-16:10:01 Can't connect to TCP port 10024 on ::1 [Cannot assign requested address]\n at line 64 in file /usr/share/perl5/Net/Server/Proto/TCP.pm I have turned off IPV6 via the /etc/sysctl and via the grub. I ran the lsof -i :10024 command and nothing shows using that port
How do I get around this???? Email is accumulating. I have over 200 messages sitting here and its growing.
Have you tried rebooting the whole server? Did you try running a manual update and reconfigure Amavis? Code: cd /tmp wget https://www.ispconfig.org/downloads/ISPConfig-3.1.15p3.tar.gz tar xvfz ISPConfig-3.1.15p3.tar.gz cd ispconfig3_install/install php -q update.php Reconfigure services? <-- selected If that fails, try adding Code: $inet_socket_bind = '127.0.0.1'; to /etc/amavisd/amavisd.conf
yes rebooted whole server. And yes I did a manual update, as that's how I did it yesterday when I updated to 3.1.15p3. I dont have a /etc/amavisd/amavisd.conf file. I have a /etc/amavis/conf.d folder with a bunch of files that I've never messed with. So where is this amavisd.conf file because I dont have it.
I just ran a manual update again. No change the hosts file looks like this: 127.0.0.1 localhost 10.x.x.11 hosting0.domaindynohosting.com hosting0 10.x.x.12 mail.domain.com mail 10.x.x.13 db.domain.com db 10.x.x.14 ns1.domain.com ns1 10.x.x.15 ns2.domain.com ns2 # The following lines are desirable for IPv6 capable hosts #::1 ip6-localhost ip6-loopback #fe00::0 ip6-localnet #ff00::0 ip6-mcastprefix #ff02::1 ip6-allnodes #ff02::2 ip6-allrouters ~
Other articles out there say it's possible that something else is listening on 10024 but I dont see anything listening on that port.
FOUND IT!! It's the /etc/amavis/conf.d/50-user file that you add the $inet_socket_bind = '127.0.0.1'; to. I just added it, restarted amavis and presto, mail is being processed again. However, I'm seeing a lot of these: (doveconf: Warning: /etc/dovecot/dovecot.conf line 68: Global setting mail_plugins won't change the s) What is this???
You probably have a mail_plugins = [...] quota line earlier in your config file. It is just a warning that the second setting gets ignored.