Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Wed Oct 05, 2011 11:24 am 
Offline
Senior Member
User avatar

Joined: Thu Jun 16, 2011 8:24 am
Posts: 412
Location: Cyberspace
A lot of the spam that comes through to my Linode's email from strange timestamps, e.g. I'll receive emails from as much as 10 years ago and 5 years in the future. It's like I unintentionally created a digital time machine! :lol:

Anyway, these emails are harder to delete (or annoying, at the very least). I'm wandering if it's possible to tell postfix to check the timestamps and throw out any emails that are impossible to have been sent at the time which they come in.

_________________
Kris the Piki Geeker


Top
   
 Post subject:
PostPosted: Wed Oct 05, 2011 12:10 pm 
Offline
Senior Member

Joined: Wed Oct 20, 2010 12:11 pm
Posts: 142
You could probably do this with spamassassin. I'm sure it has rules to handle a date too far in the past/future.

Also worth looking at is greylisting. I don't even check any rbls anymore - I just greylist and 99% of my spam is gone (most spam sent by botnets won't bother retrying)


Top
   
 Post subject:
PostPosted: Wed Oct 05, 2011 12:25 pm 
Offline
Senior Member
User avatar

Joined: Thu Jun 16, 2011 8:24 am
Posts: 412
Location: Cyberspace
I'm already running spamassassin, and it does mark them. The problem here is removing them from my inbox so I'm not searching between my emails to remove them.

I've never heard of greylisting.

_________________
Kris the Piki Geeker


Top
   
 Post subject:
PostPosted: Wed Oct 05, 2011 1:27 pm 
Offline
Senior Member

Joined: Wed Oct 20, 2010 12:11 pm
Posts: 142
http://postgrey.schweikert.ch/


Top
   
PostPosted: Wed Oct 05, 2011 3:42 pm 
Offline
Senior Member
User avatar

Joined: Fri Oct 24, 2003 3:51 pm
Posts: 965
Location: Netherlands
Piki wrote:
I'm wandering if it's possible to tell postfix to check the timestamps and throw out any emails that are impossible to have been sent at the time which they come in.


Add to postfix main.cf:
Code:
header_checks = pcre:/etc/postfix/header_checks


Create header_checks:
Code:
# Reject mails with dates far in the past or future - 
# they are designed to appear at the top or bottom of your inbox.
/^Date: .* 20[2-9][0-9]/     REJECT Date header is in the distant future.
/^Date: .* 201[2-9]/         REJECT Date header is in the future.
/^Date: .* 2010/             REJECT Date header is from last year.
/^Date: .* 200[0-9]/         REJECT Date header is from the past.
/^Date: .* 19[0-9][0-9]/     REJECT Date header is from the distant past.

_________________
/ Peter


Top
   
 Post subject:
PostPosted: Wed Oct 05, 2011 6:08 pm 
Offline
Senior Member
User avatar

Joined: Sat Aug 30, 2008 1:55 pm
Posts: 1739
Location: Rochester, New York
(note: don't forget to update it annually)


Top
   
 Post subject:
PostPosted: Wed Oct 05, 2011 6:11 pm 
Offline
Senior Member
User avatar

Joined: Fri Oct 24, 2003 3:51 pm
Posts: 965
Location: Netherlands
hoopycat wrote:
(note: don't forget to update it annually)

Yeah; I usually spend a couple of hours on New Year's Day wondering why nobody emails me any more -- then I update it.

_________________
/ Peter


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 4 guests


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

Search for:
Jump to:  
cron
RSS

Powered by phpBB® Forum Software © phpBB Group