OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
Rewriting (stripping) address extensions

From: David Landgren (davidlandgren.net)
Date: Fri Jul 02 2004 - 10:32:42 CDT


List,

I can't figure this one out. I'm using address extension on my Postfix
box to allow messages to be sent to abc+123newsrh.com.

recipient_delimiter = +
recipient_relay_maps = hash:/etc/postfix/recip/newsrh

abcnewsrh.com OK

This works correctly: it will accept and forward abc+12345newsrh.com
onto my internal server and rejects anything else.

The problem with the internal server is that it is Lotus Notes. I can't
for the life of me figure out how to teach it to accept abc+foo as being
valid. It doesn't seem to know about address extensions. So I would like
to rewrite with Postfix to forward it as abcnewsrh.com to the internal
server.

I thought a virtual map pcre table would do the rewriting:

/abc+\d+newsrh.com/ abcnewsrh.com

But as usual, my ignorance is showing through, because that doesn't
change anything.

Can somebody hit me with a clue-by-four?

Thanks,
David