[exim] Exim filter

Góra strony
Delete this message
Reply to this message
Autor: Slawomir Orlowski \(Cympak\)
Data:  
Dla: exim-users
Temat: [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