Postfix relay email with two senders

16 Views Asked by At

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:

  1. Relay receives email with header from-address: [email protected]
  2. Relay duplicates(?) the message and changes the from-address in the header. Recipient stays the same.
  3. Recipient receives the same email from 2 different senders: [email protected] & [email protected]

Is this possible to do in postfix?

0

There are 0 best solutions below