Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

A friend of mine using (I believe) qmail has it configured to reject, as SPAM, any incoming Email with a Date: header that is too far from real time. I can't figure out how to do this with sendmail. How do you do this?

share|improve this question
add comment

3 Answers 3

up vote 3 down vote accepted

Sendmail is evil ;) One solution could be to install SpamAssassin and integrate it with spamass-milter into your mail services. This has the advantage that you could activate lot of other Anti-Spam rules. Or just write your own plugins which is really easy.

share|improve this answer
1  
I already have ClamAV integrated with sendmail with its milter, but I didn't realize that Spam Assassin also had a milter. I'll look into that. Thanks. –  Eddie May 4 '09 at 22:22
add comment

Sendmail isn't good at filtering messages on its own.

In theory it wouldn't take much to write a simple milter (sendmail mail filter) plugin to do just that job.

However if spam prevention is the primary requirement, then why not go the whole hog and plugin a full anti-spam system?

share|improve this answer
add comment

Consider integrating something like MailScanner which can utilize SpamAssassin, ClamAV, and other external tools for detecting spam, viruses, and other nasties.

Also, you probably only want to use a date too far in the future or past as part of a spam score rather than rejecting it outright. You risk catching legitimate senders with misconfigured systems or mail clients in this way.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.