Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Block all incoming email for a specific local user

365 views
Skip to first unread message

josh.p...@gmail.com

unread,
Jun 1, 2007, 12:25:49 PM6/1/07
to
Hi all,

I have my user account on my system that I use for more than just
email. I would like to keep my account, but block all incoming mail to
this account. I would really like it to bounce, but blocking would be
ok. In other words, I want it to look like the user has been deleted.

I know I could just point /var/spool/mail/username to /dev/null, but
for spamming purposes, I would like it to bounce back like it doesnt
exist.

Is there a way to do this?

ivak...@gmail.com

unread,
Jun 2, 2007, 12:47:05 AM6/2/07
to
If it is a local system user-just remove his line (line w/ his
username) from everywhere like that:
virtual_alias_maps
alias_maps
Remap files with postmap and postfix will reject all mail to your
user.

Ralf Hildebrandt

unread,
Jun 2, 2007, 7:11:59 AM6/2/07
to
On 2007-06-01, josh.p...@gmail.com <josh.p...@gmail.com> wrote:
> Hi all,
>
> I have my user account on my system that I use for more than just
> email. I would like to keep my account, but block all incoming mail to
> this account. I would really like it to bounce, but blocking would be
> ok. In other words, I want it to look like the user has been deleted.

Put

check_recipient_access hash:/etc/postfix/disabled

at the end of your existing smtpd_recipient_restrictions (check the
current setting using "postconf smtpd_recipient_restrictions" !)

In /etc/postfix/disabled you write:

josh.p...@gmail.com 554 User unknown

Then run "postmap /etc/postfix/disabled" and "postfix reload"

--
Ralf Hildebrandt (i.A. des IT-Zentrums) Ralf.Hil...@charite.de
Charite - Universitätsmedizin Berlin Tel. +49 (0)30-450 570-155
Gemeinsame Einrichtung von FU- und HU-Berlin Fax. +49 (0)30-450 570-962
IT-Zentrum Standort CBF send no mail to pl...@charite.de

0 new messages