I have setup a webmin server with hostname as web.domain.tld & have a virtual server as domain.tld
I am able to receive incoming emails for domain.tld but when sending outgoing, it bounces back with message “ExternalDomain.tld loops back to myself”
var log shows:
web postfix/smtpd[11911]: connect from web.domain.tld[127.0.0.1]
web postfix/smtpd[11911]: 4DDEC10E92C3: client=web.domain.tld[127.0.0.1]
web postfix/smtpd[11911]: disconnect from web.domain.tld[127.0.0.1]
web postfix/smtpd[11911]: warning: hostname web.domain.tld does not resolve to address 10.1.0.20
web postfix/smtpd[11911]: connect from unknown[10.1.0.20]
web postfix/smtp[11913]: warning: host ExternalDomain.tld[x.x.x.x]:25 greeted me with my own hostname web.domain.tld
web postfix/smtp[11913]: warning: host ExternalDomain.tld[x.x.x.x]:25 replied to HELO/EHLO with my own hostname web.domain.tld
web postfix/smtp[11913]: 4DDEC10E92C3: to=<alias(@)ExternalDomain.tld>, relay=ExternalDomain.tld[x.x.x.x]:25, delay=0.12, delays=0.04/0.01/0.06/0, dsn=5.4.6, status=bounced (mail for ExternalDomain.tld loops back to myself)
web postfix/smtpd[11911]: disconnect from unknown[10.1.0.20]
FYI, 10.1.0.20 is the private IP of the server. It has a public IP as well.
What am I doing wrong?