Forward emails to multiple mailboxes if Sender = sender@domain

Discussion in 'Server Operation' started by bschultz, Jul 19, 2021.

  1. bschultz

    bschultz Member

    I would like to automatically copy all emails sent by a certain sender to a second mailbox.

    So, any email sent from [email protected] goes to [email protected] AND to [email protected] (user1@otherdomain was the address that the email was sent to in the first place).

    I'm using Postfix and ISPConfig on Debian. Is this possible?

    Thanks!
     
  2. Jesse Norell

    Jesse Norell Well-Known Member Staff Member Howtoforge Staff

    Add the sender's mailbox and set 'Send outgoing BCC to' to the second mailbox's address.
    You can either create an alias that forwards to the 2 final destinations and use that as the "second mailbox" in the above, or if you have control over the [email protected] mailbox as well, you could write a sieve script for [email protected] which matches mail from [email protected] and copies it to [email protected].
     

Share This Page