I'm using canonical_maps and smtp_header_checks to override the from-address of internally generated emails. This configuration works fine to perform this header update:
echo "/^From:internal@test.*$/ REPLACE From: ${OVERRIDE_SENDER_NAME} [email protected]" >> /etc/postfix/smtp_header_checks
However, I'd like to send the email arriving at postfix relay to the same recipient from 2 different senders i.e. the receiver will receive the same email from 2 different senders. For example:
- Relay receives email with header from-address: [email protected]
- Relay duplicates(?) the message and changes the from-address in the header. Recipient stays the same.
- Recipient receives the same email from 2 different senders: [email protected] & [email protected]
Is this possible to do in postfix?