Re: [exim] ACL filtering 3 dashes in host name

Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: Always Learning
Ημερομηνία:  
Προς: Exim Users
Αντικείμενο: Re: [exim] ACL filtering 3 dashes in host name

Hi Eduardo,

> > acl_smtp_rcpt = acl_check_rcpt
> >
> > acl_check_rcpt:
> >
> > deny    message       = [F04] Sending Mail Server Not Genuine.
> >         hosts         = *-*-*-*

> >
> > The test in F04 does not block host names such as today's host names
> > which were successfully stopped after more tests further along the
> > checking process.
> >
> > How does one catch host names containing three hyphens (or dashes) ?


> One way is to use regular expressions:
>
> http://www.exim.org/exim-html-current/doc/html/spec_html/ch08.html


It does not work when I use

    hosts         = ^*-*-*-*


    hosts         = ^*-*-*-*$


The panic file accumulates error messages.

> If that cannot be used directly, the match condition can help:
>
> http://www.exim.org/exim-html-current/doc/html/spec_html/ch11.html#SECTexpcond


That does not appear to expand strings like *-*-*-*

Further along in the same ACL

defer   message       = [F21] Anti-Spam Protection. Please retry in a
few minutes.
        domains       = aaaa.bbbb
        !hosts        = *.uk : *.com : *.net : *.org


works perfectly.

If I can trap and use *.uk why can't I also trap and use *-*-*-* ?

Regards,

Paul.

--