Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email email@example.com
From: Wietse Venema (wietseporcupine.org)
Date: Sat Apr 24 2010 - 07:57:28 CDT
> Hello all,
> I'm setting up Postfix 2.6, speculatively, reading through the
> documentation and building my configuration. It appears that the
> scenario I want is somewhere between virtual and local deliveries.
> What I want to do: .forward support, /etc/aliases support, detail
> address (user-foo) support.
> What I do not want: mail being delivered or accepted to bin,
> daemon, and other nonsense.
> The machine is only serving me and my services, all implemented
> as aliases. My alias is not equal to my username, which itself
> doesn't get mail and doesn't want it, thank you very much.
> Therefore, everything is an alias, there will never be, and I
> don't want, deliveries for non-alias or non-.forward-style deliveries
> referenced through an alias.
> Can somebody explain if there is some right way to do this? Am
> I even thinking along the right lines? Perhaps I should implement
> this another way. Right now I would be using local(8) and access
I recommend that you make a distinction between "inside" and
- For the "inside" view, alias all system accounts (bin, daemon,
etc) to the "primary" user. You don't want to throw away mail that
is related to activity by local processes.
- For the "outside" view, set local_recipient_maps to a table that
lists only accounts that are to supposed to receive mail from
outside the machine. There is no legitimate reason to send mail to
(bin, daemon, etc) from outside.
local_recipient_maps = hash:/etc/postfix/local
# bare username, not userdomain
Where "whatever" can be any non-empty string.