[exim] Exim filter

トップ ページ
このメッセージを削除
このメッセージに返信
著者: Slawomir Orlowski \(Cympak\)
日付:  
To: exim-users
題目: [exim] Exim filter
Hello,



I would like to install exim filter which would copy to some file both: emails sent from user test1 from outside_domain to user test2 on our system, and emails sent from user test2@inside_domain.com to test1@outside_domain.com.



Filter would have allow for normal communication between users test1 and test2 only save copy of their email in some file or send copy of them to some third account.



I have tried with below filter but it even did not allow normal delivery, all emails have been lost.

Any help please.

Regards

Slawomir



# Exim filter



if $sender_address matches "test1@outside_domain.com" and $h_to matches "test2@inside_domain.com" then

save /var/spool/mail/file



endif