Hi everybody !

Could someone help me, i've been searching everywhere around without results.

Almost every local email account has its own email account provided by an email 
provider. I use fetchmail to retreive them and store them locally on my server. 
This configuration permits me to have only one account to configure for both 
local mails and internet mails on the client email software.
Although everything working, it's not really what i want, because when mails 
are sent to local users, there are always sent with my email provider smtp 
server and rewrite by postfix and i'd like them to be sent through the postfix 
locally, thus without any email address rewritting. 

When i email to someone in my domain like john...@mydomain.local  it's always 
sent with the address : john...@mymailprovider.org.
I've set up a generic rule in /etc/postfix/generic like this :

ad...@mydomain.local ad...@mymailprovider.org
john...@mydomain.local john...@mymailprovider.org


I would like to rewrite only the emails going outside my local domain, so don't 
rewrite the mails send to local domain users.
For example :
ad...@mydomain.local to a...@aa.com should be rewrite as 
ad...@mymailprovider.org to a...@aa.com
and when it's for local sender :
ad...@mydomain.local to joh...@mydomain.local should not be rewrite



Thanks everyone for reading and helping 
Have a nice day !

Reply via email to