Re: Defining another server as the mailhub.

From: (no name) (no email)
Date: Thu Jul 01 2004 - 11:49:31 EDT


On Thu, 1 Jul 2004, Wietse Venema wrote:

> Bisbal, Prentice:
> > I spoke too soon. This works, but there's one problem: The addressess are
> > rewritten so all the mail comes from . I would like to keep
> > the addresses so that mail from root at machine1 still appears to be from
> > . Is this possible?
>
> Note: this introduces an inconsistency between sender and recipient
> address. What you want is that sender root resolves to
> while recipient root resolves to .
>
> One possibility is to specify "myorigin = $myhostname",
> "masquerade_domains = $mydomain" and "masquerade_exeptions = root".
>

Also:

        masquerade_classes =
                header_sender,
                header_recipient,
                envelope_sender,
                envelope_recipient

        virtual_alias_maps = hash:/etc/postfix/virtual

   virtual:
        root
        ... any other users in masquerade_exceptions ...

With Postfix 2.1 one could even use the same map for both rewriting and
masquerade_exceptions (which is now a matchlist).

This punts all bare recipients to the mailhub, masquerades everything
except root, but still sends root mail to the mailhub.

-- 
	Viktor.
Disclaimer: off-list followups get on-list replies or get ignored.
Please do not ignore the "Reply-To" header.
To unsubscribe from the postfix-users list, visit
http://www.postfix.org/lists.html or click the link below:
<mailto:?body=unsubscribe%20postfix-users>







Hosted Email Solutions

Invaluement Anti-Spam DNSBLs



Powered By FreeBSD   Powered By FreeBSD