-
Notifications
You must be signed in to change notification settings - Fork 63
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
No anonymous authentication? #107
Comments
Hmm. According to RFC 4954, if a client is providing an empty user name, the server must deny the authentication request. So, instead of using EHLO the anonymous connection should probably start with HELO. |
If no authentication is required, client should not send
|
The issue seems to be in let authMethod = try getAuthMethod(authMethods: authMethods, serverOptions: serverOptions, hostname: hostname)
try login(authMethod: authMethod, email: email, password: password) |
I'm using an SMTP server that doesn't require authentication, though when Swift-SMTP attempts to authenticate with empty credentials, it fails.
I'm having no issues at all sending mail anonymously with the
swaks
tool.How do I specify a credential-less SMTP configuration?
The text was updated successfully, but these errors were encountered: