Re: [exim] acl_smtp_helo question

Startseite
Nachricht löschen
Nachricht beantworten
Autor: Philip Hazel
Datum:  
To: Brian
CC: exim-users
Betreff: Re: [exim] acl_smtp_helo question
On Fri, 19 Nov 2004, Brian wrote:

> my questions are how can I make these:
> 2004-11-19 09:13:00 rejected HELO from [200.119.80.241]: syntactically invalid
> argument(s): tnt_pool_11980-241.etb.net.co
> 2004-11-19 09:19:53 rejected HELO from [66.28.204.22]: syntactically invalid
> argument(s): etang.com,sohu.com
> 2004-11-19 09:19:58 rejected HELO from [81.190.29.106]: syntactically invalid
> argument(s): (no argument given)
>
> show up in my acl_smtp_helo or are they already checked from there already?


The syntax check occurs before the HELO ACL is run. If you want these to
get to your ACL, you'll have to disable the syntax check using
helo_allow_chars or helo_accept_junk_hosts.

> Also second question is there any way to combine my acl_check_helo conditions
> to be done in one check insted of two? I've not been able to see if there is
> a 'or' statement for acl condtions..


The way to implement "or" in an ACL is indeed to use two separate ACL
statements. However, in your particular case you could also use the "or"
facility of expanded strings. Instead of "no" in your lookup, insert the
second lookup:

${lookup .....{yes} { ${lookup...} }

-- 
Philip Hazel            University of Cambridge Computing Service,
ph10@???      Cambridge, England. Phone: +44 1223 334714.
Get the Exim 4 book:    http://www.uit.co.uk/exim-book