Not Sending or Receiveing Emails (no errors, no returned messages)

Discussion in 'Installation/Configuration' started by Nyx_, Dec 4, 2021.

  1. Nyx_

    Nyx_ Member HowtoForge Supporter

    Hello Folks. Good day.

    First of all, I'd like to Congratulate and Thanks the creator and contributor of this outstanding project.
    I discovered it very recently and I'm eager to put it to work.
    I'm facing few issues and I spent literraly hours on the forums to gather more information. I was able to get/solve few things, but there's some still to be worked.

    In this particular thread, I'd like to fix the issue I'm having with e-mail.

    I created a Domain and Mailbox using the ISPConfig Web Interface. I am able use RoundCube to login into that Mailbox and I'm also able to connect to that mailbox with a mail client (Evolution in my case). Even the auto-config works fine (as I have added the SRV records to help with that).
    The issue is that, althought I got no error when sending a message, the message is never delivered neither returned... Same thing when I try to send a email from another domain to this inbox... I got no error on the client but the message are not received on my domain.

    If I send an email to myself, nothing is received (no message, no error (but I can see the message on the "sent" folder))

    I'm providing my setup information below.
    I really hope somebody can shed a light on this issue.
    Thank you.
    Code:
    ##### SERVER #####
    IP-address (as per hostname): ***.***.***.***
    [WARN] could not determine server's ip address by ifconfig
    [INFO] OS version is Ubuntu 20.04.3 LTS
    [INFO] uptime:  14:14:55 up 14:41,  1 user,  load average: 0.04, 0.04, 0.06
    [INFO] memory:
                  total        used        free      shared  buff/cache   available
    Mem:          3.8Gi       1.7Gi       1.0Gi        56Mi       1.1Gi       2.0Gi
    Swap:         1.9Gi       7.0Mi       1.9Gi
    [INFO] systemd failed services status:
      UNIT LOAD ACTIVE SUB DESCRIPTION
    0 loaded units listed.
    
    [INFO] ISPConfig is installed.
    
    ##### ISPCONFIG #####
    ISPConfig version is 3.2.7p1
    
    
    ##### VERSION CHECK #####
    
    [INFO] php (cli) version is 7.4.3
    [INFO] php-cgi (used for cgi php in default vhost!) is version 7.4.3
    
    ##### PORT CHECK #####
    
    
    ##### MAIL SERVER CHECK #####
    
    
    ##### RUNNING SERVER PROCESSES #####
    
    [INFO] I found the following web server(s):
       Apache 2 (PID 2038)
    [INFO] I found the following mail server(s):
       Postfix (PID 3124)
    [INFO] I found the following pop3 server(s):
       Dovecot (PID 1851)
    [INFO] I found the following imap server(s):
       Dovecot (PID 1851)
    [INFO] I found the following ftp server(s):
       PureFTP (PID 2193)
    
    ##### LISTENING PORTS #####
    (only       ()
    Local       (Address)
    [anywhere]:993       (1851/dovecot)
    [anywhere]:995       (1851/dovecot)
    [localhost]:10025       (3124/master)
    [localhost]:3306       (1996/mysqld)
    [localhost]:10027       (3124/master)
    [anywhere]:587       (3124/master)
    [localhost]:11211       (1858/memcached)
    [anywhere]:110       (1851/dovecot)
    [anywhere]:143       (1851/dovecot)
    [anywhere]:111       (1/init)
    [anywhere]:465       (3124/master)
    ***.***.***.***:53       (1859/named)
    [anywhere]:21       (2193/pure-ftpd)
    [localhost]:53       (1859/named)
    ***.***.***.***:53       (859/systemd-resolve)
    [anywhere]:22       (1947/sshd:)
    [anywhere]:25       (3124/master)
    [localhost]:953       (1859/named)
    *:*:*:*::*:993       (1851/dovecot)
    *:*:*:*::*:995       (1851/dovecot)
    *:*:*:*::*:587       (3124/master)
    [localhost]10       (1851/dovecot)
    [localhost]43       (1851/dovecot)
    [localhost]11       (1/init)
    *:*:*:*::*:8080       (2038/apache2)
    *:*:*:*::*:80       (2038/apache2)
    *:*:*:*::*:465       (3124/master)
    *:*:*:*::*:8081       (2038/apache2)
    *:*:*:*::*:21       (2193/pure-ftpd)
    *:*:*:*::*:22       (1947/sshd:)
    *:*:*:*::*:25       (3124/master)
    *:*:*:*::*:443       (2038/apache2)
    
    
    
    
    ##### IPTABLES #####
    Chain INPUT (policy DROP)
    target     prot opt source               destination         
    f2b-sshd   tcp  --  [anywhere]/0            [anywhere]/0            multiport dports 22
    ufw-before-logging-input  all  --  [anywhere]/0            [anywhere]/0           
    ufw-before-input  all  --  [anywhere]/0            [anywhere]/0           
    ufw-after-input  all  --  [anywhere]/0            [anywhere]/0           
    ufw-after-logging-input  all  --  [anywhere]/0            [anywhere]/0           
    ufw-reject-input  all  --  [anywhere]/0            [anywhere]/0           
    ufw-track-input  all  --  [anywhere]/0            [anywhere]/0           
    
    Chain FORWARD (policy DROP)
    target     prot opt source               destination         
    ufw-before-logging-forward  all  --  [anywhere]/0            [anywhere]/0           
    ufw-before-forward  all  --  [anywhere]/0            [anywhere]/0           
    ufw-after-forward  all  --  [anywhere]/0            [anywhere]/0           
    ufw-after-logging-forward  all  --  [anywhere]/0            [anywhere]/0           
    ufw-reject-forward  all  --  [anywhere]/0            [anywhere]/0           
    ufw-track-forward  all  --  [anywhere]/0            [anywhere]/0           
    
    Chain OUTPUT (policy ACCEPT)
    target     prot opt source               destination         
    ufw-before-logging-output  all  --  [anywhere]/0            [anywhere]/0           
    ufw-before-output  all  --  [anywhere]/0            [anywhere]/0           
    ufw-after-output  all  --  [anywhere]/0            [anywhere]/0           
    ufw-after-logging-output  all  --  [anywhere]/0            [anywhere]/0           
    ufw-reject-output  all  --  [anywhere]/0            [anywhere]/0           
    ufw-track-output  all  --  [anywhere]/0            [anywhere]/0           
    
    Chain f2b-sshd (1 references)
    target     prot opt source               destination         
    RETURN     all  --  [anywhere]/0            [anywhere]/0           
    
    Chain ufw-after-forward (1 references)
    target     prot opt source               destination         
    
    Chain ufw-after-input (1 references)
    target     prot opt source               destination         
    ufw-skip-to-policy-input  udp  --  [anywhere]/0            [anywhere]/0            udp dpt:137
    ufw-skip-to-policy-input  udp  --  [anywhere]/0            [anywhere]/0            udp dpt:138
    ufw-skip-to-policy-input  tcp  --  [anywhere]/0            [anywhere]/0            tcp dpt:139
    ufw-skip-to-policy-input  tcp  --  [anywhere]/0            [anywhere]/0            tcp dpt:445
    ufw-skip-to-policy-input  udp  --  [anywhere]/0            [anywhere]/0            udp dpt:67
    ufw-skip-to-policy-input  udp  --  [anywhere]/0            [anywhere]/0            udp dpt:68
    ufw-skip-to-policy-input  all  --  [anywhere]/0            [anywhere]/0            ADDRTYPE match dst-type BROADCAST
    
    Chain ufw-after-logging-forward (1 references)
    target     prot opt source               destination         
    LOG        all  --  [anywhere]/0            [anywhere]/0            limit: avg 3/min burst 10 LOG flags 0 level 4 prefix "[UFW BLOCK] "
    
    Chain ufw-after-logging-input (1 references)
    target     prot opt source               destination         
    LOG        all  --  [anywhere]/0            [anywhere]/0            limit: avg 3/min burst 10 LOG flags 0 level 4 prefix "[UFW BLOCK] "
    
    Chain ufw-after-logging-output (1 references)
    target     prot opt source               destination         
    
    Chain ufw-after-output (1 references)
    target     prot opt source               destination         
    
    Chain ufw-before-forward (1 references)
    target     prot opt source               destination         
    ACCEPT     all  --  [anywhere]/0            [anywhere]/0            ctstate RELATED,ESTABLISHED
    ACCEPT     icmp --  [anywhere]/0            [anywhere]/0            icmptype 3
    ACCEPT     icmp --  [anywhere]/0            [anywhere]/0            icmptype 11
    ACCEPT     icmp --  [anywhere]/0            [anywhere]/0            icmptype 12
    ACCEPT     icmp --  [anywhere]/0            [anywhere]/0            icmptype 8
    ufw-user-forward  all  --  [anywhere]/0            [anywhere]/0           
    
    Chain ufw-before-input (1 references)
    target     prot opt source               destination         
    ACCEPT     all  --  [anywhere]/0            [anywhere]/0           
    ACCEPT     all  --  [anywhere]/0            [anywhere]/0            ctstate RELATED,ESTABLISHED
    ufw-logging-deny  all  --  [anywhere]/0            [anywhere]/0            ctstate INVALID
    DROP       all  --  [anywhere]/0            [anywhere]/0            ctstate INVALID
    ACCEPT     icmp --  [anywhere]/0            [anywhere]/0            icmptype 3
    ACCEPT     icmp --  [anywhere]/0            [anywhere]/0            icmptype 11
    ACCEPT     icmp --  [anywhere]/0            [anywhere]/0            icmptype 12
    ACCEPT     icmp --  [anywhere]/0            [anywhere]/0            icmptype 8
    ACCEPT     udp  --  [anywhere]/0            [anywhere]/0            udp spt:67 dpt:68
    ufw-not-local  all  --  [anywhere]/0            [anywhere]/0           
    ACCEPT     udp  --  [anywhere]/0            ***.***.***.***          udp dpt:5353
    ACCEPT     udp  --  [anywhere]/0            ***.***.***.***      udp dpt:1900
    ufw-user-input  all  --  [anywhere]/0            [anywhere]/0           
    
    Chain ufw-before-logging-forward (1 references)
    target     prot opt source               destination         
    
    Chain ufw-before-logging-input (1 references)
    target     prot opt source               destination         
    
    Chain ufw-before-logging-output (1 references)
    target     prot opt source               destination         
    
    Chain ufw-before-output (1 references)
    target     prot opt source               destination         
    ACCEPT     all  --  [anywhere]/0            [anywhere]/0           
    ACCEPT     all  --  [anywhere]/0            [anywhere]/0            ctstate RELATED,ESTABLISHED
    ufw-user-output  all  --  [anywhere]/0            [anywhere]/0           
    
    Chain ufw-logging-allow (0 references)
    target     prot opt source               destination         
    LOG        all  --  [anywhere]/0            [anywhere]/0            limit: avg 3/min burst 10 LOG flags 0 level 4 prefix "[UFW ALLOW] "
    
    Chain ufw-logging-deny (2 references)
    target     prot opt source               destination         
    RETURN     all  --  [anywhere]/0            [anywhere]/0            ctstate INVALID limit: avg 3/min burst 10
    LOG        all  --  [anywhere]/0            [anywhere]/0            limit: avg 3/min burst 10 LOG flags 0 level 4 prefix "[UFW BLOCK] "
    
    Chain ufw-not-local (1 references)
    target     prot opt source               destination         
    RETURN     all  --  [anywhere]/0            [anywhere]/0            ADDRTYPE match dst-type LOCAL
    RETURN     all  --  [anywhere]/0            [anywhere]/0            ADDRTYPE match dst-type MULTICAST
    RETURN     all  --  [anywhere]/0            [anywhere]/0            ADDRTYPE match dst-type BROADCAST
    ufw-logging-deny  all  --  [anywhere]/0            [anywhere]/0            limit: avg 3/min burst 10
    DROP       all  --  [anywhere]/0            [anywhere]/0           
    
    Chain ufw-reject-forward (1 references)
    target     prot opt source               destination         
    
    Chain ufw-reject-input (1 references)
    target     prot opt source               destination         
    
    Chain ufw-reject-output (1 references)
    target     prot opt source               destination         
    
    Chain ufw-skip-to-policy-forward (0 references)
    target     prot opt source               destination         
    DROP       all  --  [anywhere]/0            [anywhere]/0           
    
    Chain ufw-skip-to-policy-input (7 references)
    target     prot opt source               destination         
    DROP       all  --  [anywhere]/0            [anywhere]/0           
    
    Chain ufw-skip-to-policy-output (0 references)
    target     prot opt source               destination         
    ACCEPT     all  --  [anywhere]/0            [anywhere]/0           
    
    Chain ufw-track-forward (1 references)
    target     prot opt source               destination         
    
    Chain ufw-track-input (1 references)
    target     prot opt source               destination         
    
    Chain ufw-track-output (1 references)
    target     prot opt source               destination         
    ACCEPT     tcp  --  [anywhere]/0            [anywhere]/0            ctstate NEW
    ACCEPT     udp  --  [anywhere]/0            [anywhere]/0            ctstate NEW
    
    Chain ufw-user-forward (1 references)
    target     prot opt source               destination         
    
    Chain ufw-user-input (1 references)
    target     prot opt source               destination         
    ACCEPT     tcp  --  [anywhere]/0            [anywhere]/0            tcp dpt:21
    ACCEPT     tcp  --  [anywhere]/0            [anywhere]/0            tcp dpt:22
    ACCEPT     tcp  --  [anywhere]/0            [anywhere]/0            tcp dpt:25
    ACCEPT     tcp  --  [anywhere]/0            [anywhere]/0            tcp dpt:53
    ACCEPT     tcp  --  [anywhere]/0            [anywhere]/0            tcp dpt:80
    ACCEPT     tcp  --  [anywhere]/0            [anywhere]/0            tcp dpt:110
    ACCEPT     tcp  --  [anywhere]/0            [anywhere]/0            tcp dpt:143
    ACCEPT     tcp  --  [anywhere]/0            [anywhere]/0            tcp dpt:443
    ACCEPT     tcp  --  [anywhere]/0            [anywhere]/0            tcp dpt:465
    ACCEPT     tcp  --  [anywhere]/0            [anywhere]/0            tcp dpt:587
    ACCEPT     tcp  --  [anywhere]/0            [anywhere]/0            tcp dpt:993
    ACCEPT     tcp  --  [anywhere]/0            [anywhere]/0            tcp dpt:995
    ACCEPT     tcp  --  [anywhere]/0            [anywhere]/0            tcp dpt:8080
    ACCEPT     tcp  --  [anywhere]/0            [anywhere]/0            tcp dpt:8081
    ACCEPT     udp  --  [anywhere]/0            [anywhere]/0            udp dpt:53
    ACCEPT     tcp  --  [anywhere]/0            [anywhere]/0            tcp dpt:10024
    ACCEPT     tcp  --  [anywhere]/0            [anywhere]/0            tcp dpt:10025
    ACCEPT     tcp  --  [anywhere]/0            [anywhere]/0            tcp dpt:10026
    
    Chain ufw-user-limit (0 references)
    target     prot opt source               destination         
    LOG        all  --  [anywhere]/0            [anywhere]/0            limit: avg 3/min burst 5 LOG flags 0 level 4 prefix "[UFW LIMIT BLOCK] "
    REJECT     all  --  [anywhere]/0            [anywhere]/0            reject-with icmp-port-unreachable
    
    Chain ufw-user-limit-accept (0 references)
    target     prot opt source               destination         
    ACCEPT     all  --  [anywhere]/0            [anywhere]/0           
    
    Chain ufw-user-logging-forward (0 references)
    target     prot opt source               destination         
    
    Chain ufw-user-logging-input (0 references)
    target     prot opt source               destination         
    
    Chain ufw-user-logging-output (0 references)
    target     prot opt source               destination         
    
    Chain ufw-user-output (1 references)
    target     prot opt source               destination         
    
    
    ##### LET'S ENCRYPT #####
    Certbot is installed in /usr/bin/letsencrypt
    Code:
    # lsb_release -a
    No LSB modules are available.
    Distributor ID:   Ubuntu
    Description:   Ubuntu 20.04.3 LTS
    Release:   20.04
    Codename:   focal
    Code:
    # php -v
    PHP 7.4.3 (cli) (built: Oct 25 2021 18:20:54) ( NTS )
    Copyright (c) The PHP Group
    Zend Engine v3.4.0, Copyright (c) Zend Technologies
        with Zend OPcache v7.4.3, Copyright (c), by Zend Technologies
    And Here's the portion of /var/log/mail.log after trying to send a email to myself using Roundcube.:
    Code:
    Dec  4 14:20:11 argon dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=295057, secured, session=<Hhd1PFXSEpx/AAAB>
    Dec  4 14:20:11 argon dovecot: imap([email protected])<295057><Hhd1PFXSEpx/AAAB>: Logged out in=32 out=520 deleted=0 expunged=0 trashed=0 hdr_count=0 hdr_bytes=0 body_count=0 body_bytes=0
    Dec  4 14:20:12 argon dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=295059, secured, session=<Wx53PFXSFJx/AAAB>
    Dec  4 14:20:12 argon dovecot: imap([email protected])<295059><Wx53PFXSFJx/AAAB>: Logged out in=44 out=627 deleted=0 expunged=0 trashed=0 hdr_count=0 hdr_bytes=0 body_count=0 body_bytes=0
    Dec  4 14:20:29 argon postfix/smtpd[291900]: connect from localhost[127.0.0.1]
    Dec  4 14:20:29 argon postfix/smtpd[291900]: NOQUEUE: filter: RCPT from localhost[127.0.0.1]: <[email protected]>: Sender address triggers FILTER lmtp:[127.0.0.1]:10026; from=<[email protected]> to=<[email protected]> proto=ESMTP helo=<mydomain.net>
    Dec  4 14:20:29 argon postfix/smtpd[291900]: NOQUEUE: reject: RCPT from localhost[127.0.0.1]: 550 5.1.1 <[email protected]>: Recipient address rejected: User unknown in virtual mailbox table; from=<[email protected]> to=<[email protected]> proto=ESMTP helo=<mydomain.net>
    Dec  4 14:20:29 argon postfix/smtpd[291900]: disconnect from localhost[127.0.0.1] ehlo=1 auth=1 mail=1 rcpt=0/1 rset=1 quit=1 commands=5/6
    Dec  4 14:20:43 argon postfix/smtpd[291900]: connect from localhost[127.0.0.1]
    Dec  4 14:20:43 argon postfix/smtpd[291900]: NOQUEUE: filter: RCPT from localhost[127.0.0.1]: <[email protected]>: Sender address triggers FILTER lmtp:[127.0.0.1]:10026; from=<[email protected]> to=<[email protected]> proto=ESMTP helo=<mydomain.net>
    Dec  4 14:20:43 argon postfix/smtpd[291900]: 25F97122FDC: client=localhost[127.0.0.1], sasl_method=LOGIN, [email protected]
    Dec  4 14:20:43 argon postfix/cleanup[295062]: 25F97122FDC: message-id=<[email protected]>
    Dec  4 14:20:43 argon postfix/qmgr[3126]: 25F97122FDC: from=<[email protected]>, size=582, nrcpt=1 (queue active)
    Dec  4 14:20:43 argon postfix/smtpd[291900]: disconnect from localhost[127.0.0.1] ehlo=1 auth=1 mail=1 rcpt=1 data=1 quit=1 commands=6
    Dec  4 14:20:43 argon postfix/lmtp[295063]: connect to 127.0.0.1[127.0.0.1]:10026: Connection refused
    Dec  4 14:20:43 argon dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=295066, secured, session=<o5pSPlXSLpx/AAAB>
    Dec  4 14:20:43 argon postfix/lmtp[295063]: 25F97122FDC: to=<[email protected]>, relay=none, delay=0.12, delays=0.08/0.05/0/0, dsn=4.4.1, status=deferred (connect to 127.0.0.1[127.0.0.1]:10026: Connection refused)
    Dec  4 14:20:43 argon dovecot: imap([email protected])<295066><o5pSPlXSLpx/AAAB>: Logged out in=449 out=701 deleted=0 expunged=0 trashed=0 hdr_count=0 hdr_bytes=0 body_count=0 body_bytes=0
    Dec  4 14:20:43 argon dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=295068, secured, session=<BehbPlXSMpx/AAAB>
    Dec  4 14:20:43 argon dovecot: imap([email protected])<295068><BehbPlXSMpx/AAAB>: Logged out in=70 out=737 deleted=0 expunged=0 trashed=0 hdr_count=0 hdr_bytes=0 body_count=0 body_bytes=0
    Dec  4 14:20:44 argon dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=295071, secured, session=<lTFgPlXSNJx/AAAB>
    Dec  4 14:20:44 argon dovecot: imap([email protected])<295071><lTFgPlXSNJx/AAAB>: Logged out in=120 out=817 deleted=0 expunged=0 trashed=0 hdr_count=0 hdr_bytes=0 body_count=0 body_bytes=0
    Dec  4 14:20:44 argon dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=295072, secured, session=<AnJgPlXSNpx/AAAB>
    Dec  4 14:20:44 argon dovecot: imap([email protected])<295072><AnJgPlXSNpx/AAAB>: Logged out in=76 out=658 deleted=0 expunged=0 trashed=0 hdr_count=0 hdr_bytes=0 body_count=0 body_bytes=0
     
  2. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    Log shows errors:
    Code:
    Recipient address rejected: User unknown in virtual mailbox table
    That is why that mail can not be delivered. The sender should get some feedback, though.
    Another error:
    Code:
     connect to 127.0.0.1[127.0.0.1]:10026: Connection refused
    Looks like e-mail setup on that server does not work. Verify configuration files, compare what is in the Perfect Server Guide. Or how did you install this host?
     
  3. Nyx_

    Nyx_ Member HowtoForge Supporter

    Hello @Taleman. Thank for the reply.
    Well, I checked several files and didn't find anything obviously different.
    I then decided to delete everything and start over again, installed from scratch, from OS installed and following meticulously the Perfect Server guide.
    Websites are created ok, Let's encrypt certificates generated and installed, ok.
    But email continues behaving the same way, not error from roundcube when I send a message from it's interface, but message is not delivered to the destination and it's neither returned..
    The same way, if I send the message from a external provider to the server email, not error is returned but no message is delivered....
    Anyway....
    What config or log files do you need recommend me to post here to help fix this problem.
    Again, Thanks a lot.
     
  4. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    My signature has link to e-mail tutorial, compare that to what you have done so far. Tutorial has some troubleshooting instructions.
     
  5. till

    till Super Moderator Staff Member ISPConfig Developer

    Seems as if you are using a setup with amavisd and amavisd has not been started. This happens e.g. when there are problems with our hostname setup. Try to start amavis and if it does not start, check mail.log to see why.
     
  6. Nyx_

    Nyx_ Member HowtoForge Supporter

    Hello. Thanks for the feedback @Taleman and @till.
    I was able to find and solve the issue. It was, indeed, related to amavis service. This was what I was getting on service status:
    Code:
    ● amavis.service - LSB: Starts amavisd-new mailfilter
         Loaded: loaded (/etc/init.d/amavis; generated)
         Active: active (exited) since Mon 2021-12-06 10:33:20 -03; 1h 7min ago
           Docs: man:systemd-sysv-generator(8)
        Process: 1854 ExecStart=/etc/init.d/amavis start (code=exited, status=0/SUCCESS)
    
    Dec 06 10:33:20 server.fqdn amavis[2513]: Net::Server: 2021/12/06-10:33:20 Amavis (type Net::Server::PreForkSimple) starting! pid(2513)
    Dec 06 10:33:20 server.fqdn amavis[2513]: Net::Server: Binding to UNIX socket file "/var/lib/amavis/amavisd.sock"
    Dec 06 10:33:20 server.fqdn amavis[2513]: Net::Server: Binding to TCP port 10024 on host 127.0.0.1 with IPv4
    Dec 06 10:33:20 server.fqdn amavis[2513]: Net::Server: Binding to TCP port 10024 on host ::1 with IPv6
    Dec 06 10:33:20 server.fqdn amavis[2513]: (!)Net::Server: 2021/12/06-10:33:20 Can't connect to TCP port 10024 on ::1 [Cannot assign requested addr>
    Dec 06 10:33:20 server.fqdn amavis[2513]: sd_notify (no socket): STOPPING=1\nSTATUS=Server rundown, notifying child processes.
    Dec 06 10:33:20 server.fqdn amavis[2513]: Net::Server: 2021/12/06-10:33:20 Server closing!
    Dec 06 10:33:20 server.fqdn amavis[2513]: sd_notify (no socket): STATUS=Child processes have been stopped.
    Dec 06 10:33:20 server.fqdn amavis[1854]: amavisd-new.
    Dec 06 10:33:20 server.fqdn systemd[1]: Started LSB: Starts amavisd-new mailfilter.
    
    This line caught my attention:
    Code:
    Dec 06 10:33:20 server.fqdn amavis[2513]: (!)Net::Server: 2021/12/06-10:33:20 Can't connect to TCP port 10024 on ::1 [Cannot assign requested addr>
    
    ::1 is IPv6 related address and the server I'm using had the IPv6 stack disable. After enabling it, the amavis service was started working and emails are now being received and delivered.

    Thanks a lot for the help.
    Best Regards.
     
  7. Nyx_

    Nyx_ Member HowtoForge Supporter

    Alternatively, Adding the following line on the /etc/amavis/conf.d/50-user also makes amavis not require IPv6 to work.
    Code:
    $inet_socket_bind = '127.0.0.1';
    
     

Share This Page