Re: [exim] deny senders in RCPT ACL regular expression and …

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Andreas Metzler
Dátum:  
Címzett: exim-users
Tárgy: Re: [exim] deny senders in RCPT ACL regular expression and wildcards won't match for some reason
On 2021-06-01 slp tees via Exim-users <exim-users@???> wrote:
[...]
> acl_check_rcpt:


>   ### Deny if sender explicitly in blacklist
>   # $recipients is not available until DATA command
>   deny senders = ${if exists{CONFDIR/sender-blacklist-envelope-from}\
>                    {CONFDIR/sender-blacklist-envelope-from}\
>                    {}}
>     message = Rejected RCPT <$local_part@$domain>: Unrouteable address
>     log_message = Blacklisted - $sender_address
>     delay = 10s


> And here is the excerpt from the file sender-blacklist-envelope-from that
> should have blocked the spam I saw.


> \N^quicken.loans.*@.*\N
> *\N^mutual.of.omaha.*@.*\N*
> \N^meetasianlady.*@.*\N

[...]

Hello,

The lines in the file are not expanded, so quoting with \N should not be
necessary. The second line ("*\N^mutual.of.omaha.*@.*\N*") does not
start with ^ but with "*" and is therefore not interpreted as a regular
expression.

This would probably work:
^mutual.of.omaha.*@.*

cu Andreas
--
`What a good friend you are to him, Dr. Maturin. His other friends are
so grateful to you.'
`I sew his ears on from time to time, sure'