OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
Re: E-mail "alias"

From: Noel Jones (njonesmegan.vbhcs.org)
Date: Tue Aug 05 2008 - 17:17:51 CDT


Dov Oxenberg wrote:
> Hello,
> Please forgive the stupid question but I have done my due diligence and
> was unable to locate a definitive answer in the Postfix FAQ,
> Documentation, or How To.
> Basically what I want to do seems simple enough I am just not sure how
> to go about it. Currently I run a Mailman mailing list using Postfix as
> the MTA and all mail is getting sent to the subscribers.
> Outside of the mailing list, I want to create an e-mail alias such as
> aliasexample.com <mailto:aliasexample.com> where example.com is my
> qualified Internet Domain name (same as the Domain name used for the
> Mailman mailing list), and have that forwarded to either this Hotmail
> account or my BellSouth e-mail box.
> Where would I create this e-mail address and how do I tell Postfix to
> send the mail to my legitimate mailbox?

A virtual_alias_maps entry should do what you want. Note that
example.com does *not* need to be defined in
virtual_alias_domains (but OK if it is for other purposes).

# virtual_alias
aliasexample.com targethotmail.com

> Secondly, would it be possible to compose a message from my legitimate
> e-mail account and use my Postfix as a sort of relay, where Postfix
> would accept my message, then make it appear as though it were coming
> from aliasexample.com <mailto:aliasexample.com> and send it to its
> intended recipient? What I mean is, at the final intended destination
> of the message, I would like the e-mail to appear as though it was from
> aliasexample.com <mailto:aliasexample.com> as opposed to my real
> e-mail address.
> Thanks!
> Dov

It's generally better to configure your mail client to set the
sender address to what you need.
You can use smtp_generic_maps to rewrite some address to some
other specific address.
http://www.postfix.org/ADDRESS_REWRITING_README.html#generic

If what you are wanting to do is send mail through your
hotmail account and have it appear as if it comes from
example.com, that depends on what hotmail allows. Gmail, for
example, allows you to set an alternate sender address once
you prove you control that alternate address - but this has
nothing to do with postfix or your local server.

--
Noel Jones