> On Mar 19, 2016, at 5:02 PM, Wietse Venema <wie...@porcupine.org> 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 backup+u...@domain.tld@domain1.tld which does get delivered to bac...@domain1.tld and put into a folder .u...@domain.tld, 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 krem...@kreme.com 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.