sendmail - what does ALL OK really mean? (OpenInsight 32-bit Specific)
At 04 JUL 2005 02:09:42PM Wilhelm Schmitt wrote:
Checking the retval of the sendmail function I get:
REQS All OK INIT ….
HELO …. OK ….
FROM …. Address Ok.
RCPT 250 2.1.5 mickey123.mouse456@doesnt_exist.no.more OK
…
What does the "All OK" mean then, if the mail can't be delivered?
With valid mail addresses, the function works fine (although quite slow).
Where can I find more documentation on retval? The manual (OI711) just refers to socket functions, but doesn't specify detaills.
TIA
Wilhelm
At 05 JUL 2005 08:16AM Mike Ruane wrote:
The REQS All OK means that all the required fields for sendmail are there.
Anytime an OK is received it generally means that a send and receive have occurred correctly. The retval has gives the contents and history of these send-receive transactions.
Because different mailservers give different errors, we return to the calling program whatever we receive.
Mike
At 05 JUL 2005 09:39AM Wilhelm Schmitt wrote:
Mike,
I can see the problem with documenting retval.
The return status values: do they come directly from the destination server? Is there any possibility to enforce real status check? For example, when sending to an obviously wrong address, there might be no destination server available at all, and still I get an OK.
Is there a mailserver you could recommend, that returns correct answers?
Any suggestions on speeding up processing?
Thanks
Wilhelm
At 05 JUL 2005 12:50PM [email protected] wrote:
It is pretty much impossible to validate that an email address is valid. The easiest way is to ping the domain and see if it responds. Back in the day you could have used the FINGER protocol to validate an email address but most sites turn this off as it is prone to abuse. Mind you the RFC (1288) makes amusing reading in part…
"2.5.5. Vending machines
Vending machines SHOULD respond to a {C} request with a list of allitems currently available for purchase and possible consumption.Vending machines SHOULD respond to a {U}{C} request with a detailedcount or list of the particular product or product slot. Vendingmachines should NEVER NEVER EVER eat money."The common spam way of validating an email address is to mail the address and see if you get a rejection mail from the server, but again people are starting to turn this message off to defeat spammers.
The Sprezzatura Group Web Site
World Leaders in all things RevSoft
At 05 JUL 2005 04:30PM Wilhelm Schmitt wrote:
Sprezz,
RFC1288 is a really a masterpiece of digital prosa.
BTW: thanks for your answer.
Wilhelm