On Tue, 22 Nov 2011, Dave Lugo wrote:

eg:

[email protected]_asd_asd.example.com  --->  [email protected]

But trying to go with this:

\N^(.*)@*_*.example.com(.*)$\N    [email protected]$4        SF

yields:

[root@ews-pgh1-exmp2 exim]# /usr/sbin/exim -C exim.conf.tst -brw [email protected]_asd_asd.example.com 2011-11-22 09:34:00 Rewrite of [email protected]_asd_asd.example.com yielded unparseable address: malformed address: [email protected] may not follow [email protected] in address [email protected][email protected]
Syntax error in [email protected]_asd_asd.example.com
Malformed address: _asd_asd.example.com may not follow [email protected]

adding Rq to the rewrite flags didn't help.

Suggestions gratefully appreciated...


closer...

\N^(.*)@.*_.*\.example.com(.*)$\N    [email protected]$4        SF

works, but not very well - depending on whether or not the sender correctly uses < > characters, it breaks.

Ideas?  Should i break this out into multiple rewrite lines?

--
--------------------------------------------------------
 Dave Lugo     [email protected]      No spam, thanks.
 Are you the police?  . . .  No ma'am, we're sysadmins.
--------------------------------------------------------

--
## List details at https://lists.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/

Reply via email to