OCI: SENDMAIL Fails To Deliver Mails With Error “stat=Deferred: Connection timed out with “
NOTE: Please register a free account to access the full content and also to participate in Q&A in the community.
Applies To:
Oracle Cloud Infrastructure
Linux x86-64
Symptoms
Unable to send emails using SENDMAIL and it fails with following error,
Sep 19 09:14:38 localgost sendmail[212714]: w8J5hdnn110252: to=<mailuser@test.com>,
ctladdr=<oracle@localhost.test> (1000/1001), delay=00:30:51, xdelay=00:04:16, mailer=esmtp,
pri=211934, relay=test.coml. [10.x.x.x], dsn=4.0.0, stat=Deferred: Connection timed out with test.com
Cause
The "SMART_HOST" parameters are not defined to relay mails to SMTP server, so it accepts the SMTP connection on the IPV4 loopback address. Once the server accepts the connection, it does a domain lookup to the recipient domain using local DNS server to find the MX/PTR/A record, then the mails are relayed to respective SMTP server.