slimta / python-slimta

Python libraries to send, receive, and queue email.
https://slimta.org/
MIT License
171 stars 43 forks source link

slimta does not seem to support CRAM-MD5 for AUTH or does not recognize it. #141

Closed thestick613 closed 6 years ago

thestick613 commented 6 years ago

Tried with 4.0.5 and 3.2.4. I've been trying to relay to a server which looks like this:

220 XXX.SERVER.com ESMTP service ready.
EHLO ehlo.com
250-XXX.SERVER.com Hello [1.2.3.4]
250-PIPELINING
250-SIZE 0
250-ENHANCEDSTATUSCODES
250-STARTTLS
250-AUTH CRAM-MD5 LOGIN
250-AUTH=LOGIN
250 OK

Slimta then tries to log in via "AUTH PLAIN", according to this log:

    2018-09-15 16:36:04,513.513 DEBUG __init__ - logline: fd:15:connect peer=('XXX.SERVER.com', 25)
    2018-09-15 16:36:04,641.641 DEBUG __init__ - logline: fd:15:recv data='220 XXX.SERVER.com ESMTP service ready.\r\n'
    2018-09-15 16:36:04,642.642 DEBUG __init__ - logline: fd:15:send data='EHLO ehlo.com\r\n'
    2018-09-15 16:36:04,768.768 DEBUG __init__ - logline: fd:15:recv data='250-XXX.SERVER.com Hello [1....H CRAM-MD5 LOGIN\r\n250-AUTH=LOGIN\r\n250 OK\r\n'
    2018-09-15 16:36:04,769.769 DEBUG __init__ - logline: fd:15:send data='STARTTLS\r\n'
    2018-09-15 16:36:04,902.902 DEBUG __init__ - logline: fd:15:recv data='220 Ready To Start TLS\r\n'
    2018-09-15 16:36:04,902.902 DEBUG __init__ - logline: fd:15:encrypt accept=0L accept_good=0L accept_renegotiate=0L cache_full=0L connect=0L connect_good=0L connect_renegotiate=0L hits=0L misses=0L number=0L timeouts=0L
    2018-09-15 16:36:05,185.185 DEBUG __init__ - logline: fd:15:send data='EHLO ehlo.com\r\n'
    2018-09-15 16:36:05,310.310 DEBUG __init__ - logline: fd:15:recv data='250-XXX.SERVER.com Hello [1....H CRAM-MD5 LOGIN\r\n250-AUTH=LOGIN\r\n250 OK\r\n'
    2018-09-15 16:36:05,312.312 DEBUG __init__ - logline: fd:15:send data='AUTH PLAIN [redacted base64 auth]=\r\n'
    2018-09-15 16:36:05,450.450 DEBUG __init__ - logline: fd:15:recv data='500 5.0.0 Unknown or unimplemented command.\r\n'
    2018-09-15 16:36:05,451.451 DEBUG __init__ - logline: fd:15:send data='QUIT\r\n'
Failed 1.2.3.4 user@domain.com Permanent failure on AUTH: 500 5.0.0 Unknown or unimplemented command.