On Wed, Mar 11, 2009 at 07:38:25AM -0600, LuKreme wrote: > I have a file /etc/postfix/virtual.pcre that contains lines like this: > > /^(.*)_(.*)@example.com$/ ${1}+$...@example.com > /^(.*)_(.*)@example.org$/ ${1}+$...@example.org > /^(.*)_(.*)@example.net$/ ${1}+$...@example.net > > etc etc. This is to allow the _ to act as an additional address extension > character to get around the legion of retarded website admins that reject > '+' addresses as invalid. > > I would like to have a single line > > /^(.*)_(.*)@(.*)$/ ${1}+$...@${3} >
Sorry, not possible. Also the above defeats recipient validation for email addresses with "_" in them, it is not recommended. -- 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.