On Wed, Sep 28, 2011 at 17:17, Bob Proulx <b...@proulx.com> wrote:
> How can I configure a host to send *all* email to the relayhost?  This
> simple configuration has me stumped.  Setting relayhost or using a
> transport map only handles non-local recipients.  But if a recipient
> has a local login then those are not consulted.  After scouring the
> documentation and trying various things I am unable to deduce the
> proper way to tell postfix that it has no local recipients.

For (my fairly old installation of) postfix, I have the following
mostly relevant lines in main.cf:

     myhostname = mx1.example.tld
     mydomain = example.tld
     myorigin = $mydomain
     mydestination =
     local_recipient_maps =
     unknown_local_recipient_reject_code = 550
     relay_recipient_maps = hash:/usr/local/etc/postfix/relay_recipients
     relay_domains = $mydestination, $mydomain
     alias_maps = hash:/usr/local/etc/postfix/aliases
     alias_database = hash:/usr/local/etc/postfix/aliases
     transport_maps = hash:/usr/local/etc/postfix/transport

In /usr/local/etc/postfix/aliases, I have the following:

     root:           sysad...@example.tld


Those, along with appropriate postalias and postmap commands work for
me on my Maia Mailguard gateway.. I'm running postfix-2.3.8,1

Kurt

Reply via email to