Ubuntu – how to send a copy to another email address of all incoming messages from an email account?(postfix)

emailemail-serverpostfixUbuntu

how to send a copy to another email address of all incoming messages from an email account?(postfix)

it's possible?

thx.

Best Answer

You can simply use recipient_bcc_maps to copy all emails being sent to a specific user (or a specific domain).

For example add the following line to your main.cf (or use postconf for that):

recipient_bcc_maps = hash:/etc/postfix/recipient_bcc_maps

and create a file /etc/postfix/recipient_bcc_maps with the following content:

user@example.com  recipient@example.net

and run postmap recipient_bcc_maps.