SYSTEM INFORMATION | |
---|---|
OS type and version | Ubuntu Linux 24.04.1 |
Virtualmin version | 7.30.2 |
I have a VPS with Postfix (+Dovecot) acting as the mail server for all accounts of all hosted domains. I send an e-mail out from an account which is a user of one of these hosted domains to a an external domain’s account (gmail) and it gets delivered perfectly fine.
(The following log snippets have been edited in order to maintain sensitive data private but keeping essential error info available for review)
2024-12-11T00:35:13.959016+00:00 example postfix/submission/smtpd[6013]: connect from localhost[127.0.0.1]
2024-12-11T00:35:13.965249+00:00 example postfix/submission/smtpd[6013]: Anonymous TLS connection established from localhost[127.0.0.1]: TLSv1.3 with cipher TLS_AES_256_GCM_SHA384
2024-12-11T00:35:14.078268+00:00 example postfix/qmgr[1790]: ABC123456: from=<alex@example.com>, size=1129, nrcpt=1 (queue active)
2024-12-11T00:35:14.907078+00:00 example postfix/smtp[6016]: ABC123456: to=<recipient@gmail.com>, relay=gmail-smtp-in.l.google.com[74.125.206.26]:25, status=sent (250 2.0.0 OK)
However, when I try to reply to this e-mail it gets bounced back with a very peculiar error I haven’t seen before; telling me that the user does not exist.
2024-12-11T00:35:58.659457+00:00 example postfix/smtp/smtpd[3758]: connect from mail.google.com[209.85.222.52]
2024-12-11T00:35:58.957946+00:00 example postfix/smtp/smtpd[3758]: TLS SNI mail.example.com from mail.google.com[209.85.222.52] not matched, using default chain
2024-12-11T00:35:59.706173+00:00 example opendkim[1286]: Message DKIM verification successful
2024-12-11T00:35:59.790426+00:00 example postfix/lmtp[6551]: 430AD136E3D: to=<"alex@example.com"@example.com>, orig_to=<alex@example.com>, relay=example.com[private/dovecot-lmtp], status=bounced (host example.com[private/dovecot-lmtp] said: 550 5.1.1 <"alex@example.com"@example.com> User doesn't exist)
2024-12-11T00:35:59.793875+00:00 example postfix/bounce[6553]: 430AD136E3D: sender non-delivery notification: C101513BACF
Output of “postconf -n” (a lot of what’s in here has been generated with the help of ChatGPT; I’d love to simplify this file as I don’ t think all of this is necessary for basic e-mail operations):
alias_database = hash:/etc/aliases | alias_maps = hash:/etc/aliases | anvil_rate_time_unit = 60s | append_dot_mydomain = no | biff = no | bounce_queue_lifetime = 1h | broken_sasl_auth_clients = yes | compatibility_level = 3.6 | debug_peer_level = 2 | debugger_command = PATH=/bin:/usr/bin:/usr/local/bin:/usr/sbin:/usr/local/sbin ddd process_name $process_id | default_process_limit = 10 | inet_protocols = ipv4 | mailbox_size_limit = 0 | mailbox_transport = lmtp:unix:private/dovecot-lmtp | maximal_queue_lifetime = 1h | message_size_limit = 10485760 | milter_default_action = accept | mydestination = localhost, localhost.localdomain | myorigin = /etc/mailname | non_smtpd_milters = inet:127.0.0.1:8891 | postscreen_blacklist_action = enforce | postscreen_dnsbl_action = enforce | postscreen_dnsbl_sites = zen.spamhaus.org, bl.spamcop.net | postscreen_greet_action = enforce | readme_directory = no | recipient_delimiter = + | smtp_tls_CApath = /etc/ssl/certs | smtp_tls_loglevel = 1 | smtp_tls_note_starttls_offer = yes | smtp_tls_security_level = may | smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache | smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu) | smtpd_client_connection_rate_limit = 10 | smtpd_client_message_rate_limit = 10 | smtpd_client_recipient_rate_limit = 10 | smtpd_client_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination | smtpd_data_restrictions = reject_unauth_pipelining | smtpd_error_sleep_time = 1s | smtpd_hard_error_limit = 20 | smtpd_milters = inet:127.0.0.1:8891 | smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination, reject_rbl_client zen.spamhaus.org, reject_rbl_client bl.spamcop.net, permit | smtpd_relay_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination | smtpd_sasl_auth_enable = yes | smtpd_sasl_local_domain = $myhostname | smtpd_sasl_path = private/auth | smtpd_sasl_security_options = noanonymous | smtpd_sasl_type = dovecot | smtpd_sender_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unknown_sender_domain, permit | smtpd_soft_error_limit = 10 | smtpd_tls_auth_only = yes | smtpd_tls_cert_file = /etc/ssl/certs/ssl-cert-snakeoil.pem | smtpd_tls_key_file = /etc/ssl/private/ssl-cert-snakeoil.key | smtpd_tls_loglevel = 1 | smtpd_tls_received_header = yes | smtpd_tls_security_level = may | smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache | smtpd_tls_session_cache_timeout = 3600s | tls_server_sni_maps = hash:/etc/postfix/sni_map | virtual_alias_maps = hash:/etc/postfix/virtual | virtual_gid_maps = static:1000 | virtual_mailbox_base = /var/mail/vhosts/ | virtual_mailbox_domains = /etc/postfix/virtual_mailbox_domains | virtual_mailbox_maps = hash:/etc/postfix/virtual_mailbox | virtual_minimum_uid = 1000 | virtual_transport = lmtp:unix:private/dovecot-lmtp | virtual_uid_maps = static:1000 | postconf: warning: /etc/postfix/main.cf: unused parameter: postscreen_enable=yes
I suspect something is automatically appending the domain to a user with the domain already appended to it, but I need help in figuring out what it is to get my e-mails working as intended again.
Thank you!