Re: [Exim] Denying localparts containing backslashes

Top Page
Delete this message
Reply to this message
Author: William Thompson
Date:  
To: Hans-Peter Zahno
CC: exim-users
Subject: Re: [Exim] Denying localparts containing backslashes
> I'm running Exim 4.20 on Solaris 9.
> I'm having troubles with addresses with a leading backslash, like
> <\xyz@???>. Exim seems to ignore the backslash and correctly routing the
> message to our Exchange-Server. But this one doesn't recongize this address
> and forwards it to our MX, which is Exim, leading to a mail loop.
>
> I wanted to modify the Default ACL
>   deny    local_parts   = ^.*[@%!/|] : ^\\.
> by adding the backslash in the character class, like
>   deny    local_parts   = ^.*[\\@%!/|] : ^\\.
> or
>   deny    local_parts   = ^.*[\\134@%!/|] : ^\\.


Try:
    deny    local_parts = \N^.*[\\@%!/|]\N : ^\\.
or
    deny    local_parts = ^.*[\\\\@%!/|] : ^\\.


Since it's expanded before use, it'll turn into this after expansion:
    ^.*[\\@%!/|] : ^\.
yours turns into:
    ^.*[\@%!/|] : ^\.