can't send email after migration

Discussion in 'ISPConfig 3 Priority Support' started by jpcyrenne, Apr 5, 2019.

  1. jpcyrenne

    jpcyrenne Member HowtoForge Supporter

    Good Day,
    I purchased the migration tool and it works grrrrreat!

    I'm having an issue with one particular instance.
    I moved a CentOS6.5 ISPConfig 3.0.5 to a Ubuntu 18.04.2 LTS ISPConfig 3.1.13p1

    Emails don't seem to go out? I don't have any emails configured in ISPConfig (only the app needs to send). To the best of my knowledge, there wasn't any emails configured in the original CentOS6.5 box.

    I restarted Postfix to be sure, with no success.

    # tail -f /var/log/mail.log

    Using a mail shell command as non-root
    Apr 4 18:35:22 hote3 postfix/qmgr[8506]: E113F3625D7: from=<[email protected]>, size=432, nrcpt=1 (queue active)
    Apr 4 18:35:22 hote3 postfix/error[8533]: E113F3625D7: to=<[email protected]>, relay=none, delay=0.18, delays=0.16/0/0/0.02, dsn=4.4.1, status=deferred (delivery temporarily suspended: connect to 127.0.0.1[127.0.0.1]:10024: Connection refused)

    Using a mail shell command as root
    Apr 4 18:38:34 hote3 postfix/qmgr[8506]: 8B7463625D8: from=<[email protected]>, size=422, nrcpt=1 (queue active)
    Apr 4 18:38:34 hote3 postfix/error[8738]: 8B7463625D8: to=<[email protected]>, relay=none, delay=0.31, delays=0.24/0/0/0.06, dsn=4.4.1, status=deferred (delivery temporarily suspended: connect to 127.0.0.1[127.0.0.1]:10024: Connection refused)

    Sent by application:
    Apr 4 18:39:58 hote3 postfix/smtp[8899]: 91EF0361BC3: to=<[email protected]>, relay=none, delay=201933, delays=201933/0.22/0/0, dsn=4.4.1, status=deferred (connect to 127.0.0.1[127.0.0.1]:10024: Connection refused)
    Apr 4 18:39:58 hote3 postfix/smtp[8900]: F3639361FB2: to=<[email protected]>, relay=none, delay=96983, delays=96983/0.22/0/0, dsn=4.4.1, status=deferred (connect to 127.0.0.1[127.0.0.1]:10024: Connection refused)
    Apr 4 18:39:58 hote3 postfix/error[8738]: 6F503361FB9: to=<[email protected]>, relay=none, delay=88599, delays=88599/0.26/0/0.03, dsn=4.4.1, status=deferred (delivery temporarily suspended: connect to 127.0.0.1[127.0.0.1]:10024: Connection refused)
    Apr 4 18:39:58 hote3 postfix/error[8905]: 73AA83625D6: to=<[email protected]>, relay=none, delay=515, delays=515/0.26/0/0.04, dsn=4.4.1, status=deferred (delivery temporarily suspended: connect to 127.0.0.1[127.0.0.1]:10024: Connection refused)
    Apr 4 18:39:58 hote3 postfix/error[8907]: 4BE4E361C21: to=<[email protected]>, relay=none, delay=281646, delays=281646/0.27/0/0.03, dsn=4.4.1, status=deferred (delivery temporarily suspended: connect to 127.0.0.1[127.0.0.1]:10024: Connection refused)
    Apr 4 18:39:58 hote3 postfix/error[8903]: 65524361FB7: to=<[email protected]>, relay=none, delay=88599, delays=88599/0.26/0/0.05, dsn=4.4.1, status=deferred (delivery temporarily suspended: connect to 127.0.0.1[127.0.0.1]:10024: Connection refused)
    Apr 4 18:39:58 hote3 postfix/error[8904]: 769B2361BC2: to=<[email protected]>, relay=none, delay=201978, delays=201978/0.26/0/0.04, dsn=4.4.1, status=deferred (delivery temporarily suspended: connect to 127.0.0.1[127.0.0.1]:10024: Connection refused)
    Apr 4 18:39:58 hote3 postfix/error[8738]: 3EBE3361C20: to=<[email protected]>, relay=none, delay=281646, delays=281646/0.29/0/0.03, dsn=4.4.1, status=deferred (delivery temporarily suspended: connect to 127.0.0.1[127.0.0.1]:10024: Connection refused)

    Note: emails changed in log...
    # uname -a
    Linux hote3.xcancer.xx 4.15.0-46-generic #49-Ubuntu SMP Wed Feb 6 09:33:07 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

    Thanks ahead,

    JP
     
  2. jpcyrenne

    jpcyrenne Member HowtoForge Supporter

    Should I have port 10024 opened? A config somewhere ?
    Ref: (delivery temporarily suspended: connect to 127.0.0.1[127.0.0.1]:10024: Connection refused)

    # netstat -nltp
    Active Internet connections (only servers)
    Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
    tcp 0 0 127.0.0.1:10023 0.0.0.0:* LISTEN 1256/postgrey --pid
    tcp 0 0 127.0.0.1:10025 0.0.0.0:* LISTEN 17782/master
    tcp 0 0 127.0.0.1:10027 0.0.0.0:* LISTEN 17782/master
    tcp 0 0 0.0.0.0:587 0.0.0.0:* LISTEN 17782/master
    tcp 0 0 127.0.0.1:11211 0.0.0.0:* LISTEN 744/memcached
    tcp 0 0 0.0.0.0:110 0.0.0.0:* LISTEN 28011/dovecot
    tcp 0 0 0.0.0.0:143 0.0.0.0:* LISTEN 28011/dovecot
    tcp 0 0 0.0.0.0:465 0.0.0.0:* LISTEN 17782/master
    tcp 0 0 66.70.227.101:53 0.0.0.0:* LISTEN 3420/named
    tcp 0 0 127.0.0.1:53 0.0.0.0:* LISTEN 3420/named
    tcp 0 0 0.0.0.0:21 0.0.0.0:* LISTEN 3412/pure-ftpd (SER
    tcp 0 0 127.0.0.53:53 0.0.0.0:* LISTEN 562/systemd-resolve
    tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 1145/sshd
    tcp 0 0 0.0.0.0:25 0.0.0.0:* LISTEN 17782/master
    tcp 0 0 127.0.0.1:953 0.0.0.0:* LISTEN 3420/named
    tcp 0 0 0.0.0.0:993 0.0.0.0:* LISTEN 28011/dovecot
    tcp 0 0 0.0.0.0:995 0.0.0.0:* LISTEN 28011/dovecot
    tcp6 0 0 ::1:10023 :::* LISTEN 1256/postgrey --pid
    tcp6 0 0 :::3306 :::* LISTEN 22879/mysqld
    tcp6 0 0 :::587 :::* LISTEN 17782/master
    tcp6 0 0 :::110 :::* LISTEN 28011/dovecot
    tcp6 0 0 :::143 :::* LISTEN 28011/dovecot
    tcp6 0 0 :::8080 :::* LISTEN 1925/apache2
    tcp6 0 0 :::80 :::* LISTEN 1925/apache2
    tcp6 0 0 :::465 :::* LISTEN 17782/master
    tcp6 0 0 :::8081 :::* LISTEN 1925/apache2
    tcp6 0 0 :::53 :::* LISTEN 3420/named
    tcp6 0 0 :::21 :::* LISTEN 3412/pure-ftpd (SER
    tcp6 0 0 :::22 :::* LISTEN 1145/sshd
    tcp6 0 0 :::25 :::* LISTEN 17782/master
    tcp6 0 0 ::1:953 :::* LISTEN 3420/named
    tcp6 0 0 :::443 :::* LISTEN 1925/apache2
    tcp6 0 0 :::993 :::* LISTEN 28011/dovecot
    tcp6 0 0 :::995 :::* LISTEN 28011/dovecot

    [email protected]:~# netstat -nltp |grep 10024
    [email protected]:~# netstat -nltp |grep 10023
    tcp 0 0 127.0.0.1:10023 0.0.0.0:* LISTEN 1256/postgrey --pid
    tcp6 0 0 ::1:10023 :::* LISTEN 1256/postgrey --pid
     
  3. jpcyrenne

    jpcyrenne Member HowtoForge Supporter

    In /etc/postfix/master.cf, do I need both ports 10025 and 10027? Should there be a 10024 here?

    127.0.0.1:10025 inet n - n - - smtpd
    -o content_filter=
    -o local_recipient_maps=
    -o relay_recipient_maps=
    -o smtpd_restriction_classes=
    -o smtpd_client_restrictions=
    -o smtpd_helo_restrictions=
    -o smtpd_sender_restrictions=
    -o smtpd_recipient_restrictions=permit_mynetworks,reject
    -o mynetworks=127.0.0.0/8
    -o strict_rfc821_envelopes=yes
    -o receive_override_options=no_unknown_recipient_checks,no_header_body_checks
    -o smtp_send_xforward_command=yes
    -o disable_dns_lookups=yes


    127.0.0.1:10027 inet n - n - - smtpd
    -o content_filter=
    -o local_recipient_maps=
    -o relay_recipient_maps=
    -o smtpd_restriction_classes=
    -o smtpd_client_restrictions=
    -o smtpd_helo_restrictions=
    -o smtpd_sender_restrictions=
    -o smtpd_recipient_restrictions=permit_mynetworks,reject
    -o mynetworks=127.0.0.0/8
    -o strict_rfc821_envelopes=yes
    -o receive_override_options=no_unknown_recipient_checks,no_header_body_checks
    -o smtp_send_xforward_command=yes
    -o milter_default_action=accept
    -o milter_macro_daemon_name=ORIGINATING
    -o disable_dns_lookups=yes
     
  4. florian030

    florian030 ISPConfig Developer ISPConfig Developer

    start amavis and check , that you have a fqdn-hostname
     
  5. jpcyrenne

    jpcyrenne Member HowtoForge Supporter

    Thanks Florian,
    Oddly enough I got all the sent emails this morning at 7 am EST / 12 hours later? And I have a port 10024
    # netstat -nltp |grep 10024
    tcp 0 0 127.0.0.1:10024 0.0.0.0:* LISTEN 9258/amavisd-new (m
    tcp6 0 0 ::1:10024 :::* LISTEN 9258/amavisd-new (m

    Didn't do anything? Is there a cronjob or something that restarts process around that time?
    # crontab -l
    * * * * * /usr/local/ispconfig/server/server.sh 2>&1 | while read line; do echo `/bin/date` "$line" >> /var/log/ispconfig/cron.log; done
    * * * * * /usr/local/ispconfig/server/cron.sh 2>&1 | while read line; do echo `/bin/date` "$line" >> /var/log/ispconfig/cron.log; done

    Nothing in logs matching amavisd
    [email protected]:~# cat /var/log/ispconfig/cron.log | grep amav
    [email protected]:~#

    Note: I did fix the hostname last night (hostnamectl set-hostname ). Ubuntu doesn't let us create a FQDN at install I noticed. Something did happen 12 hours later.

    Thanks,

    JP
     

Share This Page