On Tue, 2006-04-11 at 13:48, Paul Heinlein wrote:
If you use the masquerade feature you can only have one masquerade_as target. Using the generics feature you can rewrite outgoing mail differently.
I hadn't used the generics table until recently. I wrote up a skeletal howto and use case; it may be of some help:
Or, if you can make sure everyone sets their own correct 'From:' address in their own mail client settings you can turn off the masquerade_as.
For us, the trick wasn't so much for mail sent from a well behaved mail client as much as it was from application-generated mail on the local machine.
Yes, you'd only get one choice there if the app doesn't supply a From: header. Even without masquerade_as, sendmail would supply the local host and domain name to qualify an otherwise bare name.