My Oracle Support Banner

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

Last updated on JULY 16, 2024

Applies to:

Solaris 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:

define(`SMART_HOST', `<FQ_HOSTNAME>')

 

Solution

To view full details, sign in with your My Oracle Support account.

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


In this Document
Goal
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.