|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
Re: Address Rewriting Problem
From: Victor Duchovni (Victor.Duchovni
MorganStanley.com)
Date: Tue Feb 20 2007 - 15:59:33 CST
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Tue, Feb 20, 2007 at 04:50:24PM -0500, Tim Calvert wrote:
> We allow users to have what we call a vanity address (in the form of
> firstname.lastname) if they want to. In order to rewrite the headers of
> incoming email from firstname.lastname
marshall.edu to
> username
marshall.edu, the guy who designed, installed and configured
> the Postfix system used a virtual alias database. Unfortunately, he
> neglected to provide a means for the From headers to be rewritten on
> outgoing email from username
marshall.edu to
> firstname.lastname
marshall.edu. That's the problem I'm trying to fix.
main.cf:
canonical_maps = hash:/etc/postfix/canonical
# Postfix >= 2.2: adjust to meet your needs...
local_header_rewrite_clients =
permit_mynetworks,
permit_sasl_authenticated
canonical:
luser
marshall.edu Leo.User
marshall.edu
> What I did:
> After some reading, I came to the conclusion that this task is generally
> performed by a canonical database.
Yes, or in some cases (probably not yours) a "generic" database.
> I first set it up with LHS=username
> and RHS=firstname.lastname, as the example showed in the Address
> Rewriting Readme, and added canonical_maps = hash:/etc/postfix/canonical
> to main.cf.
Did you append
domain to the keys? What version of Postfix?
> That didn't work at all. After some more reading, I stumbled
> across something (and I have no idea now where it was) that indicated
> the RHS needed to be an address. So I changed it to
> firstname.lastname
marshall.edu. That sort of worked.
Define "sort of"?
> From the messages I've sent to my own Yahoo address to test this, the
> Return-path is getting rewritten, which I think is the Envelope from,
> but the message From header is not being rewritten.
Perhaps "local_header_rewrite_clients" needs tuning...
--
Viktor.
Disclaimer: off-list followups get on-list replies or get ignored.
Please do not ignore the "Reply-To" header.
To unsubscribe from the postfix-users list, visit
http://www.postfix.org/lists.html or click the link below:
<mailto:majordomo
postfix.org?body=unsubscribe%20postfix-users>
If my response solves your problem, the best way to thank me is to not
send an "it worked, thanks" follow-up. If you must respond, please put
"It worked, thanks" in the "Subject" so I can delete these quickly.
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]