-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I need to change email sent by a user from one domain (a.com) so that
clicking Reply will reply to him at b.com. (a.com isn't always reliable,
and I admin b.com, among other reasons.)

Google got me to postfix.org's documentation on generic maps. I'm
running 2.5, so tried that, to rewrite the destination address on its
way out, but couldn't get it to work:

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

/etc/postfix/generic:
ghe2...@gmail.com               g...@slsware.com
g...@qw.net                     g...@slsware.com

I sent mail to myself at gmail, expecting it to come here -- the log
says it was successfully sent to gmail, but I never saw it. qw.net
actually exists, and they refused the 2 or 3 connection attempts with
what look to me like SASL errors.


So I tried to rewrite the sender address on its way in. The
canonical-sender map worked when I telnet'ed and did SMTP by hand,
without supplying a From: header. But when he sent me mail, the
Return-Path header was rewritten but From: was not, so clicking Reply
was sending to a.com.

Is there a way to get postfix to change From: or to maybe copy
Return-Path to a Reply-To?

Or can you tell me what I did wrong with the generic map?

I found I could create a phony DNS zone on my LAN with a phony MX, but
that feels like a real kludge and fraught with peril...

- --
Glenn English
g...@slsware.com

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.8 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkmu/QAACgkQ04yQfZbbTLaecACgpBYNZxXtN45vyEgGICHINl2s
OpMAnRg02VvXxL+dFASCo2eBukI5GAkL
=St47
-----END PGP SIGNATURE-----

Reply via email to