[Exim] how to do an logical OR in acl's? How to allow recipi…

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Ralf Hauser
Date:  
À: Andreas Metzler, exim-users
Anciens-sujets: Re: [Exim] how to accept a regular expression on the entire recipient address and not just "local_parts"
Sujet: [Exim] how to do an logical OR in acl's? How to allow recipients without domain? ("5.1.2. Bad Recipient format --- no domain specified" Mozilla Messenger error message)
Andreas,

Thanks. I got one step further. With
acl_check_rcpt:
  accept  hosts = :
  accept recipients = \N^rrr[a-zA-Z0-6]{3,10}$\N
  endpass
  deny    local_parts   = ^.*[@%!/|] : ^\\.
  accept  authenticated = *
  deny    message       = relay not permitted


I get to the place where I see in my log
...
12950 expanded string: yes
12950 SMTP>> 235 Authentication succeeded
12950 SMTP<< MAIL FROM:<hauser@???>
12950 SMTP>> 250 OK>
--- end of log ---
unfortunately ...
-----Original Message-----
> From: exim-users-admin@??? [mailto:exim-users-admin@exim.org]On
> Behalf Of Andreas Metzler

...
> "recipient" is no valid ACL conditions (37.12 in spec.), you might be
> have wanted to use "recipients", but this wouldn't have had the
> intended effect, there are some other errors:
> * AFAIK address lists are expanded, i.e. you'd have to use
> accept recipients = \N^rrr[a-zA-Z0-6]{3,10}$\N

looks good
> * As the regular expression is matched against the complete address,
> and not just the local part, it will never match (it does not match
> an @)

this is intentional - I want either the "rrrQW1234PO24Z" type of recipients
OR regular e-mails.
So far, I figured, that endpass is the way to get a logical OR (it may still
not be correct).

But strangely, after the end of my acl, my log stops, but Mozilla Messenger
comes back with
<<"The mail server responded: 5.1.2. Bad Recipient format --- no domain
specified. Please check the message and recipients and try again.>>
Not having a domain is intentional, because I want people not to send mails
via any other SMTP server than mine.

Any hints would be highly appreciated!

    Ralf


P.S.: I see some hints on logical OR in
http://marc.theaimsgroup.com/?l=exim-users&m=99252887931959&w=2