Forcing sendmail to use mailhost under Solaris 10

Under Solaris 10 the default sendmail config doesn't forward mail which can't be delivered locally to mailhost. This is also true after some patching:

The quickest resolution is to add an entry for mailhost to the DS (Smart Relay host) setting:

  1. Modify /etc/mail/, and replace:

    save edits
  2. Restart sendmail:
    # svcadm refresh smtp:/sendmail
    # svcadm restart network/smtp:sendmail
  3. Test email
    # mailx -s "test" <user>@<domain>