[prev in list] [next in list] [prev in thread] [next in thread]
List: exim-users
Subject: Re: [exim] deny senders in RCPT ACL regular expression and wildcards won't match for some reason
From: Andreas Metzler via Exim-users <exim-users () exim ! org>
Date: 2021-06-05 13:21:27
Message-ID: YLt6VxnWIYNMq/Mk () argenau ! bebt ! de
[Download RAW message or body]
On 2021-06-01 slp tees via Exim-users <exim-users@exim.org> 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'
--
## 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/
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic