Adripop schrieb:
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 <mailto:john...@mydomain.local> it's always sent with the address : john...@mymailprovider.org <mailto:john...@mymailprovider.org>.
I've set up a generic rule in /etc/postfix/generic like this :

ad...@mydomain.local <mailto:ad...@mydomain.local> ad...@mymailprovider.org <mailto:ad...@mymailprovider.org> john...@mydomain.local <mailto:john...@mydomain.local> john...@mymailprovider.org <mailto: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.loca <mailto:ad...@mydomain.loca>l to a...@aa.com <mailto:a...@aa.com> should be rewrite as ad...@mymailprovider.org <mailto:ad...@mymailprovider.org> to a...@aa.com <mailto:a...@aa.com>
and when it's for local sender :
ad...@mydomain.loca <mailto:ad...@mydomain.loca>l to joh...@mydomain.loca <mailto:joh...@mydomain.loca>l should not be rewrite



Thanks everyone for reading and helping Have a nice day !
Do you  really have mydomain.local set in mydestination in main.cf?

Reply via email to