On 2010-06-15, at 12:53, Wietse Venema wrote: > Have you tried the suggestion? I'm the person who wrote Postfix.
If course I tried. And of course I know that you're the one who wrote Postfix (thank you very much for that!), that's why I asked why you find my config weird. With the your suggestion the mails are delivered correctly, but the sender address looks like this: From: r...@example.com (root) Trying with these settings, I found that this was what I wanted: /etc/postfix/main.cf: masquerade_domains = $mydomain masquerade_classes = envelope_recipient This way the mail gets delivered correctly and the hostname remains in the sender address: From: r...@host.example.com (root) So I guess the this is the solution, thank you! Regards Matias