> Need help, with modifing header...
>
> here is what I am looking for...
>
> From MYNAME<user...@abc.com> --->POSTFIX ----> MYNAME main_a...@abc.com
>
> so I want to keep Display name AS-IS, but change email addresses on all outgoing mail to main_a...@abc.com
>
http://www.postfix.org/ADDRESS_REWRITING_README.html
The appropriate mechanisms are canonical(5) or generic(5). The Reply-To:
header is rewritten by both mechanisms. Postfix will not copy the From
address to the Reply-To: address, MTAs must not do that.
--
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:majo...@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.
> I had completely read the
> http://www.postfix.org/ADDRESS_REWRITING_README.html
> but wasn't very sure.
>
> I am working for a company that requires auth to exchange.
> the UNIX clients gets mail from postfix & I setup a relay Win2k3 SMTP
> server that auth outgoing mail to exchange. and they require "From"
> address must match the account used to auth with exchange.
this is ,pt feasible. instaed eznforce login=sender. almost all MUAs
send mail with sender=from. for those who do it differently, if they
abuse, get them by the logs. don't try to enforce things that can't be
enforced. specefiy a local policy instead. otherwise, free the people now.
>
> clients NAME<user...@DOMAIN.com <mailto:user...@DOMAIN.com>> ----
> >(in) POSTFIX (out) ---> NAME <maina...@DOMAIN.com
> <mailto:maina...@DOMAIN.com>> ----->(in) WIN SMTP (out) ---->EXCHANGE
>
> in this case, since mail is coming from main account address (FROM
> address) & main account is used to auth with exchange it works.
>
> but if someone replies back, they will send email
> to <maina...@DOMAIN.com <mailto:maina...@DOMAIN.com>> which is
> not right, it should go to NAME<user...@DOMAIN.com
> <mailto:user...@DOMAIN.com>> and to make this possible, I have to
> add OR (modify, if reply-to already exist) to...
> Reply-to: NAME<user...@DOMAIN.com <mailto:user...@DOMAIN.com>>
you're mixing it all. anybody should be able to talk to anybody, and
anybody should decide what from/sender address to use. just because some
criminal guys abuse this doesn't mean we should stop living the way we
used to (otherwise, we've lost one battle).... don't fight when you
don't need.
we're gonna win, but we must stand....
> Hi Mouss,
> Thanks for reply, the problem lies that exchange part
> of it is not handle by me & I have no control over it. I work for
> fortune 10 company and Unix clients are in minority. As stated before,
> the reason exchange policy was placed to stop abuse/spam & enable
> every mail outgoing to be auth. In order to do this, they required all
> mails outgoing from username: XYZ to be auth & the from address must
> match X...@company.com
> <http://us.f520.mail.yahoo.com/ym/Compose?To=X...@company.com>
for users who directly use postfix, enforce authentication and login
match. for exchange users, configure exchange.
as for the from/reply-to, just ignore it. you may need to tell your
people not to trust these headers. if you really can't, then you need to
write a content filter (or modify one that exists).
> Since these accounts are UNIX which has it's own KDC (key distribution
> center), I had to setup WIN SMTP relay & use single win account to
> auth, which works, but requires
> all mail sendout also contain FROM address which matches this account.
there are 2 different things:
- the envelope sender, used in smtp (MAIL FROM command)
- the From header (found in the data).
while mail clients use the latter to deduce the former, this is not
mandatory nor always desirable (and in the case of this ML, compare the
From header, which specifies your/my address, and the sender which is
the ML-owner).
> since have no control over exchange & exchange does not allow direct
> access from Unix clients. The only working solution is to have SMTP
> mail relay setup, which I already did & works if from address matches
> in the email with auth account. I know that mouss agreed that outgoing
> email From header could be changed example->
I hope you know the difference between the envelope and the headers. if
not, you should read about that.
>
> ABC<user...@company.com <mailto:user...@company.com>> ----->
> POSTFIX ---> ABC<main_a...@company.com
> <mailto:main_a...@company.com>>
>
> can someone plese post any sample commands for this setup.
http://www.postfix.org/ADDRESS_REWRITING_README.html
http://www.postfix.org/postconf.5.html#canonical_maps
http://www.postfix.org/postconf.5.html#local_header_rewrite_clients
http://www.postfix.org/canonical.5.html
...