On Thu, Jul 16, 2020 at 07:43:12PM +0200, Kai Bojens via Exim-users wrote:
> So, I am looking for a way to redirect a mail with several Bcc (or To, CC)
> Recipients as single mails to one recipient.

 I think you have no way but get original message out of Exim and generate
 several copies with different headers by some external script:

 [transports]

 archive:
   driver       = pipe
   command      = "/path/to/forwarder"
   envelope_to_add

 The "forwarder" script should read message from stdin, extract contents
 of Envelope-To: header for list of recipients, for each recipient
 create copy with some marker attached (as "X-Envelope-To: address"),
 and finally forward this copy to your archive host, as a single mail.

 Maybe alternative solutions exist, say, with use of $recipients
 variable instead of envelope_to_add.
-- 
 Eugene Berdnikov

-- 
## List details at https://lists.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/

Reply via email to