Re: [exim] 'verify=helo' and strange warning...

Góra strony
Delete this message
Reply to this message
Autor: Mike Brudenell
Data:  
Dla: Exim Users
Temat: Re: [exim] 'verify=helo' and strange warning...
Yup, I think that's correct behaviour for what you're telling Exim to do.
You don't explain clearly what it is you're asking, but I'm guessing you're
seeing the header added all the time and wondering why? If so…

When you read the documentation for *Access Control Lists* you'll see in
section *24. Adding header lines in ACLs
<https://www.exim.org/exim-html-current/doc/html/spec_html/ch-access_control_lists.html#SECTaddheadacl>*
that it says:

The *add_header* modifier acts immediately as it is encountered during the
processing of an ACL. Notice the difference between these two cases:

accept add_header = ADDED: some text
       <some condition>


accept <some condition>
       add_header = ADDED: some text


In the first case, the header line is always added, whether or not the
condition is true. In the second case, the header line is added only if the
condition is true. Multiple occurrences of *add_header* may occur in the
same ACL statement. All those that are encountered before a condition fails
are honoured.


So in your ACL you are telling Exim to *always* add the header, and
*then* apply
the test to verify the HELO.

Cheers,
Mike B-)

On Thu, 11 Jun 2020 at 12:44, Marco Gaiarin via Exim-users <
exim-users@???> wrote:

>
> I've a simple 'warn' ACL:
>
>   warn
>     add_header = X-HELO-Warning: Remote host $sender_host_address ${if
> def:sender_host_name {($sender_host_name) }}incorrectly presented itself as
> $sender_helo_name
>     log_message = Remote host presented unverifiable HELO/EHLO greeting
>     hosts = !+relay_from_hosts
>     !verify = helo

>
> but emits warning like:
>
>         X-HELO-Warning: Remote host 89.185.230.205 (smtp5.mailing.easy.cz)
> incorrectly presented itself as smtp5.mailing.easy.cz

>
> that seems a bit strange to me. Why?
>
>
> Thanks.
>
> --
>   Mi piaccion le fiabe
>   raccontane altre                                      (F. Guccini)

>
>
>
> --
> ## List details at https://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/
>



--
*My normal working days are Tuesdays, Wednesdays and Thursdays.*

Systems Administrator working in Teaching & Learning
IT Services, University of York, Heslington, York YO10 5DD, UK
Tel: +44-(0)1904-323811

Web: www.york.ac.uk/it-services
Disclaimer: www.york.ac.uk/docs/disclaimer/email.htm