LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 04-19-2004, 06:04 AM   #1
pcpinkerton
LQ Newbie
 
Registered: Feb 2004
Location: Brazil
Posts: 15

Rep: Reputation: 0
blocking email


Need to filter email that arrives with blank subject, blank sender and a ? in the date field. This mail is very annoying.

I tried putting blanks in the filtering but with no luck.
 
Old 04-20-2004, 02:49 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3590Reputation: 3590Reputation: 3590Reputation: 3590Reputation: 3590Reputation: 3590Reputation: 3590Reputation: 3590Reputation: 3590Reputation: 3590Reputation: 3590
//This isn't a security question.
More details please. Any correllation possible from looking at the full mailheaders? What you're filtering with?
 
Old 04-21-2004, 03:52 AM   #3
chort
Senior Member
 
Registered: Jul 2003
Location: Silicon Valley, USA
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660

Rep: Reputation: 69
If you're looking for a blank header, you would match it with this:
^Subject:$
or if \s is a metacharacter for "whitespace" (space, tab, etc), you could use something like
^Subject:\s*$

Note that some legitimate e-mails are sent with no subject (sender was in a hurry, or forgot). The same method applies to the 822 From: header as well (note that all of these assume RFC822 headers).

For the date, something like this should work:
^Date:\s*\?\s*$

Oh, I should point out that all of this assume that your e-mail filter can use REGEX.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Blocking mails from specific email addresses/domains in postfix jomy Linux - Networking 1 07-15-2008 09:32 PM
per user email blocking kubicon Linux - Networking 1 08-15-2005 06:42 PM
blocking html email NellieR Linux - Newbie 0 01-27-2004 04:09 AM
How to Import Microsft outlook Email in any Red hat 9 Email Software mobassir Linux - Software 0 07-26-2003 05:08 AM
Sendmail --> Blocking email from senders ForumKid Linux - General 2 10-25-2002 03:46 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 03:11 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration