OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
alias/transport/etc address question

From: Curtis H. Wilbar Jr. (postfixhawkmountain.net)
Date: Wed Dec 05 2007 - 20:40:53 CST


I sure hope this isn't a 'stupid' question.

I've been using postfix where I work for 4 years (where I was introduced
to postfix).

I finally (been a long time coming) completely upgraded my home server,
and when
I did, I went with postfix (prior server was sendmail under Solaris x86).

On my old server under sendmail I had an unix account by the first name of
the user, and an alias first initial last name... for example:

jane

with an alias of

jdoe

jdoe was never used.... but under the weight of incredible spam, jane was
abandoned in favor of jdoe.

Under sendmail, I set an alias:

jdoe: \jane

and a mailmaps entry of:

janehawkmountain.net error:nouser 550 Mailbox Closed

This worked great.

When I converted to postfix, I did something similar... I did the same alias
and did the mailmaps piece in a transport:

janehawkmountain.net error:Mailbox closed

However... this didn't work... as it appears the alias gets expanded
(envelope wise)
from jdoe to jane, and then the transport map take it to an error.

I've looked and looked and read the address rewriting section of
postfix.org's doc
pages.... but while I've tried several things... I haven't figured out
how to pull this
off in postfix.

This is the first time I've had to do something in postfix that I
haven't figured out
yet.... currently I'm stumped...

Any advice is greatly welcome.

Thanks,

-- Curt