> On Mar 19, 2016, at 5:02 PM, Wietse Venema <[email protected]> wrote:
> 
> @lbutlr:
>> When using recipient_bcc_maps could I do something in a pcre table like:
>> 
>> Main.cf:
>> recipient_bcc_maps =3D pcre:/path/to/rbccmap.pcre
>> 
>> rbccmap.pcre:
>> if !/backups@my\.domain$/=20
>>   /^(.*)/   backups+${1}@my.domain=20
>> endif
>> 
>> That passes the restriction that the map can only return a single =
>> address, right?
> 
> The result is one malformed email address with multiple @ characters.

The result is [email protected]@domain1.tld which does get delivered to 
[email protected] and put into a folder [email protected], which frankly 
surprised me.

BUT, I have changed it to:

if !/backup.*@my\.domain$/
/^(.*)@(.*)/   backup+${1}.${2}@my.domain
endif

Which makes more sense and works, except that if the user, let’s say 
[email protected] is expanded to a local address, then TWO bcc are generated, 
one for the virtual user @kreme.com and one for the local user @covisp.net.

I assume this is correct behavior, but it isn’t the behavior I want.

-- 
And east is east and west is west and if you take cranberries and stew
them like applesauce they taste much more like prunes than rhubarb does.

Reply via email to