[exim] Re: Regex in address list does not work (Exim 4.94)

2023-11-13 Thread Evgeniy Berdnikov via Exim-users
On Mon, Nov 13, 2023 at 04:33:25PM +0300, Evgeniy Berdnikov via Exim-users wrote: > # echo '^.*@s\\d+\\..+\\.ru' > /etc/exim4/local_sender_blacklist > # exim4 -d-all+lookup+expand -bh 94.139.242.37 [...] > i...@s7.alextro.ru in "/etc/exim4/local_sender_blacklist"? yes (matched > "^.*@s\d+\..+\

[exim] Re: Regex in address list does not work (Exim 4.94)

2023-11-13 Thread Tapio Peltonen via Exim-users
On Mon, 13 Nov 2023 at 15:34, Evgeniy Berdnikov via Exim-users wrote: > # exim4 -d-all+lookup+expand -bh 94.139.242.37 Oh, thank you, I hadn't really familiriazed me with the exim command line options and how to run a fake session. It works now, I had too many backslashes in the file, as Jeremy

[exim] Re: Regex in address list does not work (Exim 4.94)

2023-11-13 Thread Evgeniy Berdnikov via Exim-users
Hello. On Mon, Nov 13, 2023 at 02:25:21PM +0200, Tapio Peltonen via Exim-users wrote: > I have the following line in my local_sender_blacklist file, which is > included as a blacklisted address list: > > ^.*@s\\d+\\..+\\.ru [...] > This does not match anything. Other lines in the blocklist wo

[exim] Re: Regex in address list does not work (Exim 4.94)

2023-11-13 Thread Jeremy Harris via Exim-users
On 13/11/2023 12:25, Tapio Peltonen via Exim-users wrote: Is there something I'm missing here? Should the backslashes in included files be doubly escaped or something? You already have backslashes in front of the RE backslashes (eg "\d"). That would be for protecting against Exim expanding, bu