We are trying to do mail relay with an external SMTP gateway but we are getting error. Bellow are some details on our configuration plus the error from log
- domain is called
- UCR variables
- DNS service record
–>service SMTP, protocol TCP, priority 10, Weighting 10, port 25, server
DNS host record
mx1.mydomain.com= Public IP
- restart of postfix
systemctl restart postfix
- The icmp resolution of
mx1.mydomain.comis working and incoming mails also working though our external smtp gateway.
The log from
/var/log/mail.log show host record not found but there are present.
Sep 11 23:52:28 intranet postfix/smtp: warning: relayhost configuration problem Sep 11 23:52:28 intranet postfix/smtp: 1F6D0F06125: to=<firstname.lastname@example.org>, relay=none, delay=2446, delays=2446/0.03/0/0, dsn=4.3.5, status=deferred (Host or domain name not found. Name service error for name=mx1.mydomain.com.mydomain.com type=A: Host not found)
We don’t find where we should modify the host from “
mx1.mydomain.com.mydomain.com” to “