On 2018-03-28 (23:52 MDT), Aleksandr Miroslav <[email protected]> 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: > [email protected] [email protected] > [email protected] [email protected] > @localdomain.local [email protected] > > When mail is sent to a remote host via SMTP, this replaces > [email protected] by his ISP mail address, replaces [email protected] > 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
