Hello,
Its OK to get 250 If the message successfully accepted. You will see other messages when required like:
200 (nonstandard success response, see rfc876)
211 System status, or system help reply
214 Help message
220 Service ready
221 Service closing transmission channel
250 Requested mail action okay, completed
251 User not local; will forward to <forward-path>
354 Start mail input; end with "."
421 Service not available, closing transmission channel
450 Requested mail action not taken: mailbox unavailable
451 Requested action aborted: local error in processing
452 Requested action not taken: insufficient system storage
500 Syntax error, command unrecognized
501 Syntax error in parameters or arguments
502 Command not implemented
503 Bad sequence of commands
504 Command parameter not implemented
521 Domain does not accept mail (see rfc1846)
530 Access denied
535 SMTP Authentication unsuccessful/Bad username or password
550 Requested action not taken: mailbox unavailable
551 User not local; please try <forward-path>
552 Requested mail action aborted: exceeded storage allocation
553 Requested action not taken: mailbox name not allowed
554 Transaction failed
Here is a sample transaction log:
SMTP -> get_lines(): $data was ""
SMTP -> get_lines(): $str is "220 pmta.server ESMTP service ready"
SMTP -> get_lines(): $data is "220 pmta.server ESMTP service ready"
SMTP -> FROM SERVER:
220 pmta.server ESMTP service ready
SMTP -> get_lines(): $data was ""
SMTP -> get_lines(): $str is "250 pmta.server says hello"
SMTP -> get_lines(): $data is "250 pmta.server says hello"
SMTP -> FROM SERVER:
250 pmta.server says hello
SMTP -> get_lines(): $data was ""
SMTP -> get_lines(): $str is "334 VXNlcm5hbWU6"
SMTP -> get_lines(): $data is "334 VXNlcm5hbWU6"
SMTP -> get_lines(): $data was ""
SMTP -> get_lines(): $str is "334 UGFzc3dvcmQ6"
SMTP -> get_lines(): $data is "334 UGFzc3dvcmQ6"
SMTP -> get_lines(): $data was ""
SMTP -> get_lines(): $str is "235 2.7.0 authentication succeeded"
SMTP -> get_lines(): $data is "235 2.7.0 authentication succeeded"
SMTP -> get_lines(): $data was ""
SMTP -> get_lines(): $str is "250 2.1.0 MAIL ok"
SMTP -> get_lines(): $data is "250 2.1.0 MAIL ok"
SMTP -> FROM SERVER:
250 2.1.0 MAIL ok
SMTP -> get_lines(): $data was ""
SMTP -> get_lines(): $str is "250 2.1.5 <mail@domain.tld> ok"
SMTP -> get_lines(): $data is "250 2.1.5 <mail@domain.tld> ok"
SMTP -> FROM SERVER:
250 2.1.5 <mail@domain.tld> ok
SMTP -> get_lines(): $data was ""
SMTP -> get_lines(): $str is "354 send message"
SMTP -> get_lines(): $data is "354 send message"
SMTP -> FROM SERVER:
354 send message
SMTP -> get_lines(): $data was ""
SMTP -> get_lines(): $str is "250 2.6.0 message received"
SMTP -> get_lines(): $data is "250 2.6.0 message received"
SMTP -> FROM SERVER:
250 2.6.0 message received
SMTP -> get_lines(): $data was ""
SMTP -> get_lines(): $str is "221 2.0.0 pmta.server says goodbye"
SMTP -> get_lines(): $data is "221 2.0.0 pmta.server says goodbye"
SMTP -> FROM SERVER:
221 2.0.0 pmta.server says goodbye
Here is another log. (Notice the response code: 535 5.7.8 credentials invalid ) :
SMTP -> get_lines(): $data was ""
SMTP -> get_lines(): $str is "220 pmta.server ESMTP service ready"
SMTP -> get_lines(): $data is "220 pmta.server ESMTP service ready"
SMTP -> FROM SERVER:
220 pmta.server ESMTP service ready
SMTP -> get_lines(): $data was ""
SMTP -> get_lines(): $str is "250 pmta.server says hello"
SMTP -> get_lines(): $data is "250 pmta.server says hello"
SMTP -> FROM SERVER:
250 pmta.server says hello
SMTP -> get_lines(): $data was ""
SMTP -> get_lines(): $str is "334 VXNlcm5hbWU6"
SMTP -> get_lines(): $data is "334 VXNlcm5hbWU6"
SMTP -> get_lines(): $data was ""
SMTP -> get_lines(): $str is "334 UGFzc3dvcmQ6"
SMTP -> get_lines(): $data is "334 UGFzc3dvcmQ6"
SMTP -> get_lines(): $data was ""
SMTP -> get_lines(): $str is "535 5.7.8 credentials invalid"
SMTP -> get_lines(): $data is "535 5.7.8 credentials invalid"
SMTP -> ERROR: Password not accepted from server: 535 5.7.8 credentials invalid
Thanks
Mesut TUNGA