Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

aiosmtpd CLI Authentication #305

Open
ethanizen opened this issue Aug 10, 2022 · 1 comment
Open

aiosmtpd CLI Authentication #305

ethanizen opened this issue Aug 10, 2022 · 1 comment

Comments

@ethanizen
Copy link

I'm trying to set up a basic mail server to test an application with e-mail reporting. It will only stay on localhost, but I do need authentication and StartTLS. I've gotten StartTLS support working with the aiosmptd CLI, but I can't get the AUTH command to work.

aiosmtpd command line:

aiosmtpd -n -l :8001 --tlscert cert.crt --tlskey key.key

Connection command line:

$ openssl s_client -starttls smtp -connect localhost:8001 -quiet -crlf

ehlo example.com
250-[hostname]
250-8BITMIME
250-AUTH LOGIN PLAIN
250 HELP
auth login      
504 5.5.4 Unrecognized authentication type

I've looked at the docs and it says that Auth is implemented but rejects all by default. How can I turn it on from the CLI?

@christopherdoyle
Copy link

Try "AUTH LOGIN" (all caps) instead of lowercase.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants