On Thu, Feb 19, 2009 at 02:20:39PM -0500, Wietse Venema wrote:

> /etc/postfix/main.cf
>     check_recipient_access pcre:/etc/postfix/random.pcre
> 
> /etc/postfix/random.pcre
>     /^(.)(.*)/        FILTER smtp$1:$1$2

Regexp recipient lookups are keyed by the full user address, and the
character-set of locaparts is less predictable than with domains, so I
would suggest a refinement:

        /^(.*)@([a-z0-9])(.*)/  FILTER smtp$2:$2$3

-- 
        Viktor.

Disclaimer: off-list followups get on-list replies or get ignored.
Please do not ignore the "Reply-To" header.

To unsubscribe from the postfix-users list, visit
http://www.postfix.org/lists.html or click the link below:
<mailto:majord...@postfix.org?body=unsubscribe%20postfix-users>

If my response solves your problem, the best way to thank me is to not
send an "it worked, thanks" follow-up. If you must respond, please put
"It worked, thanks" in the "Subject" so I can delete these quickly.

Reply via email to