-
-
Notifications
You must be signed in to change notification settings - Fork 39
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
Allow sending mails without authentication #36
Comments
Hi, thanks for the request. This is actually a false-positive. When used without the As you stated in I suggest that you check the local mail server configuration to see if local relaying is allowed or not.
|
Thanks for the explanation! Looks like my lack of mail server knowledge is to blame here :) I've checked the implementation and config again and it seems to work fine when I run everything on a server that's allowed to talk to the mail server. |
I also got confused how to configure no-authentication SMTP. Luckily I found this issue. |
Gald this helped you. I'll consider adding a FAQ section to the go-mail website and adding this, as it seems a common issue. |
Maybe easier is to define |
Gotta evaluate that. |
Is your feature request related to a problem? Please describe.
There are users who run their smtp servers without authentication (for example in a private network). Currently, this package is unable to connect to such mail servers.
I've tried a few things and got different error messages as a result:
mail.WithSMTPAuth
option or uncommenting https://github.com/wneessen/go-mail/blob/main/client.go#L327-L329:None of these three things seem to work.
Related go-vikunja/vikunja#34 (comment)
Describe the solution you'd like
Ideally, there would be an option like
mail.WithoutAuthentication
which does not even try to authenticate and instead just sends the mail straight away. I thought this would work when removing lines https://github.com/wneessen/go-mail/blob/main/client.go#L327-L329 but it didn't.Describe alternatives you've considered
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: