Date: Sun, 20 Aug 2006 02:47:40 +0300 From: Giorgos Keramidas <keramida@ceid.upatras.gr> To: Bill Moran <wmoran@collaborativefusion.com> Cc: freebsd-questions@freebsd.org Subject: Re: How to prevent users from receiving email Message-ID: <20060819234740.GA3508@gothmog.pc> In-Reply-To: <20060819192139.7ea5321d.wmoran@collaborativefusion.com> References: <20060819192139.7ea5321d.wmoran@collaborativefusion.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On 2006-08-19 19:21, Bill Moran <wmoran@collaborativefusion.com> wrote:
>
> Apparently my memory is useless and I've lost the ability to use
> google as well.
>
> I just added a user account to a mail server, but I don't want that
> user to receive mail on that server. It's running Postfix.
>
> I seem to remember a canonical method for preventing certain users
> from receiving email. But my memory has failed, and I can't seem
> to find anything on google.
>
> Is it an /etc/aliases trick?
You can use the Postfix `access' map for this. You can enable an
`access' map in Postfix by setting in your `main.cf' file:
smtpd_client_restrictions = \
check_client_access hash:/usr/local/etc/postfix/access
Then, in `/usr/local/etc/postfix/access' put:
user@domain REJECT
and run `postmap' on the `access' file:
# postmap /usr/local/etc/postfix/access
Reload Postfix and off you go :-)
There are other reject options too, which offer more fine-grained
control of the SMTP error codes and the text of the error messages
Postfix will return. See, for example:
http://www.postfix.org/access.5.html
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060819234740.GA3508>
