My Oracle Support Banner

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

Last updated on JANUARY 09, 2023

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)


The default 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/ :

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:




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

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