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

SMTP using TLS error "504 5.7.4 Unrecognized authentication type" #244

Closed
retbandit-zz opened this issue Apr 18, 2016 · 12 comments
Closed

Comments

@retbandit-zz
Copy link

retbandit-zz commented Apr 18, 2016

When I try to setup a mail server that is using Office 365 hosted exchange (SMTP/TLS on default port 587), I get the following error:

504 5.7.4 Unrecognized authentication type

The server I am trying to connect to is: smtp.office365.com:587

@jordan-wright
Copy link
Collaborator

Can you show me a screenshot of the Sending Profile you are using? You can redact the username (just making sure you are authing! I doubt it will work without an account).

@retbandit-zz
Copy link
Author

retbandit-zz commented Apr 19, 2016

Hey Jordan, please see attached- thanks (I cut off the end of the custom domain name)
image

On Mon, Apr 18, 2016 at 7:14 PM, Jordan Wright notifications@github.com
wrote:

Can you show me a screenshot of the Sending Profile you are using? You can
redact the username (just making sure you are authing! I doubt it will work
without an account).


You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub
#244 (comment)

@jordan-wright
Copy link
Collaborator

This looks similar to the same issue the gomail library encountered a while back.

I'll see if I can get this implemented in https://github.com/jordan-wright/email ASAP.

@retbandit-zz
Copy link
Author

Perfect, thanks Jordan

@MindNinja
Copy link

Has this been fixed... I have tried gmail, office365, att smtp, and several others and have been completely unsuccessful with any smtp email outbound activity.

In the gmail case I get the attached email from gmail:

screen shot 2016-05-17 at 9 43 49 am

For a lot of the others I get the EOF (nothing else in the logs) response. Having a hard time using gophish with these issues.

@jordan-wright
Copy link
Collaborator

Just checking in on this - Happy to report that I'm finalizing some changes that should get this resolved.

I should be able to get something pushed out by tomorrow or the next day.

@jordan-wright
Copy link
Collaborator

This should be fixed as of a8aac75. If you could please verify by building from source (you will need to go get -u to get the new email package), I would appreciated it!

@jordan-wright
Copy link
Collaborator

Going ahead and closing this for now. Let me know if upgrading the version from source doesn't fix the issue and we can take another look.

Thanks for reporting this!

@retbandit-zz
Copy link
Author

I can confirm I can authenticate and send email with Office 365, using TLS to smtp.office365.com:587

Thanks!

@jordan-wright
Copy link
Collaborator

Excellent - thanks for the follow-up, @lockandski!

@malimohub
Copy link

Which auth type should be user here. I am using SendWithTLS and passing in plainAuth struct and tls.Config with InsecureSkipVerify set to true as I am testing this locally? This setup is not working

@MonicaIrvine
Copy link

Did you get this figured out? I am trying to validate my office365 account on click funnels and getting the same code :504 5.7.4 Unrecognized authentication type. Do you mind me asking what you did to fix?

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

No branches or pull requests

5 participants