Wietse Venema: > Gerald Vogt: > > > Unfortunately, Postfix has (up to now) no way to feed the result > > > from one table into another table, but there is a workaround > > > which requires Postfix 2.7 or later: > > > > Too bad. I have a Centos 6 with postfix 2.6.6 > > That's a 4-year old code base. It was unfortunately not possible > for me to release Postfix with all the features that you might need > all at once. > > > > This is admittely a bit gross but so is the problem. > > > > What's so gross about the problem? It's basic masquerading. It just > > should be done before check the recipient address and not after... > > It's unusual enough that 4-year old Postfix doesn't do address munging > before recipient validation (though some MySQL plumbing can do the > job if you can ignore the @domain portion, as suggested by Noel). > > Analogous to Noel's suggestion, one possibility is that you list > bare usernames (without @example.com etc.) in relay_recipient_maps. > It's not documented, but I could add that note since the behavior is > not going to change.
This requires that the @domain matches mydestination, so that is unlikely to work. Wietse