docintelapp / DocIntel

Open Source Platform for storing, organizing, and searching documents related to cyber threats
https://docintel.org
Other
157 stars 25 forks source link

disabling smtp auth #55

Open tfsferreira opened 1 year ago

tfsferreira commented 1 year ago

I’m getting some errors related with smtp authentication. the smtp server is configured to accept no-login authentication, but DocIntel is throwing Exceptions like "AuthenticationException: 535: 5.7.3 Authentication unsuccessful MailKit.Net.Smtp.SmtpClient.Authenticate(Encoding encoding, ICredentials credentials, CancellationToken cancellationToken)" I’ve changed the code of DocIntel.Core/Utils/MailKitEmailSender.csq , line 118, to tell DocIntel to not provide user/pwd when authenticating on the smtp server. My modifications look like this : "client.Authenticate(); ", vs the original file which is set up as : client.Authenticate(_emailSettings.SMTPUser,_emailSettings.SMTPPassword);

My appsettings looks like this : "Email": { "EmailEnabled": true, "CheckCertificateRevocation": false, "NoReplyName": "noreplyname", "NoReplyEmail": “user@server.net", "SMTPServer": “smtp.server”, "SMTPPort": "587", is there any thing else that should be modified in order to enable DocIntel to send emails without authenticating on the smtp server?