OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
Rewrite with Pattern

From: Fat Bear Mail Services (postfixfatbear.com)
Date: Tue Dec 02 2008 - 16:02:34 CST


How would one setup Postfix that uses /etc/passwd for authentication so
that e-mails of the pattern:

    username-companyID-anyStringdomain1.com

is delivered to:

    usernamecompanyDomain.com

where there is a 1:1 mapping between companyID and companyDomain? For
example:

    pat-acme-beta123mycompany.com >>> patacmedesign.com

Note above that "acme" maps to "acmedesign.com".

Many thanks!
Steve Amerige
Fat Bear