OSEC

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

From: Noel Jones (njonesmegan.vbhcs.org)
Date: Tue Dec 02 2008 - 16:11:31 CST


Fat Bear Mail Services wrote:
> 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

One would use an awk or perl script to generate a
virtual_alias_map from the input file.

--
Noel Jones