[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [cobalt-users] RaQ4 - Blocking e-mail
- Subject: RE: [cobalt-users] RaQ4 - Blocking e-mail
- From: "Tim Skipper" <mailinglists@xxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Mon Jul 1 03:43:01 2002
- List-id: Mailing list for users to share thoughts on Sun Cobalt products. <cobalt-users.list.cobalt.com>
-----Original Message-----
From: cobalt-users-admin@xxxxxxxxxxxxxxx
[mailto:cobalt-users-admin@xxxxxxxxxxxxxxx]On Behalf Of Steve Werby
Sent: 23 June 2002 23:36
To: cobalt-users@xxxxxxxxxxxxxxx
Subject: Re: [cobalt-users] RaQ4 - Blocking e-mail
"Tim Skipper" <mailinglists@xxxxxxxxxxxxxxxxxxxxxxxx> wrote:
> How can I block, preferably on a site-by-site basis if possible,
> e-mail being accepted from a given domain?
Tim, use procmail, which is already installed on your RaQ4. Do the
following.
0. Backup ~username directory.
1. cd ~username
2. Create .procmailrc containing the following:
SHELL=/bin/sh
VERBOSE=off
MAILDIR=$HOME/mail
PMDIR=$HOME/.procmail
LOGFILE=$PMDIR/log
INCLUDERC=$PMDIR/rc.spam
3. chmod 640 .procmailrc
4. mkdir .procmail
5. cd .procmail
6. Create rc.spam
:0:
* ^From: .*(domain1.tld|domain2.tld|domain3.tld|\
domain4.tld|domain5.tld|domain6.tld)
/dev/null
7. chmod 755 ~username; chmod g+s ~username
The procmail recipe above means "Any email with a From header matching
anything ending in one of those 6 domains should be delivered to
/dev/null,
which in essence deletes the email."
<snip more useful stuff>
-----End Original Message-----
I've just got around to trying this out properly, albeit on my RaQ
XTR. It doesn't appear to work, although I'm sure this is down to me
doing something wrong.
I've done exactly as above, only the rc.spam script just reads:
:0:
/dev/null
As I want to trash all mail received at a particular user. Any clues
what might be wrong or how I can track whats happened?
Thanks!
Tim Skipper