On 14.09.2017 18:59, Msd wrote:

> I don't realy want to create a "normal user" whitelist or a "system
> user" blacklist because the list will probably change if I install a
> new software or I create a new user.

Well, that's the nature of things, given that you wrote you don't want
to accept mail for all accounts. Either you maintain a list of addresses
for which you are willing to accept mail (recommended), or a list of
addresses for which you want reject mail. You need one or the other.

One method would be to generate a whitelist by parsing your /etc/passwd,
including only entries with UIDs >= 1000. A simple script can do that.

> Is it possible to prevent local delivery for unix system accounts (id
> below 1000) ?

It is better to not accept mail for these accounts to begin with than
trying to prevent local delivery after having accepted mail.

-Ralph

Reply via email to