postfix not sending mail

Discussion in 'Installation/Configuration' started by kwickcut, Nov 21, 2023.

  1. kwickcut

    kwickcut Member HowtoForge Supporter

    this is a fresh install. the mail is just sitting in queue . this is the last few lines of the mail log

    Code:
    Nov 21 03:15:03 myserver postfix/smtpd[306019]: connect from localhost[127.0.0.1]
    Nov 21 03:15:03 myserver postfix/smtpd[306019]: lost connection after CONNECT from localhost[127.0.0.1]
    Nov 21 03:15:03 myserver postfix/smtpd[306019]: disconnect from localhost[127.0.0.1] commands=0/0
    Nov 21 03:20:02 myserver dovecot: imap-login: Disconnected: Connection closed (disconnected before auth was ready, waited 0 secs): user=<>, rip=127.0.0.1, lip=127.0.0.1, secured, session=<a0cRFKEKGsh/AAAB>
    Nov 21 03:20:02 myserver dovecot: pop3-login: Disconnected: Connection closed (no auth attempts in 0 secs): user=<>, rip=127.0.0.1, lip=127.0.0.1, secured, session=<BFkRFKEKcNV/AAAB>
    Nov 21 03:20:02 myserver postfix/smtpd[306372]: connect from localhost[127.0.0.1]
    Nov 21 03:20:02 myserver postfix/smtpd[306372]: lost connection after CONNECT from localhost[127.0.0.1]
    Nov 21 03:20:02 myserver postfix/smtpd[306372]: disconnect from localhost[127.0.0.1] commands=0/0
    Nov 21 03:20:19 myserver postfix/qmgr[60130]: 66A452A3849: from=<[email protected]>, size=1831, nrcpt=1 (queue active)
    Nov 21 03:20:19 myserver postfix/lmtp[306386]: connect to 127.0.0.1[127.0.0.1]:10024: Connection refused
    Nov 21 03:20:19 myserver postfix/lmtp[306386]: 66A452A3849: to=<[email protected]>, relay=none, delay=54982, delays=54982/0.02/0/0, dsn=4.4.1, status=deferred (connect to 127.0.0.1[127.0.0.1]:10024: Connection refused)
    
    this is the mail log after i flush the queue
    Code:
    Nov 21 03:57:28 myservername postfix/qmgr[1528]: 2B9482A383C: from=<[email protected]>, size=551, nrcpt=1 (queue active)
    Nov 21 03:57:28 myservername postfix/qmgr[1528]: 887422A3871: from=<[email protected]>, size=1718, nrcpt=1 (queue active)
    Nov 21 03:57:28 myservername postfix/qmgr[1528]: 50C262A3862: from=<[email protected]>, size=1616, nrcpt=1 (queue active)
    Nov 21 03:57:28 myservername postfix/qmgr[1528]: A55342A386C: from=<[email protected]>, size=1528, nrcpt=1 (queue active)
    Nov 21 03:57:28 myservername postfix/qmgr[1528]: 66A452A3849: from=<[email protected]>, size=1831, nrcpt=1 (queue active)
    Nov 21 03:57:28 myservername postfix/qmgr[1528]: 483F72A3867: from=<[email protected]>, size=1586, nrcpt=1 (queue active)
    Nov 21 03:57:28 myservername postfix/lmtp[3358]: connect to 127.0.0.1[127.0.0.1]:10024: Connection refused
    Nov 21 03:57:28 myservername postfix/lmtp[3359]: connect to 127.0.0.1[127.0.0.1]:10024: Connection refused
    Nov 21 03:57:28 myservername postfix/lmtp[3361]: connect to 127.0.0.1[127.0.0.1]:10024: Connection refused
    Nov 21 03:57:28 myservername postfix/lmtp[3363]: connect to 127.0.0.1[127.0.0.1]:10024: Connection refused
    Nov 21 03:57:28 myservername postfix/lmtp[3365]: connect to 127.0.0.1[127.0.0.1]:10024: Connection refused
    Nov 21 03:57:28 myservername postfix/lmtp[3358]: 2B9482A383C: to=<[email protected]>, relay=none, delay=93118, delays=93118/0.03/0/0, dsn=4.4.1, status=deferred (connect to 127.0.0.1[127.0.0.1]:10024: Connection refused)
    Nov 21 03:57:28 myservername postfix/lmtp[3363]: A55342A386C: to=<[email protected]>, relay=none, delay=29442, delays=29442/0.06/0/0, dsn=4.4.1, status=deferred (connect to 127.0.0.1[127.0.0.1]:10024: Connection refused)
    Nov 21 03:57:28 myservername postfix/lmtp[3359]: 887422A3871: to=<[email protected]>, relay=none, delay=17041, delays=17041/0.04/0/0, dsn=4.4.1, status=deferred (connect to 127.0.0.1[127.0.0.1]:10024: Connection refused)
    Nov 21 03:57:28 myservername postfix/lmtp[3361]: 50C262A3862: to=<[email protected]>, relay=none, delay=51138, delays=51138/0.05/0/0, dsn=4.4.1, status=deferred (connect to 127.0.0.1[127.0.0.1]:10024: Connection refused)
    Nov 21 03:57:28 myservername postfix/lmtp[3365]: 66A452A3849: to=<[email protected]>, relay=none, delay=57211, delays=57211/0.06/0/0, dsn=4.4.1, status=deferred (connect to 127.0.0.1[127.0.0.1]:10024: Connection refused)
    Nov 21 03:57:28 myservername postfix/error[3374]: 483F72A3867: to=<[email protected]>, relay=none, delay=34997, delays=34997/0.23/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)

    kwick
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    If its a new install, then it should be using Rspamd. But according to the log, postfix tries to deliver emails trough amavisd. Most likely you changed spam filter from Rspamd to Amavisd under system > server config > mail after installation.
     
    kwickcut likes this.
  3. kwickcut

    kwickcut Member HowtoForge Supporter


    i should have been more clear.
    this is a new install using https://www.howtoforge.com/tutorial...l-pureftpd-bind-postfix-doveot-and-ispconfig/ with ubuntu 22.04.

    i have changed the requested settings and it was set to Amavisd to Rspamd under /system/server config/server/mail/Content Filter

    after making these changes i see that the settings are not updating.

    The following changes are not yet populated to all servers:
    update server settings: 2 is the message


    kwick
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    This means you used an old setup which, indeed still uses Amavisd. In this case, the spam filter must be changed back to amavisd as your system uses the old filter system, not the new one. Then you must check why amavisd does not start, a common reason is a misconfiguration of the /etc/hosts file, but you should be able to see the reason in /var/log/mail.log when you restart amavisd and then check whats get added at the end of the log file.


    Then your system has even more issues, likely missing php modules, you can find their reason by using debug mode: https://www.faqforge.com/linux/debugging-ispconfig-3-server-actions-in-case-of-a-failure/

    You should have used the install guide for Ubuntu 22.04 https://www.howtoforge.com/ispconfig-autoinstall-debian-ubuntu/ instead of the one for Ubuntu 20.04. The new guide sets up a more modern style setup and its way faster to install. Using the new guide is even explained at the beginning of the guide you use.
     
    ahrasis, kwickcut and Th0m like this.
  5. kwickcut

    kwickcut Member HowtoForge Supporter


    thank you for the reply. i will reload the system using the link you have provided. thank you very much. i have been trying to resolve what i can with google and most likly cause more headakes then solutions.


    kwick
     

Share This Page