When i installed the virtual server I mistakenly set the "enable mail for domain" checkbox. So after I transferred the website to my server I set it off. Off course the DNS was only changed to point at my server on non MX records. So mail should be handled by the old server.
But now when I send mail from another domain on this server to this domain it gets bounced with the "mail for example.com loops back to myself" message in the postfix log.
I tried all sorts of things(from this forum and elsewhere) but got nowhere.
"Re-check configuration" has no suggestions and also "validate virtual server" says okay. Postfix configuration check has no suggestions.
The server is Ubuntu 14.04.1 just updated to latest
My etc/postfix/main.cf:
#myorigin = /etc/mailname
smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
biff = no
# appending .domain is the MUA's job.
append_dot_mydomain = no
# Uncomment the next line to generate "delayed mail" warnings
#delay_warning_time = 4h
readme_directory = no
# TLS parameters
smtpd_tls_cert_file = /etc/ssl/certs/ssl-cert-snakeoil.pem
smtpd_tls_key_file = /etc/ssl/private/ssl-cert-snakeoil.key
smtpd_use_tls=yes
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
# See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package for
# information on enabling SSL in the smtp client.
myhostname = s1.noestnet.nl
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination = s1.noestnet.nl, localhost.noestnet.nl, localhost, noestnet.nl
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
mailbox_command = /usr/bin/procmail-wrapper -o -a $DOMAIN -d $LOGNAME
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
virtual_alias_maps = hash:/etc/postfix/virtual
sender_bcc_maps = hash:/etc/postfix/bcc
home_mailbox = Maildir/
broken_sasl_auth_clients = yes
smtpd_recipient_restrictions = permit_mynetworks permit_sasl_authenticated reject_unauth_destination
allow_percent_hack = no
smtpd_sasl_auth_enable = yes
The local DNS Zone for this domain looks like this:
$ttl 38400
@ IN SOA s1.noestnet.nl. root.s1.noestnet.nl. (
1428413296
10800
3600
604800
38400 )
@ IN NS s1.noestnet.nl.
example.com. IN A 146.185.161.211
www.example.com. IN A 146.185.161.211
ftp.example.com. IN A 146.185.161.211
m.example.com. IN A 146.185.161.211
localhost.example.com. IN A 127.0.0.1
example.com. IN TXT "v=spf1 a mx ptr ?all"
Any suggestions will be greatly apreciated!
Howdy,
The error "Mail loops back to myself" typically means that the DNS points to that particular server, but on that server, Postfix isn't configured to handle it.
Is it possible that there are DNS MX records on this particular server incorrectly pointing to itself?
Alternatively, perhaps the records no longer point there, but the old values are still cached?
-Eric