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

stmp invalid login: 502 Command "AUTH PLAIN #2106

Closed
voicyfei opened this issue Jan 15, 2019 · 19 comments
Closed

stmp invalid login: 502 Command "AUTH PLAIN #2106

voicyfei opened this issue Jan 15, 2019 · 19 comments

Comments

@voicyfei
Copy link

Issue

Server Setup Information:

  • Did you test in newest Wekan?:YES
  • For new Wekan install, did you configure root-url correctly https://github.com/wekan/wekan/wiki/Settings ? YES
  • Wekan version: v2.01.0
  • If this is about old version of Wekan, what upgrade problem you have?: new deployed
  • Operating System: kubernetes
  • Deployment Method(snap/docker/sandstorm/mongodb bundle/source):mongodb
  • Http frontend if any (Caddy, Nginx, Apache, see config examples from Wekan GitHub wiki first):no
  • Node Version:
  • MongoDB Version:v3.2.20
  • ROOT_URL environment variable http(s)://(subdomain).example.com(/suburl): inner network

Problem description:
i set up mail_url as
smtp://a@b.com:pd@192.168.100.1:25/?ignoreTLS=true&tls={rejectUnauthorized:false}&secure=false

when regist, i got in log
invalid login: 502 Command "AUTH PLAIN

what can i do?

@xet7
Copy link
Member

xet7 commented Jan 15, 2019

Urlencode special characers, see top of this page:
https://github.com/wekan/wekan/wiki/Troubleshooting-Mail

@xet7 xet7 closed this as completed Jan 15, 2019
@voicyfei
Copy link
Author

i change the value to
smtp://a%40b.com%3password%40192.168.100.1%3A25%2F%3FignoreTLS%3Dtrue%26tls%3D%7BrejectUnauthorized%3Afalse%7D%26secure%3Dfalse

and got
"Error: getaddrinfo EAI_AGAIN itsericetest:587 at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js 67:26)“

I set the port as 25 in the url, but it seems trying port 587

how can I set the right url ?

thank you

@xet7 xet7 reopened this Jan 16, 2019
@xet7
Copy link
Member

xet7 commented Jan 16, 2019

You should only urlencode username and password. Not any other characters like : etc

@xet7
Copy link
Member

xet7 commented Jan 16, 2019

smtp://a%40b.com:pd%40@192.168.100.1:25/?ignoreTLS=true&tls={rejectUnauthorized:false}&secure=false

so you urlencode only @ that is special character in username or password

@voicyfei
Copy link
Author

I set it like:
smtp://a%40b.c.d-e-f.com:password@22.122.16.93:25/?ignoreTLS=true&tls={rejectUnauthorized:false}&secure=false

I thought it could be ok
but still got

502 Command "AUTH PLAIN AElUU2VydmljZVRlc3RAbWFpbC5ub3Rlcy5iYW5rLW9mLWNoaW5hLmNvbQBhcm1haWxlY2M=" not implemented

feel sad ~~~

@xet7
Copy link
Member

xet7 commented Jan 16, 2019

What SMTP server are you trying to use?

@xet7
Copy link
Member

xet7 commented Jan 16, 2019

Maybe it does not have non-encrypted port 25 sending at all. So it would require TLS.

@voicyfei
Copy link
Author

IBM notes the email server of company.

And I have tried the same config on rancher notification, just input send e-mail, smtp addr ip, port, user name same as send e-mail and password, it works.

@xet7
Copy link
Member

xet7 commented Jan 16, 2019

Are you using Wekan source/Snap/Docker/Sandstorm version?

@voicyfei
Copy link
Author

No
I put the image of wekan and mongo3.2.20 to kubernetes managed by rancher

@voicyfei
Copy link
Author

wekan:latest with the version of 2.01.0

@xet7
Copy link
Member

xet7 commented Jan 16, 2019

Use the authMethod option to select a different method if your server does not support PLAIN. See the docs here

I found this comment from:
nodemailer/nodemailer#832 (comment)

@xet7
Copy link
Member

xet7 commented Jan 16, 2019

You could also google search for "smtp invalid login 502 AUTH PLAIN" for other ways to fix it. If you find something that works, please add comment to this issue.

@voicyfei
Copy link
Author

Thank you. I'm trying.....

@voicyfei
Copy link
Author

I tried nodemailer, not ok. crying.....
Can I switch a module of send email of wekan?

@xet7
Copy link
Member

xet7 commented Jan 16, 2019

@voicyfei
Copy link
Author

I'm sure it had enabled. I can send mails through smtp with Go or C# program.
I'm debuging nodemailer, try to find the issue.

@voicyfei
Copy link
Author

holy!!!!
My email server don't need an authorization !!!!!
just remove the login name and password in the url .......
e~~

@voicyfei
Copy link
Author

@xet7 thank you

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