-
Notifications
You must be signed in to change notification settings - Fork 51
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
Support for PLAIN authentication #50
Comments
fastmail also supports LOGIN:
Could you try dma and check whether it is working? |
Strange, I did try it before filing the issue and could not get it to work. It kept telling me "Authentication required". This is what I have in mail.log:
|
(I am using dma 0.9 from Debian Jessie) |
did you set up authentication for that server? |
Yes, I created a /etc/dma/auth.conf with my user, remote and password. |
did you enable authentication by setting the path to auth.conf in dma.conf? |
Oh, the line was commented out so I assumed it was the default settings. That is a bit confusing. Anyway, I uncommented it and the log output is different now:
I checked my credentials twice, they are correct. |
well it seems they are not. |
Is there a chance the server would advertise it supports AUTH LOGIN but would not really support it? The same credentials work fine in the webmail and in ssmtp. |
can you show the auth line (with the password XXed out)? |
Sure: |
I tried opening an account with fastmail to debug this, but the SMS verification doesn't work. Sorry, I can't debug this. |
The revised auth code merged in #34 would likely be a good way to solve this finally. The code implementing the LOGIN method is a close fit for the PLAIN method, so it might be worth looking into. |
I've just setup a new server, and postfix only advertises AUTH PLAIN after STARTTLS Here is the network log from claws mail:
DMA 0.11-1+b1 fails with this:
@corecode - if you'd like a test account on my server, drop me a mail. |
so it doesn't fail?
…On 19/12/2018 21:28, Christian Weiske wrote:
I've just setup a new server, and postfix only advertises AUTH PLAIN
after STARTTLS:
|* Account: ***@***.***': Connecting with SMTP server:
mail.cweiske.de:587... [12:27:24] SMTP< 220 mail.cweiske.de
Kindergarten ES EM TE PE [12:27:24] ESMTP> EHLO boo.home.cweiske.de
[12:27:24] ESMTP< 250-mail.cweiske.de [12:27:24] ESMTP< 250-PIPELINING
[12:27:24] ESMTP< 250-SIZE 10240000 [12:27:24] ESMTP< 250-VRFY
[12:27:24] ESMTP< 250-ETRN [12:27:24] ESMTP< 250-STARTTLS [12:27:24]
ESMTP< 250-ENHANCEDSTATUSCODES [12:27:24] ESMTP< 250-8BITMIME
[12:27:24] ESMTP< 250-DSN [12:27:25] ESMTP< 250 SMTPUTF8 [12:27:25]
ESMTP> STARTTLS [12:27:25] ESMTP< 220 2.0.0 Ready to start TLS
[12:27:25] ESMTP> EHLO boo.home.cweiske.de [12:27:25] ESMTP<
250-mail.cweiske.de [12:27:25] ESMTP< 250-PIPELINING [12:27:25] ESMTP<
250-SIZE 10240000 [12:27:25] ESMTP< 250-VRFY [12:27:25] ESMTP<
250-ETRN [12:27:25] ESMTP< 250-AUTH PLAIN [12:27:25] ESMTP<
250-ENHANCEDSTATUSCODES [12:27:25] ESMTP< 250-8BITMIME [12:27:25]
ESMTP< 250-DSN [12:27:25] ESMTP< 250 SMTPUTF8 [12:27:25] ESMTP> [AUTH
PLAIN] [12:27:25] ESMTP< 235 2.7.0 Authentication successful |
DMA 0.11-1+b1 fails with this:
|dma[hash]: smarthost authentication: AUTH cram-md5 not available: 535
5.7.8 Error: authentication failed: Invalid authentication mechanism
dma[hash]: remote delivery deferred: AUTH login not available: 535
5.7.8 Error: authentication failed: Invalid authentication mechanism
dma[hash]: SMTP login not available. Trying without. dma[hash]:
delivery successful |
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#50 (comment)>, or
mute the thread
<https://github.com/notifications/unsubscribe-auth/AAK3O8U94ahYz4SSmFeROvrLa_CV53zvks5u6qF-gaJpZM4K3Qsk>.
|
Oh, that SMTP session was from claws mail, my normal client - so that I could demo how the EHLO response looks like. dma does fail. |
but it says "delivery successful" |
Yes, because at that time the server allowed connections without authentication (which is why it says "SMTP login not available. Trying without."). This is not the case anymore, because all connections on port 587 must be authenticated. |
could you please show the logs and ideally session transcript of the failing delivery? |
I have no idea how I should capture the session transcript, given that STARTTLS is used in between. Or is there a hidden DMA config option to log the session? |
thanks! I'm surprised that LOGIN is not supported, but I agree that PLAIN should be implemented as well. |
I'm having the same problem - I'm trying to use dma with Zoho.com (smtp.zoho.com, using SSL on port 465), but it fails with: smarthost authentication: AUTH cram-md5 not available: 501 Could not do Unknown Authentication |
I would like to switch my servers from ssmtp to dma, but my email provider (fastmail) only supports plain authentication (see https://www.fastmail.com/help/technical/servernamesandports.html?u=85f84118).
Do you plan to add support for plain authentication?
The text was updated successfully, but these errors were encountered: