Copy Outgoing mail to an email account

Chickenwing

Verified User
Joined
Jun 26, 2007
Messages
12
Thank you below post first:
http://www.directadmin.com/forum/showthread.php?t=7119&highlight=copy+outgoing

It can work for copying all outgoing mails to an email account([email protected]).
But I found that the received copy mail account([email protected]) receive two
same email if sender send to local user account.
For example:
[email protected] send "email1" to [email protected]
then [email protected] receive two same mails "email1"
[email protected] send "email2" to [email protected]
then [email protected] receive one mail "email2"

and the /var/log/exim/mainlog like that:
2008-04-03 14:39:35 1JhJ6l-00045I-6W <= [email protected] H=(Notebook) [192.168.11.30] P=esmtpa A=login:[email protected] S=1399 id=017801c89555$ee553720$1e0ba8c0@Notebook T="test" from <[email protected]> for [email protected]
2008-04-03 14:39:36 1JhJ6l-00045M-AC <= [email protected] U=mail P=spam-scanned S=1802 id=017801c89555$ee553720$1e0ba8c0@Notebook T="test" from <[email protected]> for [email protected]
2008-04-03 14:39:36 1JhJ6l-00045M-AC => b <[email protected]> F=<[email protected]> R=virtual_user T=virtual_localdelivery S=1917 ST=local_copy_incoming
2008-04-03 14:39:36 1JhJ6l-00045M-AC => /home/mac/imap/domain.com/outgoing/Maildir/new/ <system-filter> F=<[email protected]> T=local_copy_outgoing S=1962
2008-04-03 14:39:36 1JhJ6l-00045M-AC Completed
2008-04-03 14:39:36 1JhJ6l-00045I-6W => b <[email protected]> F=<[email protected]> R=spamcheck_director T=spamcheck S=1682
2008-04-03 14:39:36 1JhJ6l-00045I-6W => /home/mac/imap/beck.dtdns.net/outgoing/Maildir/new/ <system-filter> F=<[email protected]> T=local_copy_outgoing S=1559
2008-04-03 14:39:36 1JhJ6l-00045I-6W Completed

it run two local_copy_outgoing transport.
one is for actual sending action
one is spam_check action

Can I set spam_check action just for outside domains email. not for localdelivery?

Thank you.
 
Back
Top