SYSTEM INFORMATION :
OS type and version: Ubuntu Linux 22.04.4
Virtualmin version: 7.9.0
Postfix version: 3.6.4
I have a running configuration, and everything is working well. However, I haven’t received emails for some days, and this is the case for all mailboxes on this server.
I do the following tests:
Send an email from another mail server
Send an email from one email address to another on the same server.
In any case, I don’t have a return email saying an error. It looks like the email was delivered, but I don’t see it in my mailbox.
Stop ClamAV and SpamAssassin and retry to send an email from another email server.
After investigation, I found the messages I tested on Postfix’s mail queue.
What is strange is that the mailbox name has been added @com. For example, bob-domain.com@com, Instead of bob-domain.com. And I have the following error: delivery temporarily suspended: Host or domain name not found. Name service error for name=com type=AAAA: Host not found, try again
On the mail.log, I have the following error message:
to=bob-domain.com@com, orig_to=bob@domain.com, relay=none, delay=353290, delays=353289/0.16/0/0, dsn=4.4.3, status=deferred (delivery temporarily suspended: Host or domain name not found. Name service error for name=com type=AAAA: Host not found, try again)
It looks like something add the “@com” at the end of all mail to deliver locally.
I don’t remember touching any Postfix configuration. I think I just performed regular maintenance tasks like module and OS updates.
result of postconf -n:
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
allow_percent_hack = no
append_dot_mydomain = no
biff = no
broken_sasl_auth_clients = yes
compatibility_level = 2
home_mailbox = Maildir/
inet_protocols = all
mailbox_command = /usr/bin/procmail-wrapper -o -a $DOMAIN -d $LOGNAME
mailbox_size_limit = 0
milter_default_action = accept
mydestination = $myhostname, HOSTNAME, xxx.contaboserver.net, localhost.contaboserver.net, localhost
myhostname = xxxxxxx.com
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
mynetworks_style = subnet
myorigin = $mydomain
non_smtpd_milters = inet:localhost:8891
readme_directory = no
recipient_delimiter = +
sender_bcc_maps = hash:/etc/postfix/bcc
sender_dependent_default_transport_maps = hash:/etc/postfix/dependent
smtp_tls_CApath = /etc/ssl/certs
smtp_tls_security_level = may
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
smtpd_milters = inet:localhost:8891
smtpd_recipient_restrictions = permit_mynetworks permit_sasl_authenticated reject_unauth_destination
smtpd_relay_restrictions = permit_mynetworks permit_sasl_authenticated defer_unauth_destination
smtpd_sasl_auth_enable = yes
smtpd_sasl_security_options = noanonymous
smtpd_tls_cert_file = /etc/ssl/certs/ssl-cert-snakeoil.pem
smtpd_tls_key_file = /etc/ssl/private/ssl-cert-snakeoil.key
smtpd_tls_security_level = may
tls_server_sni_maps = hash:/etc/postfix/sni_map
virtual_alias_maps = hash:/etc/postfix/virtual
Anybody who can help ?