Re: Return code 250 Ok. syntax
Sam Varshavchik <[email protected]>
| Newsgroups | gmane.mail.imap.courier.general |
|---|---|
| Message-ID | <[email protected]> |
Pascal Véron writes: > Hello, > > I recently discover than we have some courier servers which don't respond > same return code than other courier servers. > > Some of them return 250 OK id=... and other return 250 Ok. (k in lower case, > point . and no id=) Courier servers don't respond like that. The response to an accepted message is always 250 Ok. nnnn Where "nnnn" is an internal identifier. There is no "id=" part. Wherever this response is coming from, it's not from Courier. Example of a Courier SMTP response: MAIL FROM:<> 250 Ok. RCPT TO:<[email protected]> 250 Ok. DATA 354 Ok. Subject: test test . 250 Ok. 0000000065455F60.00001A6A > Problem is than a partner outside of our network need to check return code > to be exactly 250 OK (as RFC said it seems). So our return 250 Ok. are not > accepted. Your partner is clueless. RFC 2821 states: 2.3.11 Reply An SMTP reply is an acknowledgment (positive or negative) sent from receiver to sender via the transmission channel in response to a command. The general form of a reply is a numeric completion code (indicating failure or success) usually followed by a text string. The codes are for use by programs and the text is usually intended for human users. Recent work [34] has specified further structuring of the reply strings, including the use of supplemental and more specific completion codes. https://datatracker.ietf.org/doc/html/rfc2821#section-2.3.11 The numeric completion code is the only logical part of the response. The text that follows can be anything, and does not mean anything (the blurb about extended reply strings is immaterial). I repeat: your "partner" is a clueless idiot. RFC 2821 itself gives a completely different freeform text for a 250 response: https://datatracker.ietf.org/doc/html/rfc2821#section-2.3.11 250 Requested mail action okay, completed That's an example of a 250 response from RFC 2821. The text is completely meaningless, to mail servers. The only look at the numeric code. > So question are : what is the correct return code in courier ? 250 OK or 250 > Ok. ? Both of them are correct, even the one that's not coming from Courier. > And is it possible and how to change to respond with syntax 250 OK ? No, there is no such setting in Courier. Tell your partner to fire whoever told you that nonsense, for incompetence, and they need to hire someone who actually understands SMTP. _______________________________________________ courier-users mailing list [email protected] Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
signature.asc
(application/pgp-signature, 228 B)
-----BEGIN PGP SIGNATURE----- iHUEABYKAB0WIQRupkKLJP96aW75pIOKYPgoojZS4gUCZUVhvgAKCRCKYPgoojZS 4jtTAQDWmmBObQAQOAMlQiIhG4cRk4D0kIWOAuVHYZtxh2tKyQEAnzWaYiPsBZbO BvYSIXGUX1a6aRN9XEQMp8fXOqeiDAo= =TTti -----END PGP SIGNATURE-----