On 27/04/2014 14:18, Wietse Venema wrote:

This looks like the "fantasy domain" example in
http://www.postfix.org/SOHO_README.html#fantasy

You'd do something like:

/etc/postfix/main.cf:
     smtp_generic_maps = hash:/etc/postfix/generic

/etc/postfix/generic:
     dougandmari...@theirdomain.com  holga...@gmail.com
     d...@theirdomain.com            holgates+d...@gmail.com
     mari...@theirdomain.com         holgates+mari...@gmail.com
     @theirdomain.com                holgates+ot...@gmail.com

This correctly fixes the address in From/To/Cc/etc headers, too.

Thanks Wietse! Actually, 'theirdomain.com' was a placeholder (I wanted to avoid exposing their real domain to mailing list and thus making it a target of spam). The domain they are using is real :)

It turned out in the end that the problem was entirely down to the setup of the gmail filters. Postfix was doing exactly what I intended, but I had misread the headers when looking at the mail that arrived at gmail, and I'd misread my own log files too. I'm really not having a good day :(.

Sorry for wasting your time, and thanks for all your help (and for all your great work on Postfix over the years!).

Matt.

Reply via email to