restrict incoming mail by date

jangeles

New member
Joined
Oct 14, 2008
Messages
4
I have a question. I can restrict incoming mails by date?
What happens is that some users receive mails from spammers that are not detected, but these emails arrive with the ship date very old years.
So I wondered if it's possible to set a limit for receiving mail with sent date before the year X.

Thanks for your atention,

Jesus
 
Blocking on old dates may be against RFCs, but I can understand why you'd want to do so.

You can make custom changes to DirectAdmin's exim.pl file to filter based on date, but that's after the email has already been accepted by exim.

You can make custom changes to the acl_smtp_data acl (check_message) to do anything you want, including refuse (block), on the first line in the message beginning with "Date: ", but doing so would require exhaustive testing to be certain it works in your environment, and once you customize your exim.conf file you must remember to make changes any time you update to a new version (new versions are coming, with lots of additional functionality).

Jeff
 
Back
Top