|
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: Adam Bowen (abowen
driveway.com)Date: Tue Mar 28 2000 - 14:38:15 CST
- Next message: Michael Schwager: "Re: Error "mail loops back to itself""
- Previous message: Simon J Mudd: "Re: Error "mail loops back to itself""
- Next in thread: Wietse Venema: "Re: address rewriting?"
- Reply: Wietse Venema: "Re: address rewriting?"
- Reply: Jim Seymour: "RE: address rewriting?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
sorry I didn't get your initial mail - I just signed up for this list
you've shown how it's possible to _manually_ add address rewrites, & I agree
alias tables are the way to go for that. but I'm looking for a way to do it
"on the fly", using regular expressions.
I saw Wietse mention in a separate thread that it's possible to use regexps
in canonical names maps, but I haven't found docs for the complete legal
syntax.
-Adam
> Anyone have tips on this?
I believe you already asked, and I already answered this question
once:
> From jseymour Fri Mar 24 17:41:18 2000
> To: postfix-users
postfix.org
> Subject: Re: address rewriting?
>
> Adam Bowen <abowen
driveway.com> wrote:
> > Message-ID:
<FDC97E0027EBD311919C00508B9B11D70281DD
bdcdriveway-sfo.driveway.com>
> >
> >
> > 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
- Next message: Michael Schwager: "Re: Error "mail loops back to itself""
- Previous message: Simon J Mudd: "Re: Error "mail loops back to itself""
- Next in thread: Wietse Venema: "Re: address rewriting?"
- Reply: Wietse Venema: "Re: address rewriting?"
- Reply: Jim Seymour: "RE: address rewriting?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]