Hello everybody,
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
mydomain.com
- UCR variables
–>mail/relayhost mx1.mydomain.com
–>mail/relayauth
(not set)
–>mail/postfix/mynetworks 127.0.0.0/8
- DNS service record
–>service SMTP, protocol TCP, priority 10, Weighting 10, port 25, servermx1.mydomain.com
DNS host recordmx1.mydomain.com
= Public IP - restart of postfix
–>systemctl restart postfix
- The icmp resolution of
mx1.mydomain.com
is 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[17752]: warning: relayhost configuration problem
Sep 11 23:52:28 intranet postfix/smtp[17751]: 1F6D0F06125: to=<firstname.lastname@gmail.com>, 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 “mx1.mydomain.com
”.
Many thanks,
Jean-Raoul