OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
Subject: Re: address rewriting?
From: Jim Seymour (jseymourLinxNet.com)
Date: Fri Mar 24 2000 - 16:41:18 CST


Adam Bowen <abowendriveway.com> wrote:
>
>
> I was wondering if it's possible to do common recipient address-rewriting
> automatically with Postfix. For example, Al.Bundy and albundy would be
> rewritten as abundy

Certainly.

>
> I couldn't find any howto info on this in the documentation sources--the
> only info available was on canonical name rewrites, which applies strictly
> to the format of the entire address.

Not really. But I can see how one might come to that conclusion.

>
> Anyone have tips on this?

/etc/postfix/main.cf:
    canonical_maps = type:/etc/postfix/canonical

/etc/postfix/canonical:
    Al.Bundy abundy
    albundy abundy

Do "postmap canonical" and "postfix reload" and you're all set.

Observe the caveats in canonical(5) regarding "$mydestination" and
"$myorigin."

FWIW: I generally use aliases for this kind of thing.

Regards,
Jim

-- 
Jim Seymour                  | PGP Public Key available at:
jseymourLinxNet.com         | http://www.cam.ac.uk.pgp.net/pgpnet/wwwkeys.html
http://home.msen.com/~jimsun | http://www.trustcenter.de/cgi-bin/SearchCert.cgi