On Tue, 22 Nov 2011, Dave Lugo wrote:
Hi,
I seem to have some apps that are sending with a underscore in
the domain part. Searching the exim-user archives suggests that
I can work around this by rewriting the MAIL FROM address,
replacing the domain part _ chars with . chars.
Can anyone offer a rewrite rule that will do this? I'm going
to try to figure it out myself now, but for someone more versed
in rewriting rules, this may be trivial.
Thanks,
Dave
I decided to try to be simple - any MAIL FROM with a domain part
ending in example.com, that is preceeded by an element containing
an underscore, gets replaced with example.com.
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...
--
--------------------------------------------------------
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/