[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-users] Blocking an email address to a specific email account.
- Subject: Re: [cobalt-users] Blocking an email address to a specific email account.
- From: pitr@xxxxxxxxx
- Date: Fri Mar 19 05:55:01 2004
- Organization:
- List-id: Mailing list for users to share thoughts on Sun Cobalt products. <cobalt-users.list.cobalt.com>
On Fri, 2004-03-19 at 05:41, Ian Mulley wrote:
> Can anyone tell me if it is possible to stop 1 email address from being
> delivered to 1 email account.
>
I think you want a procmail recipe like such (make a .procmailrc file in
the users home dir)
:0
* ^From:address@xxxxxxx
/dev/null
That is a very simple basic one to get you started. Procmail supports
standard regexps, and you can do things like delete all email from a
given domain:
:0
* ^From:*@isp.com
/dev/null
Or from a certain username at any domain:
:0
* ^From:offers@*
/dev/null
Or maybe put all email with a particular subject in a folder
:0:
* ^Subject:.*cobalt
cobalt
Or maybe you want to do something will all email that is NOT from a
particular address:
:0
* ! From:her@xxxxxxxxxxxxx
Inbox
Procmail is a world unto itself... Some google searches would turn up
hours of reading.
Also by default you usually have to chmod 744 the users home dir to make
procmail work.
--
<pitr@xxxxxxxxx>