Mail stuck after update to 3.1.15p3 yesterday - All email down here

Discussion in 'General' started by Casbot, Feb 25, 2020.

  1. Casbot

    Casbot Member

    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.
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    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.
     
  3. Casbot

    Casbot Member

    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
     
  4. Casbot

    Casbot Member

    How do I get around this???? Email is accumulating. I have over 200 messages sitting here and its growing.
     
  5. Th0m

    Th0m ISPConfig Developer Staff Member ISPConfig Developer

    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
     
  6. Casbot

    Casbot Member

    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.
     
  7. Th0m

    Th0m ISPConfig Developer Staff Member ISPConfig Developer

    Did you reconfigure Amavis?

    I found that solution elsewhere, I'll check my config later
     
  8. Casbot

    Casbot Member

    I told it Yes when asked for reconfiguring services.
     
  9. Th0m

    Th0m ISPConfig Developer Staff Member ISPConfig Developer

    Can you share your /etc/hosts?

    It can't hurt to run a manual update and reconfigure Amavis now.
     
  10. Casbot

    Casbot Member

    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
    ~
     
  11. Th0m

    Th0m ISPConfig Developer Staff Member ISPConfig Developer

    Uncomment
    Code:
    ::1 ip6-localhost ip6-loopback
     
  12. Casbot

    Casbot Member

    Other articles out there say it's possible that something else is listening on 10024 but I dont see anything listening on that port.
     
  13. Casbot

    Casbot Member

    uncommenting that didnt help
     
  14. Casbot

    Casbot Member

    Plus, why would I want to keep the IPv6 line when I've disabled IPv6 on the box??
     
  15. Casbot

    Casbot Member

    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???
     
  16. Casbot

    Casbot Member

    Line 68 of the dovecot.conf file is this:
    mail_plugins = $mail_plugins quota
     
  17. Steini86

    Steini86 Active Member

    You probably have a mail_plugins = [...] quota
    line earlier in your config file. It is just a warning that the second setting gets ignored.
     

Share This Page