1

I have a postfix - dovecot mail server installed over a Ubuntu 14.04 VPS.

Is the following situation possible? I have tried using alias, but when i try to reply the mail, this one is delivered from [email protected] (and this mail should be hidden!)

Mail sent to [email protected], this mail delivers to [email protected] and to [email protected]. When bob1 or bob2 replys the mail, it should be sent from [email protected]. Is it possible?

Thanks!

1

1 Answer 1

3

You probably want to set sender_canonical_maps for outgoing mails. This way you get both header and envolope addresses rewritten.

But for incoming mails recipient_canonical_maps doesn't work since you can only map to one E-Mail address. Anyways it's probably cleaner to have recipient_bcc_maps (delivers to info, bob1 and bob2) or virtual_alias_maps (delivers to bob1 and bob2 instead of info).

So you should use something like this:

/etc/postfix/main.cf:

virtual_alias_maps = hash:/etc/postfix/virtual_alias_maps
sender_canonical_maps = hash:/etc/postfix/sender_canonical

/etc/postfix/sender_canonical:

[email protected] [email protected]
[email protected] [email protected]

/etc/postfix/virtual_alias_maps:

[email protected] [email protected], [email protected]

You maybe have to add domain.com in the virtual_alias_maps table if it is not already defined as one of Postfix destionation domains somewhere in your configuration.

Please have a look at Postfix' address rewriting README for more details.

PS: Your described behaviour sounds like an Issue Tracking System, so you may want to have a look at one of those systems: https://en.wikipedia.org/wiki/Comparison_of_issue-tracking_systems

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .