You are not logged in. Login Now
 0-8          
 
Author Message
aaron
Feature Request - Blocking Non-Grex Email Mark Unseen   Feb 26 21:19 UTC 2002

Requested feature - the ability to block email from outside of Grex.
With infrequent logins, I find that my mailbox overflows with spam when
I log in. I don't want the spam, I don't read the spam, and when I get
here I delete the spam. If I could simply block all non-Grex email, I
would spare Grex the burden of warehousing all of that garbage.
8 responses total.
jep
response 1 of 8: Mark Unseen   Feb 26 22:06 UTC 2002

Isn't procmail installed here?  It's a mail filter program and can 
probably discard all your mail from off-site.  I haven't used it much 
myself, Aaron, and haven't looked at it for years, but maybe it would 
help you.
aaron
response 2 of 8: Mark Unseen   Feb 26 23:22 UTC 2002

It's more a question of helping Grex. I imagine that I am not the only
Grexer who doesn't use mail here, but routinely finds his mailbox
spammed to the point of overflowing.
jep
response 3 of 8: Mark Unseen   Feb 26 23:49 UTC 2002

I was thinking only of your request.  I agree it would help Grex more 
than you personally.
styles
response 4 of 8: Mark Unseen   Feb 27 00:25 UTC 2002

not sure how one would make this a very easy task (like so a user could just
do 'touch ~/.nooutsidemail' or something), but the procmail skeleton shouldn't
be too difficult to automate.

edit your .forward to have
"| /usr/local/bin/procmail"
(or whereever procmail resides on this system).
then create a .procmailrc with something like the following in it:

:0:
* ^From.*@grex.*
/path/to/your/mailfile/somewhere/in/var

:0: 
* ^From.*@localhost.*
/path/to/your/mailfile/somewhere/in/var

:0:
* ^From.*@.*
/dev/null


you might even add an entry for ^From.*@cyberspace.*, if you permit addresses
like styles@cyberspace.org or (locally) styles@cyberspace.

change /path/to/your/mailfile... to /var/mail/a/a/aaron (sorry, didn't check
that while in that silly little editor pico), and you should be set.

this is totally untested, of course, but i think it's more or less right.
srw
response 5 of 8: Mark Unseen   Mar 14 03:57 UTC 2002

procmail is broken on Grex
styles
response 6 of 8: Mark Unseen   Mar 14 04:10 UTC 2002

heh, make that .forward have "|exec /usr/local/bin/procmail" instead.

MA BAD!

(dunno if procmail is broken)
scg
response 7 of 8: Mark Unseen   Mar 18 07:53 UTC 2002

If I remember correctly, procmail on Grex is broken in that it doesn't know
where Grex puts users' mailboxes.  If that's the case, presumably a user named
foo could have the last entry of their .procmailrc say this:

 :0:
 /var/spool/mail/f/o/foo

and procmail should stick mail in the right place.

I haven't actually tested this, so anybody wanting to use it should test it
first.  In theory, it should work.  In theory, in theory and in practice are
the same. ;)
gelinas
response 8 of 8: Mark Unseen   Mar 20 05:47 UTC 2002

I've gotten the latest version of procmail but haven't built it yet.
According to the docs, it understands /var/spool/mail/f/o/foo

 0-8          
Response Not Possible: You are Not Logged In
 

- Backtalk version 1.3.30 - Copyright 1996-2006, Jan Wolter and Steve Weiss