Re: [exim] How to queue_only AND copy mail to a mailbox?

Top Page
Delete this message
Reply to this message
Author: Peter Bowyer
Date:  
To: exim-users
Subject: Re: [exim] How to queue_only AND copy mail to a mailbox?
Andreas Semt <as@???> wrote:
>
> That was also a thought by me (cause my old instance 1 does nothing
> with the mail (like you noticed above)). But how could i tell the
> instance 1 to send all mails to instance 2 *without* modification?
> Any proposals?


Without modification? It will add a Received header, that's probably all,
unless you tell it to do something else.

routers..

send_to_instance_2:
driver = manualroute
domains = <something appropriate>
route_list = * 127.0.0.1
transport = smtp_to_instance_2
unseen = yes
self = send


copy_to_mailbox:
driver=redirect
domains=<something appropriate>
data= copy_mailbox@???



transports...

smtp_to_instance_2:
driver = smtp
port = <port which instance 2 listens on>


You probably want to make sure that the domain in which the copy mailbox
lives is not routed by the 2 routers above, otherwise unwanted things will
happen.

NB These are off the top of my head, haven't been tested, should be used as
examples only, please check the docs to make sure you understand what will
happen in your setup, etc.

Peter