Dave Ihnat wrote:
On Mon, Aug 11, 2003 at 04:50:45PM +0800, Edward Dekkers wrote:
I don't want to re-invent the wheel, so does anyone know (or has written) some scripts to automatically black-or-white_list a sender?
I've got a script that, with a mutt function, automates spam processing as much as I'm comfortable with.
Spamassassin is configured to store its spam-identified files in the user's home directory in a subdirectory named ".spam"; it, of course, creates two files there, "almost-certainly-spam" and "probably-spam".
I've tied function key 12 in Mutt to save any spam that trickles into my mail to a file in the same directory--I call it "foo", but whatever.
I guess that's a pretty good way to do it, but most of my users are using MS mail clients to pop the mail off the Linux server. I'd need a way to filter based on a message I SEND a daemon on my server OR a user which has a crontab which runs a script that analyses the headers of the message I send it. For example, I create a user 'spamfixer', which has no login or anything on my server, but has a crontab running every 5 minutes or so.
In this 5 minutes it runs a script for any mail sent to it.
It analyses the From: line IN THE HEADER to find which user's user_prefs it has to modify.
It analyses the From: line IN THE BODY to find the address which it needs to add to the user_prefs.
It analyses the Subject: line, where I'd use "block address" or "allow address" or "block domain" or "allow domain", and for each put the relevant whitelist_from or blacklist_from in the user_prefs.
All I'd have to do from any mail client would be to forward an incoming message to '[EMAIL PROTECTED]' and set the subject to the above commands.
God it sounds simple. I wish I was a perl or bash guru :(
Thanks anyway.
Regards, Ed.
-- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://www.redhat.com/mailman/listinfo/redhat-list