On Thu, 2009-02-19 at 14:35 -0500, Victor Duchovni wrote: > 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 >
But isnt that going to fail in case of multi-recipient mails For eg. If a mail was marked to yahoo and to gmail instead of splitting the recipients as postfix would normally do all the mail would be sent to the mx of yahoo. The mail for gmail recipient would bounce as yahoo has no business relaying gmail ( They have enough problems dealing with their own :-) already ) How can I use this FILTER in such a scenario