|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
Re: blocking some users
From: Alex Satrapa (alex.satrapa
apf.edu.au)
Date: Wed Mar 29 2006 - 21:48:46 CST
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On 30 Mar 2006, at 13:47, Francois Saidi wrote:
> some system users (mail, info,...) receives mail from outside...
> how can i block all mail for non real users?
I wonder if this is an appropriate situation to use
check_recipient_access?
You could put REJECT values in for the reserved accounts, with DUNNO
for the whole domain, leaving the remainder of the checks to other
rules:
/etc/postfix/main.cf:
> smtpd_recipient_restrictions =
> ...
> check_client_access hash:/etc/postfix/bad_recipients
> ...
/etc/postfix/bad_recipients:
> mail REJECT
> info REJECT
> disk REJECT
> cron REJECT
>
mydomain DUNNO
then the usual invocation of "postmap /etc/postfix/bad_recipients" to
create the bad_recipients.db file which is what the smtpd will
actually refer to.
Though I haven't tried this myself, so I don't know that this will work.
Alex
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]