Matias E. Fernandez:
> What I'm trying to achieve is exactly that. I want that this message:
> 
> echo "root alias set" | /usr/sbin/sendmail -f root root
> 
> sent from host.example.com be sent to the central mail server at 
> mx1.example.com and delivered to root.
> 
> I have the following settings:
> myorigin = host.example.com
> mydestination = 
> # relay to mx
> relayhost = example.com
> inet_interfaces = loopback-only
> local_transport = error:local delivery is disabled

Weird, but possible.

Add:

/etc/postfix/main.cf:
    masquerade_domains = $mydomain
    masquerade_classes = envelope_recipient, envelope_sender

This makes sure that the envelope is valid, but it leaves the
hostname in the headers.

        Wietse

Reply via email to