smtp4dev icon indicating copy to clipboard operation
smtp4dev copied to clipboard

Setting Authentication method

Open amorley65 opened this issue 4 years ago • 3 comments

First of all, I love the revamp of this SMTP test program!

I have a question about setting the authentication method used. Is there a way of setting this using the command line? I would like to set it to plain for the testing I am doing (it keeps defaulting to CRAM-MD5 on me).

Thanks Andrew

amorley65 avatar Aug 19 '21 15:08 amorley65

Hi. This is currently not exposed in smtp4dev v3, although underying library does support this. I have turned this ticket into a feature request to track this.

rnwood avatar Sep 02 '21 06:09 rnwood

@amorley65 Could I understand your question a bit more. I see out of the box smtp4dev responds with

250-AUTH=CRAM-MD5 PLAIN LOGIN ANONYMOUS
250 AUTH CRAM-MD5 PLAIN LOGIN ANONYMOUS

And depending on the client, it may select CRAM-MD5 but can select any of those offered

For example with Blat I can specify the -nomd5 param which defaults to PLAIN

<<<getline<<< 250-8BITMIME
<<<getline<<< 250-SIZE
<<<getline<<< 250-SMTPUTF8
<<<getline<<< 250-AUTH=CRAM-MD5 PLAIN LOGIN ANONYMOUS
<<<getline<<< 250 AUTH CRAM-MD5 PLAIN LOGIN ANONYMOUS
Sending stdin.txt to [email protected]
Subject: Subject
Login name is [email protected]
>>>putline>>> AUTH PLAIN  *****
<<<getline<<< 235 Authenticated OK

Is your requirement to make the smtp4dev server not emit a CRAM-MD5 AUTH header?

jafin avatar Sep 11 '21 00:09 jafin

@rnwood could you review the PR on smtpserver repo, see if it can solve this issue?

jafin avatar May 14 '22 01:05 jafin

PR#1413 merged.

rnwood avatar Apr 24 '24 20:04 rnwood