[Exim] verify $h_to: and $h_cc:

Startseite
Nachricht löschen
Nachricht beantworten
Autor: Голованов Сергей
Datum:  
To: exim-users
Betreff: [Exim] verify $h_to: and $h_cc:
I want to reject all incoming messages if $h_to: and $h_cc: not contains in
/etc/exim/myaddresses. I do:

...
acl_smtp_data = acl_check_data
...
acl_check_data:
...
accept condition=${lookup{${address:$h_to:}} \
wildlsearch{/etc/exim/myaddresses}{yes}{no}}
accept condition = ${lookup{${address:$h_cc:}} \
wildlsearch{/etc/exim/myaddresses} {yes} {no}}

deny message = Wrong \"To:\" or \"Cc:\" header.

All works, but!
less /var/log/exim/reject.log
...
T To: Suresh Ramasubramanian <linux@???>
C Cc: Avleen Vig <lists-exim@???>, exim-users@???
...

How I can do it right?

PS. cat /etc/exim/myaddresses
*@dill.nov.net
*@dill.sinor.ru
*@yahoogroups.com
*discuss@???
jabber-users@???
exim-users@???
*@lists.asplinux.ru

--
Thanks.
Az.