Berkeley CSUA MOTD:Entry 30489
Berkeley CSUA MOTD
 
WIKI | FAQ | Tech FAQ
http://csua.com/feed/
2025/07/08 [General] UID:1000 Activity:popular
7/8     

2004/5/29-31 [Computer/SW/SpamAssassin] UID:30489 Activity:moderate
5/29    Using the required_hits field in spamassassin sorts between spam
        and ham.  Suppose I want it sorted into 3 ways.  Anything over 10
        is considered definately spam and deleted.  Anything between 4 and
        10 is considered maybe spam and saved to a file.  And anything
        less than 4 passes through.  How can I do this?
        \_ With a procmail recipe that looks for 10 or more "*"s in the
           spam hits header line and /dev/nulls those.
            \_ Thanks!
        \_ http://csua.com/?entry=11401
           Specific usage
            \_ why the 7th '\' in that example?
        \_ if you need help chaining the rules
           http://inst.eecs.berkeley.edu/cgi-bin/pub.cgi?file=procmail.help
                \_ Thanks.  I understand why there are 6 '*'s, each
                   preceeded by a '\', but why is there a 7th '\' at the
                   end?
                   \_ Looks like a typo to me
2025/07/08 [General] UID:1000 Activity:popular
7/8     

You may also be interested in these entries...
2012/8/16-10/17 [Computer/SW/SpamAssassin] UID:54458 Activity:nil
8/16    Why does my Y! mail account always full of unfiltered spam
        mails (and they're obviously spams)? Why can't they do
        a better job like Google mail? Why does Y! mail charge
        for exporting email? Google mail doesn't do that.
	...
2010/8/13-9/7 [Computer/SW/SpamAssassin] UID:53924 Activity:nil
8/12    Ugg, no spamd any longer?  I figured I'd have to just give up on my
        soda address (sad, very sad) but Vacation doesn't seem to be installed
        either, so I can't even leave a mesg. to people telling them where
        tom mail me now.  Or can I ?  Any advice out there.  Or can we get
        spamassassin/spamd reinstalled or Vacation or... help....
        \_ Ha, gmail as spamassassin.  presently I am forwarding to gmail
	...
2009/12/8-26 [Politics/Domestic/Crime, Computer/SW/SpamAssassin] UID:53580 Activity:low
12/8    Old news, but new to me:
        Spam King kills himself and his family after escaping prison
        http://blogs.zdnet.com/security/?p=1553&tag=rbxccnbzd1
        Hopefully more spammers will take the hint.
        \_ I wish the same fate can go to all marketing and
           advertising folks, selling people things they don't
	...
2009/8/18-9/1 [Computer/SW/Database, Computer/SW/Languages/Perl] UID:53283 Activity:low
8/18    trying to write an intentionally slow regex.
        what is your worst regex ever?
        this is using MySQL regexp but I'll also accept
        perl format         --brain
        \_ you need to know how regex is implemented internally in order to
           have a worst regex in terms of running time. Something that uses
	...
2009/7/17-24 [Computer/SW/SpamAssassin] UID:53157 Activity:nil
7/17    Thanks to steven, et al. for restoring Soda. In lieu of www.csua providing
        status, could there be a text file with current status and future plans.
        I'm wondering if SpamAssassin is obsolete (and my procmailrc and scripts)
        and won't be restored, and what's filtering spam now.  thanks!
        \_ How do I buy steven a beer or donate gobs of money?
           \_ I got him a Hacker-Pschorr, he seems to like ales.  Prob IPAs
	...
2009/7/2-16 [Computer/SW/Mail, Computer/SW/Security, Computer/SW/WWW/Server] UID:53106 Activity:nil
7/2     Is imaps working?  What are the hostnames of the "incoming and
        outgoing mail servers" for CSUA email, and what kind of options
        should one set?
        I also noticed that we seem
        \_ Setup yer .forward or .procmailrc for now. I'm at a loss, too.
        \_ <DEAD>mail.csua.berkeley.edu<DEAD>. Using SSH (on default port 993) like before.
	...
Cache (113 bytes)
csua.com/?entry=11401
procmailrc so that if spamassassin flags it with 50 points or over, it will go to /dev/null instead of mail/spam?
Cache (1870 bytes)
inst.eecs.berkeley.edu/cgi-bin/pub.cgi?file=procmail.help
help Oct 8, 2003 CONTENTS: What is Procmail Blocking SPAM Procmail for Beginners More Examples What is Procmail ---------------- On Unix, there is a powerful system for filtering email called Procmail. com/internet/robots/procmail/qs/ Procmail is useful for sorting your incoming mail and for blocking SPAM. We discard mail that has no legitimate sender and that is from sites that are listed on standard blacklist WEB sites. procmailrc with these UNIX commands: echo '"|/usr/local/bin/procmail -t -f- #'whoami'"' >! procmail file (with emacs or vi) to contain filtering rules. Here is an example of rules that discard some mail and filters other mail into separate files (aka mail "folders" or "spools"). The example takes advantage of the "X-Spam-Status" line is added to our incoming mail headers by a program called SpamAssassin. forward # "|/usr/local/bin/procmail -t -f- #{your-login} # These rules are applied sequentially from the top. The message is deleted (technically, it is written to the "null" device). Rule 2 will redirect mail with HIGH spam potential to a different mail folder. Rule 3 will redirect mail with LOW or MEDIUM spam potential to your default mail folder. Rule 4 will redirect all mail not caught by the other rules. Rules are processed sequentially from the top, so the first rule here will discard the messages it catches and the second rule will not see them. if you type it wrong, you could delete more messages than you had intended. So it is a good idea to test any new rules you create by saving the messages to some file for a little while to see what it is really catching. Then you can change the filename to "/dev/null" the delete the messages instead. You can match characters in the From, Subject or other mail header fields, or even in the message body. The "*" is a wild card that means "any characters", so use it carefully!