I'm trying to copy incoming emails for a specific domain to another
server for archival purposes.
e.g. mails to [email protected] needs to go to [email protected]

The only method I've found so far that works is through the user of
the system filter, checking for matches in $h_to, $h_cc and $h_bcc
before doing a deliver unseen.

The problem with this is that I am not able to automatically copy the
email based on the user. I can only specify a single destination
mailbox for all users on that domain. Trying to use $local_part does
not work and the documentation seems to be saying that the information
is not available at this stage of delivery.

So I started looking at shadow transport but the documentation seems
to indicate that it cannot be use for remote delivery. Nevertheless, I
experimented and it seem to be possible to call a shadow transport
which uses the smtp driver. Except then I run into smtp authentication
problem where server1archive refuses to accept the email.

Somehow I feel like I am going about this the wrong way. I'd
appreciate it greatly if anybody point me in the right direction, or
is archiving on a per user basis simply not possible?

-- 
## 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