Random Musings

O for a muse of fire, that would ascend the brightest heaven of invention!

set up OpenBSD sendmail to fwd all local user mail to a smart host

Saturday, 12 Jan 2008 Tags: openbsdsendmail

three changes required -

  • configure sendmail to use a remote host for all mail in /etc/mail/submit.cf

      # changes to fwd mail directly to smart host
  • configure local aliases mapping to remap users to a destination address in /etc/mail/aliases

      # Well-known aliases -- these should be filled in!
      # root:
      root:           root@muse.net.nz
  • permit relaying on smart host (postfix in my case) in /etc/postfix/main.cf

      mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain, akai.$mydomain