How To Configure Sendmail to Forward Mails to a Relay Host aka Smarthost (Doc ID 2018587.1)

Last updated on JUNE 28, 2016

Applies to:

Solaris SPARC Operating System - Version 10 3/05 HW1 to 11.2 [Release 10.0 to 11.0]
Oracle Solaris on SPARC (64-bit)

Goal

The default sendmail.cf is set up as an MTA (mail router), using DNS to forward mails to the Mail Exchanger  (MX) record for the domainname resolution  In the event that the DNS config does not cater for public network access or does not contain valid MX (mail exchange) records for forwarding, sendmail will fallback to forwarding message to the default host named "mailhost.domainname"

Eg. /etc/mail/sendmail.cf :

O FallbackSmartHost=mailhost$?m.$m$.

 

In the absence of either mailhost or MX record in the DNS naming services, one can set up the sendmail to forward messages to a defined Mail Relay / Relayer, otherwise known as Smarthost, using this macro SMART_HOST 19.6.47 :

define(`SMART_HOST', `smart.foo.com')

 

Solution

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms