Temporary MTA failure on relaying

Discussion in 'Installation/Configuration' started by Martin68Morava, Sep 28, 2022.

  1. Martin68Morava

    Martin68Morava New Member

    Good day,
    I have a fresh install of Debian 10.13, RoundCube and ISPConfig 3.2.8p1
    After sending the email, the following error appears:
    (guest 127.0.0.1[127.0.0.1] said: 451 4.5.0 id=02369-01 - Temporary MTA failure on relaying, From MTA() during fwd-connect (All attempts (1) failed connecting to smtp:127.0.0.1 :*): id=02369-01 (in reply to end of DATA command))
    How do I remove it?
    Thank you Martin
     
  2. Taleman

    Taleman Well-Known Member HowtoForge Supporter

  3. Martin68Morava

    Martin68Morava New Member

    The installation of Debian took place according to the procedure:
    How to Install a Debian 10 (Buster) Minimal Server
    I installed ISPConfig according to:
    The Perfect Server - Debian 10 (Buster) with Apache, BIND, Dovecot, PureFTPD and ISPConfig 3.2
    all on How to forge
     
  4. Martin68Morava

    Martin68Morava New Member

    Code:
    ##### SERVER #####
    IP-address (as per hostname): ***.***.***.***
    [WARN] could not determine server's ip address by ifconfig
    [INFO] OS version is Debian GNU/Linux 10 (buster)
    
    [INFO] uptime:  16:12:49 up 6 min,  1 user,  load average: 0,15, 0,49, 0,35
    
    [INFO] memory:
                  total        used        free      shared  buff/cache   available
    Mem:          3,8Gi       1,8Gi       1,4Gi        15Mi       669Mi       1,8Gi
    Swap:         975Mi          0B       975Mi
    
    [INFO] systemd failed services status:
    0 loaded units listed. Pass --all to see loaded but inactive units, too.
    To show all installed unit files use 'systemctl list-unit-files'.
    
    [INFO] ISPConfig is installed.
    ##### ISPCONFIG #####
    
    
    ##### VERSION CHECK #####
    
    [INFO] php (cli) version is 7.3.31-1~deb10u1
    [INFO] php-cgi (used for cgi php in default vhost!) is version 7.3.31
    
    ##### PORT CHECK #####
    
    
    ##### MAIL SERVER CHECK #####
    
    
    ##### RUNNING SERVER PROCESSES #####
    
    [INFO] I found the following web server(s):
            Apache 2 (PID 677)
    [INFO] I found the following mail server(s):
            Postfix (PID 780)
    [INFO] I found the following pop3 server(s):
            Dovecot (PID 350)
    [INFO] I found the following imap server(s):
            Dovecot (PID 350)
    [INFO] I found the following ftp server(s):
            PureFTP (PID 745)
    
    ##### LISTENING PORTS #####
    (pouze          ()
    Místní          (Adresa)
    [anywhere]:993          (350/dovecot)
    [anywhere]:995          (350/dovecot)
    [localhost]:10023               (609/postgrey)
    [localhost]:10024               (837/amavisd-new)
    [localhost]:10026               (837/amavisd-new)
    [anywhere]:587          (780/master)
    [localhost]:11211               (337/memcached)
    [anywhere]:110          (350/dovecot)
    [anywhere]:143          (350/dovecot)
    [anywhere]:465          (780/master)
    [anywhere]:21           (745/pure-ftpd)
    ***.***.***.***:53              (371/named)
    [localhost]:53          (371/named)
    [anywhere]:22           (381/sshd)
    [anywhere]:25           (780/master)
    [localhost]:953         (371/named)
    *:*:*:*::*:993          (350/dovecot)
    *:*:*:*::*:995          (350/dovecot)
    *:*:*:*::*:10023                (609/postgrey)
    *:*:*:*::*:10024                (837/amavisd-new)
    *:*:*:*::*:10026                (837/amavisd-new)
    *:*:*:*::*:3306         (430/mysqld)
    *:*:*:*::*:587          (780/master)
    [localhost]10           (350/dovecot)
    [localhost]43           (350/dovecot)
    *:*:*:*::*:8080         (677/apache2)
    *:*:*:*::*:80           (677/apache2)
    *:*:*:*::*:465          (780/master)
    *:*:*:*::*:8081         (677/apache2)
    *:*:*:*::*:21           (745/pure-ftpd)
    *:*:*:*::*:53           (371/named)
    *:*:*:*::*:22           (381/sshd)
    *:*:*:*::*:25           (780/master)
    *:*:*:*::*:953          (371/named)
    *:*:*:*::*:443          (677/apache2)
     
  5. Martin68Morava

    Martin68Morava New Member


    The installation of Debian took place according to the procedure:
    How to Install a Debian 10 (Buster) Minimal Server
    I installed ISPConfig according to:
    The Perfect Server - Debian 10 (Buster) with Apache, BIND, Dovecot, PureFTPD and ISPConfig 3.2
    all on Howtoforge

    Code:
    ##### SERVER #####
    IP-address (as per hostname): ***.***.***.***
    [WARN] could not determine server's ip address by ifconfig
    [INFO] OS version is Debian GNU/Linux 10 (buster)
    
    [INFO] uptime:  16:12:49 up 6 min,  1 user,  load average: 0,15, 0,49, 0,35
    
    [INFO] memory:
                  total        used        free      shared  buff/cache   available
    Mem:          3,8Gi       1,8Gi       1,4Gi        15Mi       669Mi       1,8Gi
    Swap:         975Mi          0B       975Mi
    
    [INFO] systemd failed services status:
    0 loaded units listed. Pass --all to see loaded but inactive units, too.
    To show all installed unit files use 'systemctl list-unit-files'.
    
    [INFO] ISPConfig is installed.
    ##### ISPCONFIG #####
    
    
    ##### VERSION CHECK #####
    
    [INFO] php (cli) version is 7.3.31-1~deb10u1
    [INFO] php-cgi (used for cgi php in default vhost!) is version 7.3.31
    
    ##### PORT CHECK #####
    
    
    ##### MAIL SERVER CHECK #####
    
    
    ##### RUNNING SERVER PROCESSES #####
    
    [INFO] I found the following web server(s):
            Apache 2 (PID 677)
    [INFO] I found the following mail server(s):
            Postfix (PID 780)
    [INFO] I found the following pop3 server(s):
            Dovecot (PID 350)
    [INFO] I found the following imap server(s):
            Dovecot (PID 350)
    [INFO] I found the following ftp server(s):
            PureFTP (PID 745)
    
    ##### LISTENING PORTS #####
    (pouze          ()
    Místní          (Adresa)
    [anywhere]:993          (350/dovecot)
    [anywhere]:995          (350/dovecot)
    [localhost]:10023               (609/postgrey)
    [localhost]:10024               (837/amavisd-new)
    [localhost]:10026               (837/amavisd-new)
    [anywhere]:587          (780/master)
    [localhost]:11211               (337/memcached)
    [anywhere]:110          (350/dovecot)
    [anywhere]:143          (350/dovecot)
    [anywhere]:465          (780/master)
    [anywhere]:21           (745/pure-ftpd)
    ***.***.***.***:53              (371/named)
    [localhost]:53          (371/named)
    [anywhere]:22           (381/sshd)
    [anywhere]:25           (780/master)
    [localhost]:953         (371/named)
    *:*:*:*::*:993          (350/dovecot)
    *:*:*:*::*:995          (350/dovecot)
    *:*:*:*::*:10023                (609/postgrey)
    *:*:*:*::*:10024                (837/amavisd-new)
    *:*:*:*::*:10026                (837/amavisd-new)
    *:*:*:*::*:3306         (430/mysqld)
    *:*:*:*::*:587          (780/master)
    [localhost]10           (350/dovecot)
    [localhost]43           (350/dovecot)
    *:*:*:*::*:8080         (677/apache2)
    *:*:*:*::*:80           (677/apache2)
    *:*:*:*::*:465          (780/master)
    *:*:*:*::*:8081         (677/apache2)
    *:*:*:*::*:21           (745/pure-ftpd)
    *:*:*:*::*:53           (371/named)
    *:*:*:*::*:22           (381/sshd)
    *:*:*:*::*:25           (780/master)
    *:*:*:*::*:953          (371/named)
    *:*:*:*::*:443          (677/apache2)
     
  6. till

    till Super Moderator Staff Member ISPConfig Developer

    You probably hit this issue:

    https://git.ispconfig.org/ispconfig/ispconfig3/-/issues/6389

    To fix that, go to system > server config > mail, there you find the spamfilter setting. switch this setting from amavis to rspamd, click save, switch back to amavis, click save. Wait a minute and test again. This will rewrite the filter setup and fix the issue.
     
  7. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    Have you tried logging in to roundcube and sending e-mail to yourself. Does that work? If not, what is in mail log?
    Is your setup an e-mail server with port 25 closed, and you have set up relaying? How did you do that?
    Use the e-mail ID number of the failed attampt to find all entries about that in recent /var/log/mail.* files.
     
  8. Martin68Morava

    Martin68Morava New Member

    I did and it didn't help
     
  9. Martin68Morava

    Martin68Morava New Member

    .. yes tried and it doesn't work

    mail.err
    Code:
    Sep 28 19:12:02 postak dovecot: imap([email protected])<3740><vMcC3L/pbOUAAAAAAAAAAAAAAAAAAAAB>: Error: Mailbox INBOX: rename(/var/vmail/mysvobodovi.eu/martin/Maildir/dovecot-uidlist.tmp, $
    Sep 28 19:12:02 postak dovecot: imap([email protected])<3740><vMcC3L/pbOUAAAAAAAAAAAAAAAAAAAAB>: Error: unlink(/var/vmail/mysvobodovi.eu/martin/Maildir/dovecot-uidlist.tmp) failed: Permiss$
    Sep 28 19:12:02 postak dovecot: imap([email protected])<3740><vMcC3L/pbOUAAAAAAAAAAAAAAAAAAAAB>: Error: stat(/var/vmail/mysvobodovi.eu/martin/Maildir/dovecot.index.log.2) failed: Permissio$
    Sep 28 19:12:02 postak dovecot: imap([email protected])<3740><vMcC3L/pbOUAAAAAAAAAAAAAAAAAAAAB>: Error: stat(/var/vmail/mysvobodovi.eu/martin/Maildir/dovecot.index.log) failed: Permission $
    Sep 28 19:12:02 postak dovecot: imap([email protected])<3740><vMcC3L/pbOUAAAAAAAAAAAAAAAAAAAAB>: Error: lstat(/var/vmail/mysvobodovi.eu/martin/Maildir/dovecot-uidlist.lock) failed: Permiss$
    Sep 28 19:12:02 postak dovecot: imap([email protected])<3740><vMcC3L/pbOUAAAAAAAAAAAAAAAAAAAAB>: Error: lstat(/var/vmail/mysvobodovi.eu/martin/Maildir/dovecot-uidlist.lock) failed: Permiss$
    Sep 28 19:12:02 postak dovecot: imap([email protected])<3740><vMcC3L/pbOUAAAAAAAAAAAAAAAAAAAAB>: Error: Mailbox INBOX: file_dotlock_create(/var/vmail/mysvobodovi.eu/martin/Maildir/dovecot-$
    Sep 28 19:12:02 postak dovecot: imap([email protected])<3740><vMcC3L/pbOUAAAAAAAAAAAAAAAAAAAAB>: Error: stat(/var/vmail/mysvobodovi.eu/martin/Maildir/tmp) failed: Permission denied (euid=5$
    Sep 28 19:12:02 postak dovecot: imap([email protected])<3740><vMcC3L/pbOUAAAAAAAAAAAAAAAAAAAAB>: Error: Failed to get quota resource STORAGE: quota-dict: dict_lookup(priv/quota/storage) fa$
    Sep 28 19:12:02 postak dovecot: imap([email protected])<3742><nOcD3L/pcuUAAAAAAAAAAAAAAAAAAAAB>: Error: chdir(/var/vmail/mysvobodovi.eu/martin/) failed: Permission denied (euid=5000(vmail)$
    Sep 28 19:12:02 postak dovecot: imap([email protected])<3742><nOcD3L/pcuUAAAAAAAAAAAAAAAAAAAAB>: Error: stat(/var/vmail/mysvobodovi.eu/martin/Maildir/subscriptions) failed: Permission deni$
    Sep 28 19:12:02 postak dovecot: imap([email protected])<3742><nOcD3L/pcuUAAAAAAAAAAAAAAAAAAAAB>: Error: stat(/var/vmail/mysvobodovi.eu/martin/Maildir/tmp) failed: Permission denied (euid=5$
    Sep 28 19:12:02 postak dovecot: imap([email protected])<3742><nOcD3L/pcuUAAAAAAAAAAAAAAAAAAAAB>: Error: stat(/var/vmail/mysvobodovi.eu/martin/Maildir/tmp) failed: Permission denied (euid=5$
    mail.info
    Code:
    
    
    mail.log
    Code:
    Sep 28 19:12:02 postak dovecot: imap([email protected])<3740><vMcC3L/pbOUAAAAAAAAAAAAAAAAAAAAB>: Error: Mailbox INBOX: rename(/var/vmail/mysvobodovi.eu/martin/Maildir/dovecot-uidlist.tmp$
    Sep 28 19:12:02 postak dovecot: imap([email protected])<3740><vMcC3L/pbOUAAAAAAAAAAAAAAAAAAAAB>: Error: unlink(/var/vmail/mysvobodovi.eu/martin/Maildir/dovecot-uidlist.tmp) failed: Permi$
    Sep 28 19:12:02 postak dovecot: imap([email protected])<3740><vMcC3L/pbOUAAAAAAAAAAAAAAAAAAAAB>: Error: stat(/var/vmail/mysvobodovi.eu/martin/Maildir/dovecot.index.log.2) failed: Permiss$
    Sep 28 19:12:02 postak dovecot: imap([email protected])<3740><vMcC3L/pbOUAAAAAAAAAAAAAAAAAAAAB>: Error: stat(/var/vmail/mysvobodovi.eu/martin/Maildir/dovecot.index.log) failed: Permissio$
    Sep 28 19:12:02 postak dovecot: imap([email protected])<3740><vMcC3L/pbOUAAAAAAAAAAAAAAAAAAAAB>: Error: lstat(/var/vmail/mysvobodovi.eu/martin/Maildir/dovecot-uidlist.lock) failed: Permi$
    Sep 28 19:12:02 postak dovecot: imap([email protected])<3740><vMcC3L/pbOUAAAAAAAAAAAAAAAAAAAAB>: Error: lstat(/var/vmail/mysvobodovi.eu/martin/Maildir/dovecot-uidlist.lock) failed: Permi$
    Sep 28 19:12:02 postak dovecot: imap([email protected])<3740><vMcC3L/pbOUAAAAAAAAAAAAAAAAAAAAB>: Error: Mailbox INBOX: file_dotlock_create(/var/vmail/mysvobodovi.eu/martin/Maildir/doveco$
    Sep 28 19:12:02 postak dovecot: imap([email protected])<3740><vMcC3L/pbOUAAAAAAAAAAAAAAAAAAAAB>: Error: stat(/var/vmail/mysvobodovi.eu/martin/Maildir/tmp) failed: Permission denied (euid$
    Sep 28 19:12:02 postak dovecot: imap([email protected])<3740><vMcC3L/pbOUAAAAAAAAAAAAAAAAAAAAB>: Error: Failed to get quota resource STORAGE: quota-dict: dict_lookup(priv/quota/storage) $
    Sep 28 19:12:02 postak dovecot: imap([email protected])<3742><nOcD3L/pcuUAAAAAAAAAAAAAAAAAAAAB>: Error: chdir(/var/vmail/mysvobodovi.eu/martin/) failed: Permission denied (euid=5000(vmai$
    Sep 28 19:12:02 postak dovecot: imap([email protected])<3742><nOcD3L/pcuUAAAAAAAAAAAAAAAAAAAAB>: Error: stat(/var/vmail/mysvobodovi.eu/martin/Maildir/subscriptions) failed: Permission de$
    Sep 28 19:12:02 postak dovecot: imap([email protected])<3742><nOcD3L/pcuUAAAAAAAAAAAAAAAAAAAAB>: Error: stat(/var/vmail/mysvobodovi.eu/martin/Maildir/tmp) failed: Permission denied (euid$
    Sep 28 19:12:02 postak dovecot: imap([email protected])<3742><nOcD3L/pcuUAAAAAAAAAAAAAAAAAAAAB>: Error: stat(/var/vmail/mysvobodovi.eu/martin/Maildir/tmp) failed: Permission denied (euid$
    
    mail.warn
    Code:
    Sep 28 19:12:02 postak dovecot: imap([email protected])<3740><vMcC3L/pbOUAAAAAAAAAAAAAAAAAAAAB>: Error: Mailbox INBOX: rename(/var/vmail/mysvobodovi.eu/martin/Maildir/dovecot-uidlist.tmp$
    Sep 28 19:12:02 postak dovecot: imap([email protected])<3740><vMcC3L/pbOUAAAAAAAAAAAAAAAAAAAAB>: Error: unlink(/var/vmail/mysvobodovi.eu/martin/Maildir/dovecot-uidlist.tmp) failed: Permi$
    Sep 28 19:12:02 postak dovecot: imap([email protected])<3740><vMcC3L/pbOUAAAAAAAAAAAAAAAAAAAAB>: Error: stat(/var/vmail/mysvobodovi.eu/martin/Maildir/dovecot.index.log.2) failed: Permiss$
    Sep 28 19:12:02 postak dovecot: imap([email protected])<3740><vMcC3L/pbOUAAAAAAAAAAAAAAAAAAAAB>: Error: stat(/var/vmail/mysvobodovi.eu/martin/Maildir/dovecot.index.log) failed: Permissio$
    Sep 28 19:12:02 postak dovecot: imap([email protected])<3740><vMcC3L/pbOUAAAAAAAAAAAAAAAAAAAAB>: Error: lstat(/var/vmail/mysvobodovi.eu/martin/Maildir/dovecot-uidlist.lock) failed: Permi$
    Sep 28 19:12:02 postak dovecot: imap([email protected])<3740><vMcC3L/pbOUAAAAAAAAAAAAAAAAAAAAB>: Error: lstat(/var/vmail/mysvobodovi.eu/martin/Maildir/dovecot-uidlist.lock) failed: Permi$
    Sep 28 19:12:02 postak dovecot: imap([email protected])<3740><vMcC3L/pbOUAAAAAAAAAAAAAAAAAAAAB>: Error: Mailbox INBOX: file_dotlock_create(/var/vmail/mysvobodovi.eu/martin/Maildir/doveco$
    Sep 28 19:12:02 postak dovecot: imap([email protected])<3740><vMcC3L/pbOUAAAAAAAAAAAAAAAAAAAAB>: Error: stat(/var/vmail/mysvobodovi.eu/martin/Maildir/tmp) failed: Permission denied (euid$
    Sep 28 19:12:02 postak dovecot: imap([email protected])<3740><vMcC3L/pbOUAAAAAAAAAAAAAAAAAAAAB>: Error: Failed to get quota resource STORAGE: quota-dict: dict_lookup(priv/quota/storage) $
    Sep 28 19:12:02 postak dovecot: imap([email protected])<3742><nOcD3L/pcuUAAAAAAAAAAAAAAAAAAAAB>: Error: chdir(/var/vmail/mysvobodovi.eu/martin/) failed: Permission denied (euid=5000(vmai$
    Sep 28 19:12:02 postak dovecot: imap([email protected])<3742><nOcD3L/pcuUAAAAAAAAAAAAAAAAAAAAB>: Error: stat(/var/vmail/mysvobodovi.eu/martin/Maildir/subscriptions) failed: Permission de$
    Sep 28 19:12:02 postak dovecot: imap([email protected])<3742><nOcD3L/pcuUAAAAAAAAAAAAAAAAAAAAB>: Error: stat(/var/vmail/mysvobodovi.eu/martin/Maildir/tmp) failed: Permission denied (euid$
    Sep 28 19:12:02 postak dovecot: imap([email protected])<3742><nOcD3L/pcuUAAAAAAAAAAAAAAAAAAAAB>: Error: stat(/var/vmail/mysvobodovi.eu/martin/Maildir/tmp) failed: Permission denied (euid$
     
  10. till

    till Super Moderator Staff Member ISPConfig Developer

    Please post the result of the following command:

    ls -la /var/vmail/mysvobodovi.eu/martin/Maildir/
     
  11. Martin68Morava

    Martin68Morava New Member

    I canceled the Content Filter from Amavis on rspamd and everything works. Thank you for your help
     
  12. Martin68Morava

    Martin68Morava New Member

    Code:
    root@postak:~# ls -la /var/vmail/mysvobodovi.eu/martin/Maildir/
    celkem 64
    drwx------ 9 vmail vmail 4096 zář 28 20:02 .
    drwx------ 4 vmail vmail 4096 zář 28 20:01 ..
    drwx------ 2 vmail vmail 4096 zář 28 20:01 cur
    -rw------- 1 vmail vmail 2596 zář 28 20:01 dovecot.index.cache
    -rw------- 1 vmail vmail 2076 zář 28 20:02 dovecot.index.log
    -rw------- 1 vmail vmail 4116 zář 28 20:00 dovecot.list.index.log
    -rw------- 1 vmail vmail  145 zář 28 20:01 dovecot-uidlist
    -rw------- 1 vmail vmail    8 zář 28 19:12 dovecot-uidvalidity
    -r--r--r-- 1 vmail vmail    0 zář 28 19:12 dovecot-uidvalidity.63348072
    drwx------ 5 vmail vmail 4096 zář 28 19:12 .Drafts
    drwx------ 5 vmail vmail 4096 zář 28 19:12 .Junk
    drwx------ 2 vmail vmail 4096 zář 28 20:01 new
    drwx------ 5 vmail vmail 4096 zář 28 20:00 .Sent
    -rwxr--r-- 1 vmail vmail   23 zář 28 20:00 subscriptions
    drwx------ 2 vmail vmail 4096 zář 28 20:01 tmp
    drwx------ 5 vmail vmail 4096 zář 28 19:12 .Trash
     
  13. Martin68Morava

    Martin68Morava New Member

    I canceled the Content Filter from Amavis on rspamd and everything works. Thank you for your help
     
    Th0m likes this.

Share This Page