View previous topic :: View next topic |
Author |
Message |
NewBlackDak Guru
Joined: 02 Nov 2003 Posts: 512 Location: Utah County, UT
|
Posted: Thu Dec 16, 2004 10:53 pm Post subject: Stopping mail with no subjects with header checks |
|
|
Recently I've been getting alot of spam with no subject header, and no message body at all. Is there any way to do a header check that will check for Subject: , and if it's missing reject the message? _________________ Gentoo systems.
X2 4200+@2.6 - Athy
X2 3600+ - Myth
UltraSparc5 440 - sparcy |
|
Back to top |
|
|
speed_bump Tux's lil' helper
Joined: 10 Jan 2004 Posts: 92 Location: Wisconsin, USA
|
Posted: Sat Dec 18, 2004 6:12 pm Post subject: |
|
|
You may want to take a look at procmail. It can do lots of very interesting things. The only real issue is that it relies on regular expressions ala egrep (1) to do the heavy lifting. If you aren't familiar with regular expressions it could take a bit of reading to make it work.
The procmail, procmailrc, and procmailex (procmail examples) man pages provide some very good starting points. |
|
Back to top |
|
|
|