OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
Alias with check_recipient_access: /etc/ppostfix/virtual sensible solution?

From: Raimund Eimann (raimundcs.auckland.ac.nz)
Date: Wed Nov 14 2007 - 13:16:01 CST


Hi,

I'm rejecting mail to users such as root, hostmaster, administrator and so on
on my mail server. Apart from that, mail to unknown users is rejected.

For one user (username: "mike"), I need an alias "michael". As "michael" does
not exist in /etc/passwd mail to michaelmy.doma.in gets rejected.

I added some entries to /etc/postfix/virtual:

michaelmy.doma.in mike
michaelmy.second.doma.in mike
michaelmy.third.doma.in mike

It seems to work, but is this the correct way of doing this? Or is this rather
done in /etc/aliases or /etc/postfix/canonical?

Confused. What's the relevant section in the docs to distiguish the purpose of
these three files?

Cheers,
Raimund