receiving emails stopped Recipient address rejected: unverified address: host 127.0.0.1

Discussion in 'Server Operation' started by fuxifux, Feb 7, 2023.

  1. fuxifux

    fuxifux New Member

    since about one day my ISPConfig server receives no e-mails.
    I found the following error message in the mail.log:

    Code:
    Feb  7 11:13:45 server postfix/smtpd[142943]: NOQUEUE: reject: RCPT from sender.mailserver.com[sender.ip]: 450 4.1.1 <[email protected]>: Recipient address rejected: unverified address: host 127.0.0.1[127.0.0.1] said: 554 5.7.1 <[email protected]>: Recipient address rejected: Access denied (in reply to RCPT TO command); from=<[email protected]> to=<[email protected]> proto=ESMTP helo=<sender.mailserver.com>
    i have no idea what could got wrong. I don't remember to change anything.

    As workaround i fond with a search here to comment out the following 2 lines in the main.cf:
    Code:
    #address_verify_virtual_transport = smtp:[127.0.0.1]:10025
    #address_verify_transport_maps = static:smtp:[127.0.0.1]:10025
    which seems to bring the functionallity back, but i don't think i should keep this setting.
     
    Last edited: Feb 7, 2023
  2. Taleman

    Taleman Well-Known Member HowtoForge Supporter

  3. aa6tem

    aa6tem New Member

    Im having the same error for quite a while now, but the test script , read before posting, didnt give any errors or clue.
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    To interpret the test script, you must know exactly what it should look like as e.g., some missing listening ports are an indication for an error. That's why we always request the user to post the result.
     
    ahrasis likes this.
  5. aa6tem

    aa6tem New Member

    ok, since im having the same issues, this is the output of my server

    Strange thing, not every mail is getting rejected

    ##### 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: 12:22:19 up 2:18, 1 user, load average: 0.31, 0.29, 0.29
    [INFO] memory:
    total used free shared buff/cache available
    Mem: 3.8Gi 2.7Gi 812Mi 45Mi 362Mi 907Mi
    Swap: 4.0Gi 1.4Gi 2.6Gi
    [INFO] systemd failed services status:
    UNIT LOAD ACTIVE SUB DESCRIPTION
    ● maldet.service loaded failed failed Linux Malware Detect monitoring - maldet

    LOAD = Reflects whether the unit definition was properly loaded.
    ACTIVE = The high-level unit activation state, i.e. generalization of SUB.
    SUB = The low-level unit activation state, values depend on unit type.

    1 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 #####
    ISPConfig version is 3.2.9p1


    ##### VERSION CHECK #####

    [INFO] php (cli) version is 7.3.31-1~deb10u2
    [INFO] php-cgi (used for cgi php in default vhost!) is version 7.3.31

    ##### PORT CHECK #####

    [WARN] Port 22 (SSH server) seems NOT to be listening

    ##### MAIL SERVER CHECK #####


    ##### RUNNING SERVER PROCESSES #####

    [INFO] I found the following web server(s):
    Apache 2 (PID 1028)
    [INFO] I found the following mail server(s):
    Postfix (PID 1432)
    [INFO] I found the following pop3 server(s):
    Dovecot (PID 525)
    [INFO] I found the following imap server(s):
    Dovecot (PID 525)
    [INFO] I found the following ftp server(s):
    PureFTP (PID 1155)

    ##### LISTENING PORTS #####
    (only ()
    Local (Address)
    [localhost]:10027 (1432/master)
    [anywhere]:587 (1432/master)
    [localhost]:11211 (519/memcached)
    [anywhere]:110 (525/dovecot)
    [anywhere]:143 (525/dovecot)
    [anywhere]:465 (1432/master)
    [anywhere]:113 (649/sshd)
    [anywhere]:21 (1155/pure-ftpd)
    [anywhere]:53 (624/pihole-FTL)
    [anywhere]:25 (1432/master)
    [anywhere]:8443 (649/sshd)
    [anywhere]:993 (525/dovecot)
    [anywhere]:514 (451/rsyslogd)
    [anywhere]:995 (525/dovecot)
    [localhost]:8997 (544/php-fpm:)
    [localhost]:10023 (844/postgrey)
    [localhost]:2023 (826/telnetd)
    [localhost]:4711 (624/pihole-FTL)
    [localhost]:10024 (22598/amavisd-new)
    [localhost]:10025 (1432/master)
    [localhost]:10026 (22598/amavisd-new)
    *:*:*:*::*:587 (1432/master)
    [localhost]10 (525/dovecot)
    [localhost]43 (525/dovecot)
    *:*:*:*::*:8080 (1028/apache2)
    *:*:*:*::*:80 (1028/apache2)
    *:*:*:*::*:465 (1432/master)
    *:*:*:*::*:8081 (1028/apache2)
    [localhost]13 (649/sshd)
    *:*:*:*::*:21 (1155/pure-ftpd)
    *:*:*:*::*:4949 (784/perl)
    *:*:*:*::*:53 (624/pihole-FTL)
    *:*:*:*::*:25 (1432/master)
    *:*:*:*::*:443 (1028/apache2)
    *:*:*:*::*:8443 (649/sshd)
    *:*:*:*::*:993 (525/dovecot)
    *:*:*:*::*:514 (451/rsyslogd)
    *:*:*:*::*:995 (525/dovecot)
    *:*:*:*::*:10023 (844/postgrey)
    *:*:*:*::*:4711 (624/pihole-FTL)
    *:*:*:*::*:10024 (22598/amavisd-new)
    *:*:*:*::*:10026 (22598/amavisd-new)
    *:*:*:*::*:3306 (820/mysqld)




    ##### IPTABLES #####
    Chain INPUT (policy ACCEPT)
    target prot opt source destination
    f2b-postfix-sasl tcp -- [anywhere]/0 [anywhere]/0 multiport dports 25,465,587,143,993,110,995
    f2b-postfix-rbl tcp -- [anywhere]/0 [anywhere]/0 multiport dports 25,465,587
    f2b-dovecot tcp -- [anywhere]/0 [anywhere]/0 multiport dports 110,995,143,993,587,465,4190
    f2b-recidive tcp -- [anywhere]/0 [anywhere]/0

    Chain FORWARD (policy ACCEPT)
    target prot opt source destination

    Chain OUTPUT (policy ACCEPT)
    target prot opt source destination

    Chain f2b-recidive (1 references)
    target prot opt source destination
    REJECT all -- ***.***.***.*** [anywhere]/0 reject-with icmp-port-unreachable
    REJECT all -- ***.***.***.*** [anywhere]/0 reject-with icmp-port-unreachable
    REJECT all -- ***.***.***.*** [anywhere]/0 reject-with icmp-port-unreachable
    REJECT all -- ***.***.***.*** [anywhere]/0 reject-with icmp-port-unreachable
    REJECT all -- ***.***.***.*** [anywhere]/0 reject-with icmp-port-unreachable
    REJECT all -- ***.***.***.*** [anywhere]/0 reject-with icmp-port-unreachable
    REJECT all -- ***.***.***.*** [anywhere]/0 reject-with icmp-port-unreachable
    REJECT all -- ***.***.***.*** [anywhere]/0 reject-with icmp-port-unreachable
    REJECT all -- ***.***.***.*** [anywhere]/0 reject-with icmp-port-unreachable
    REJECT all -- ***.***.***.*** [anywhere]/0 reject-with icmp-port-unreachable
    REJECT all -- ***.***.***.*** [anywhere]/0 reject-with icmp-port-unreachable
    REJECT all -- ***.***.***.*** [anywhere]/0 reject-with icmp-port-unreachable
    RETURN all -- [anywhere]/0 [anywhere]/0

    Chain f2b-dovecot (1 references)
    target prot opt source destination
    RETURN all -- [anywhere]/0 [anywhere]/0

    Chain f2b-postfix-rbl (1 references)
    target prot opt source destination
    RETURN all -- [anywhere]/0 [anywhere]/0

    Chain f2b-postfix-sasl (1 references)
    target prot opt source destination
    RETURN all -- [anywhere]/0 [anywhere]/0




    ##### LET'S ENCRYPT #####
    Certbot is installed in /opt/eff.org/certbot/venv/bin/certbot
     
  6. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    You seem to have installed maldet, that is not working, and pihole for DNS resolver. Maybe some of the modifications you have made breaks e-mail?
    You wrote
    , but the original poster wrote server receives no e-mails, whereas you wrote
    So maybe not the same issue after all.
    See in mail log what happens to the e-mails that do arrive, and compare to the log entries of the failed e-mails. My signature has link to e-mail setup tutorial, it has a bit on troubleshooting e-mail issues.
     
  7. aa6tem

    aa6tem New Member

    Thank you for your answer. But it didnt work before i installed these applications. Before i was running Bind.

    Ok ill follow your tutorial
     

Share This Page