[exim] help with rcpt acls

Startseite
Nachricht löschen
Nachricht beantworten
Autor: Thunder
Datum:  
To: exim-users
Neue Treads: [exim] Help with Data ACL
Betreff: [exim] help with rcpt acls
Hi All,

I found a bunch of ACL's on the web for exim that help deal with
spam/bot activity. I would like to use these however I want to modify
them, I don't want them to apply if the message has come in on the
submission port 587. Examples:

---------------
#We don't want mail from rdns than hints its origin is from a dsl/other 
end user connection
#with a dynamic ip etc
drop message   = Nice try...
      condition = 
${lookup{$sender_host_name}wildlsearch{/usr/local/etc/exim/dynamicranges}{true}{false}}


#RDNS checking.
drop message   = Client Policy Restriction: No (consistent) reverse DNS 
set.
      condition = ${if !def:sender_host_name}
drop message   = Client Policy Restriction: No (consistent) reverse DNS 
set.
      condition = ${if isip{$sender_host_name} {yes}{no}}
drop message   = Client Policy Restriction: No (consistent) reverse DNS 
set.
      condition = ${if eq{$sender_host_name}{} {yes}{no}}
drop message   = Client Policy Restriction: No (consistent) reverse DNS 
set.
      !verify   = reverse_host_lookup


---------------

It's really an if(condition1 && condition2) are met, then the rule only
applies then. But I cannot get my head around how multiple conditions
and how if's work in exim. The documentation still has me scratching my
head.

Any ideas on what I need to do to make the above only be valid only if
the message has come in on port 25?


Cheers
A.