----- Original Message -----
Sent: Wednesday, June 18, 2003 10:50
AM
Subject: Re: 5xx responses (was: [iMS]
Problem with header parameter of CFX-IMSMail tag)
So, are the following valid:
1. customresponse="500 Your server has been
banned."
2. customresponse="520 Your server has been
banned."
3. customresponse="555 Your server has been
banned."
or, do the 500 number refer to a specific
"error"? Here's the reason I'm asking. Maybe this will help
explain what I'm trying to do. In my HELO template, I first verify that
the incoming mail server is not banned by checking the our banned list.
If it is banned I want to send a custom response. Then, I check for a
valid MX record. To do this I use the cfx_odsmxlookup custom tag.
That tag returns ODSMX_RESULT which tells me whether the tag got executed
succesfully or not. If not I want to do a couple of things.
Right now, while in testing, I want to send a
custom response with the results of ODSMX_RESULT in the message. When I
leave the development stages and make the server live, this will not happen,
rather the result will be logged to a DB table that I record debugging
information in.
Then, if ODSMX_RESULT returns 'SUCCESS' I verify
the the exchange is not empty. If it is empty I then want to send a
custom response indicating that there was no MX record found and that I do not
accept wmail form servers that do not have a valid MX record.
So, basically I need to know how to send 3
different custom responses. 1 for banned servers, 1 for my own use, and
1 for invalid MX records. And this is only in the HELO template. I
still have MAIL, RCPT, and DATA to deal with.
Hope this helps,
Keith