Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Stopping mail with no subjects with header checks
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
NewBlackDak
Guru
Guru


Joined: 02 Nov 2003
Posts: 512
Location: Utah County, UT

PostPosted: Thu Dec 16, 2004 10:53 pm    Post subject: Stopping mail with no subjects with header checks Reply with quote

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
View user's profile Send private message
speed_bump
Tux's lil' helper
Tux's lil' helper


Joined: 10 Jan 2004
Posts: 92
Location: Wisconsin, USA

PostPosted: Sat Dec 18, 2004 6:12 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum