Hi!  I  am from Russia and my english is not so good as you and I need
help with Exim MTA.
Every  day  I  received a many letters from spammers. All this letters
have   different   headers.   I   mean  that  header  "from"  contains
"[email protected]"  (domain  rambler.ru  is  in  white list) and header
"return-path"  contains another address [email protected]. And because
of that i tried to write special rule in acl_check_rcpt.
I have two variants, but all of them don not work properly.

1)
warn    log_message = "My rule! It works!"
        condition =${if !eq{${lc:$h_return-path:}}{${lc:$h_from:}}{yes}{no}}
        hosts =!127.0.0.1 : !localhost : *
        add_header = X-ACL-Warn: warnings

2)
  warn   log_message = "From and Return do not matches! SPAM! It works!!!"
         condition = ${if !match{$return_path}{$sender_address}{yes}{no}}
         hosts = !127.0.0.1 : !localhost : *
         add_header = X-ACL-Warn: $return_path

This rules dont contain any gramatic errors, no mistakes in exim log, but
they dont work!
What am I not understand?
Please help!


-- 
View this message in context: 
http://www.nabble.com/compare-two-headers_rule-in-acl-dont-work-properly-tp24586635p24586635.html
Sent from the Exim Users mailing list archive at Nabble.com.


-- 
## List details at http://lists.exim.org/mailman/listinfo/exim-users 
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/

Reply via email to