On 2018-03-28 (23:52 MDT), Aleksandr Miroslav <alexmiros...@gmail.com> wrote:
> 
> Is there a way to rewrite mails from local?


<http://www.postfix.org/ADDRESS_REWRITING_README.html>

that seems to cover it. If smtp_generic_maps isn't working for you, perhaps 
read that section again, since it seem to do exactly what you want

> Example: 
> 
> /etc/postfix/main.cf:
>     
> smtp_generic_maps = hash:/etc/postfix/generic
> 
> /etc/postfix/generic:
>     his@localdomain.local               hisaccount@hisisp.example
>     her@localdomain.local               heraccount@herisp.example
>     @localdomain.local                  hisaccount+local@hisisp.example
> 
> When mail is sent to a remote host via SMTP, this replaces 
> his@localdomain.local by his ISP mail address, replaces her@localdomain.local 
> by her ISP mail address, and replaces other local addresses by his ISP 
> account, with an address extension of +local (this example assumes that the 
> ISP supports "+" style address extensions).



-- 
'The gods,' he said. 'Imprisoned in a thought. And perhaps they were
never more than a dream.' --Sourcery

Reply via email to