You can't do any of this prior to the DATA template as the mail has not been received
until that point. What you can do is something like:
Pseudo-code
if date header does not exist
{
result=abort
customresponse="554 Properly formatted mail requires a DATE header"
}
HTH,
Howie
----- Original Message -----
From: "Michael Dinowitz" <[EMAIL PROTECTED]>
To: "inFusion Support List" <[EMAIL PROTECTED]>
Sent: Friday, August 29, 2003 3:37 PM
Subject: [iMS] custom rejects
> I think this was talked about but can't seem to find it. Is there a way in the
> helo template or the other receiving template to say why a message was rejected?
> Basically, I want to do the following:
> If the TO, FROM, DATE and/or Subject is either blank or non-existent, I'd like
> the message to be rejected from the server and the rejection state why its being
> rejected. This is the first tier of a system for basic spam/virus rejection.
> Stop it from the connection source.
> The second tier will do the same thing, but check for TO, FROM, Message-ID and
> DATE format for the same reason (for example [EMAIL PROTECTED] is illegal).
> Thanks
>
> BTW, this is mostly based on the RFC. DATE is required as is the FROM address.
> I'm adding in TO and Subject because any message that comes with a blank TO is
> definitely going to be illegal and a blank subject is just wrong.
>
> Michael Dinowitz
> Finding technical solutions to the problems you didn't know you had yet
>
==^=======================================================
This list server is Powered by iMS
"The Swiss Army Knife of Mail Servers"
--------------------------------------
To leave this list please complete the form at
http://www.coolfusion.com/Support/
Need an iMS Developer license? Sign up for a free license here:
http://www.coolfusion.com/Developers/
List archives: http://wwwmail-archive.com/infusion-email%40eoscape.com/
Note: You are subscribed as [EMAIL PROTECTED]
==^=======================================================