-
-
Notifications
You must be signed in to change notification settings - Fork 69
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
Wrong SMTP port #26
Comments
@helmut72 , thank you for opening this issue! Currently, I implemented the storage for credentials. The SMTP is actually not yet implement. Nevertheless, this issue is timely! 👍 |
Oh, ok. I just read the example configurations and after read TCP 993 a 2nd time I thought to create an issue ;) Now I'm glad I've never tried it ;) |
@helmut72 , do you happen to have SMTP server that I could use for testing? |
I'm not allowed to share this mail server, but I can test your code against this server and give you log files from the server asap. Insecure connections are disabled from the Internet for security reasons, but I'd enable it temporary for tests in the private LAN. For common testing you can use every mail provider like Gmail, outlook.com which supports SMTP. Nearly all supports SMTP. |
@helmut72 , FYI, I am splitting email provider and credentials. Got the port right this time! 😄 |
Thank you. Will try it when it's ready to test 😊 |
@helmut72 , I baked email notification on registrations in the changes are caddy-security v1.0.12. Please test. Also, please see the config with registration and email provider. The function that sends the user registration emails is here: Please let me know whether you got it working or what the challenges were/are? |
Sorry, busy working week... basically it works. It even use TLS 1.3, great! Some informations: mail topics:
registration logic:
|
I'm not a great coder, but regarding the subject it maybe should be:
|
@helmut72 , thank you for testing this! 👍 I was so focused on getting the mailing part "right", that I missed rookie stuff on the payload 😄 Will release a fix shortly. |
My code suggestion is untested. It's just a guess after looking into your code ;) Also, there is an empty message-id. Don't know how to enable it with the smtp lib you use. |
@helmut72 , I fixed some other stuff too, e.g. date, thread, etc. greenpau/go-authcrunch@3ffb8f2 Will release shortly. |
Release fix in v1.0.13. |
Thank you 👍 ... received mail looks good! Still couldn't login to portal after clicking registration link. Need to look into it tomorrow after work. Maybe it's one of my setting. |
@helmut72 , you will not be able to login. The clicking of the link adds user to the registration. (Before there was no requirement to confirm since the email functionality was not there.) Next step in terms of development - on a user acknowledgement, the server will send an email to an admin to approve/decline the registration. |
Your SMTP examples uses TCP 993 for SMTP, but this is IMAP (SSL). SMTP is TCP 25 (insecure or Start TLS), TCP 465 (SSL) or TCP 587 (insecure or Start TLS).
Please also provide informations how to configure insecure, SSL and Start TLS modes.
One example:
https://raw.githubusercontent.com/greenpau/caddy-security/main/README.md
Thank you
The text was updated successfully, but these errors were encountered: