Hello!
I need save all incoming/outgoing mail in files like mailboxes (with name as
localpart).
Before I did it on mail server this way:
For outgoing mail I'v added copy_router:
copy_router:
driver = domainlist
route_list = *
unseen = yes
transport = copy_transport
And copy_transport:
copy_transport
driver = appendfile
file = /usr/savemail/${sender_address_local_part}
delivery_date_add
envelope_to_add
return_path_add
user = exim
group = mail
mode = 0644
For incoming mail I'v just defined shadow_transport in local_delivery
transport to
copy_incoming_transport:
driver = appendfile
file = /usr/savemail/${local_part}
delivery_date_add
envelope_to_add
return_path_add
user = exim
group = mail
mode = 0644
It worked fine. But now I'v moved user's mailboxes to other server and exim
bacame a mail relay.
To do so I've added this director:
mysql_look:
driver = smartuser
condition = ${lookup mysql{select email from users
email='$local_part'}{$value}fail}
transport = smart_host
Transport:
smart_host:
driver = smtp
hosts = mailserver
And I'v lost possibility to save incoming mail because I can't add
shadow_transport in smart_host transport.
I'v made a lot of experiments and can't understand where can I "catch" the
incoming mail?
Have you any ideas?
Sem.
---------------------------------------------------------------
Sergey Matveychuk | System Administrator
E-Mail: sem@??? | Institute Of Aviation Motors
Tel: +7(095)362-56-58 | Moscow, Russia
Pager: +7(095)918-19-19 ab.2244 | ICQ UIN: 3317990
---------------------------------------------------------------