[Exim] Re: Duplicate all outgoing relay to a company mailbox

トップ ページ
このメッセージを削除
このメッセージに返信
著者: Hunte Swee
日付:  
To: exim-users
題目: [Exim] Re: Duplicate all outgoing relay to a company mailbox
This is snippet of system.filter from our setup which used by exim as system filter.

The outgoing messages was archived under two circumstances:
1. the target domain is in a list
2. has a attachment and target domain is local_domain

-------------------------------------
# some domains
if foranyaddress $recipients  (${lookup{${domain:$thisaddress}}lsearch{/etc/exim/archive/d omains}{$value}} is "yes") then
  unseen save  /var/mails/#marc#/Maildir/.outgoing.bydomain.${tr{${domain:$ thisaddress}}{.}{_}}/
# with attachments
elif
    $h_content-type: begins multipart/mixed
  and
    foranyaddress $recipients (${domain:$thisaddress} is not "mydomain.tld")
  then
  unseen save  /var/mails/#marc#/Maildir/.outgoing.withattachment.${length_ 6:$tod_logfile}/
endif
-------------------------------------