From: Sunil S. <sh...@bo...> - 2006-02-27 08:34:20
|
Hello Indika, Quoting from Indika Mendis's mail on Mon, Feb 27, 2006: > My name is Indika and using fetchmail in my linux mail server to > download mails. It is working properly... but I have to do a small > thing.... Our staff members are receiving some unwanted emails with > several subjects. Is there any configuration that we can do with > fetchmail or any other thing in linux servers.... I want to stop > these mail by filtering subject wise... pl help me to solve this prob. This is a fetchmail FAQ entry: <http://fetchmail.berlios.de/fetchmail-FAQ.html#G4> For filtering by subject, use procmail or maildrop. For that, you will have to find out what programs are installed on your system. Also, you will have to analyse the output of "fetchmail -v". Here is one sample setup: Question Possible answer -------------------------------------------------------------------- What SMTP servers are installed on my system? qmail, sendmail What mail filtering programs are installed? maildrop, procmail Where is fetchmail forwarding my mails to? SMTP server What SMTP server is running on my system? sendmail Is my SMTP server also delivering mails directly? no Who is delivering my mails? procmail What spam filtering programs are installed? spamassassin In this setup, procmail has already been enabled. So, it is the question of just writing the procmailrc. Details of setting up the procmailrc (per-user as well as globally) can be found in procmail documentation. If you are interesting in spam filtering, you can enable that too in the rc file of the mail-filtering program. If you have more queries, please subscribe to the user mailling list. You can find more details of the lists at <http://fetchmail.berlios.de/>. After subscribing, send the output of "fetchmail -V" and "fetchmail -v" to the user mailing list. -- Sunil Shetye. |