SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: Xubuntu, Mythbuntu, Lubuntu, Picuntu, Mint 18.1, Debian Jessie
Posts: 1,207
Rep:
filtering spam & sylpheed
I've had a spam problem on my Slackware box for a while now that I didn't want to take the time to address. Junk is starting to accumulate in my trash folder and I'd like to filter the 4000+ messages for spam. I use Sylpheed (not Claws) for email and see that it is able to filter emails. I cannot seem to find a filter rule that would include all the junk messages since certain words are mispelled and the sender varies. Any suggestions of how to write a filter rule for ever changing spam?
The way you guys seem to do it is let the client take care of it.... how about using a server like aproach?
What I do is this:
- Fetchmail retrieves mail form my ISPs and hands it to sendmail for local delivery
- Sendmail makes sure the mail gets scanned by SpamAssassin. Used to do this via procmail, but use milter nowadays (had to because of upgrading IMAP to the cyrus version)
- Clients connect via inetd to WU (or UW) IMAPD to retrieve mail from the local system.
This way I have my own IMAP sever to which I can connect from virtually any host (including localhost) and the mail is scanned on the server. Other advantages:
- all my mail is on one system... not scattered on IMAP account at the different ISPs or (horror) pop clients on different systems I use.
- you can use server side tools like procmail (or sieve) to have the email stored in different folders on the IMAP server, not having to do that with every client you use on every host you use.
Because I use Windows systems to connect as wel I even scan for virusses with ClamAV
Distribution: Xubuntu, Mythbuntu, Lubuntu, Picuntu, Mint 18.1, Debian Jessie
Posts: 1,207
Original Poster
Rep:
I found bogofilter which integrates nicely with sylpheed. Just make a spam folder in sylpheed, enable bogofilter in configuration>junk mail (specify that all junk mail goes to your spam folder), and then right click on emails received and click set as junk or set not as junk to make a rules file (the rules file is in ~/.bogofilter/FILE.db). I went into my trash folder and did this for the last 2 years worth of emails and it works well now on new emails.
I have bogofilter working with Sylpheed 2.2.9 in Fedora Core 6 and Slackware 11.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.