I have read and re-read this pages and other documents but still it seems not to work
I have changed a few things in my configuration:
in main.cf
I have changfed myorigen from
myorigen=host.domain.tld   into myorigen=$mydomain  (mydomain=domain.tld)
NOW the from is rewriten, so i have a good return address

mydestination=localhost, localhost@localdomain

local_header_rewrite_clients=static:all
remote_header_domain_rewrite=domain.tld
maquerade_domains=host.domain.tld domain.tld

BUT still i cant change the local TO adress from host.domain.tld to domain.tld

Why i want this.
(I dont want real UNIX users with mail, because the same password is used and this password is often sent over the internet.)
I have all virtual domains.
local users can sent a message, i want one of the virtual domains added and receive answers in the virtual mailboxes
I want mail by the system sent correctly to my virtual mailbox.

I'm still thinking about using cannonical for message TO ?rewrite
and .forward for systemmail

Someone a nice idea

Thanks

Erik



----- Original Message ----- From: "Noel Jones" <njo...@megan.vbhcs.org>
To: <postfix-users@postfix.org>
Sent: Wednesday, July 20, 2011 6:51 PM
Subject: Re: rewriting local users to user@domain instat of user@host.domain


On 7/20/2011 11:33 AM, Erik - versatel wrote:
Hai,

In my configuration
as i login localy - with only a username and no domain
and i send an email to myself
it is rewriten to: user@host.domain

Question: is it possible to rewrite this to user@domain
In that case locale emails come in a mailbox i will see.
Or is there an other solution to send (forward) mail from user
automatically to user@domain

Please see:
http://www.postfix.org/ADDRESS_REWRITING_README.html

and possibly:
http://www.postfix.org/ADDRESS_REWRITING_README.html#masquerade


-- Noel Jones

Reply via email to