OS Name/Version: Ubuntu 22.04
Product Name/Version: AMP Release “Decadeus”
v2.4.2, built 21/02/2023 11:49
Problem Description:
Cannot send email unauthenticated while using SSL. I am using IP address authentication on my Google Workspace account, so no auth is needed, but if I turn on SSL it seems that it tries to send authentication information no matter what, which fails because I haven’t entered any.
Debug Logs:
[07:59:04] [EmailSender:xxxxxxxxx Debug] : Unable to send email: System.Net.Mail.SmtpException: Message could not be sent. ---> System.IO.IOException: Connection closed
at System.Net.Mail.SmtpClient.Read () [0x000bd] in <b0f2d15c0b3e4af68978af038d7553b4>:0
at System.Net.Mail.SmtpClient.SendCore (System.Net.Mail.MailMessage message) [0x00000] in <b0f2d15c0b3e4af68978af038d7553b4>:0
at System.Net.Mail.SmtpClient.SendInternal (System.Net.Mail.MailMessage message) [0x00050] in <b0f2d15c0b3e4af68978af038d7553b4>:0
at System.Net.Mail.SmtpClient.Send (System.Net.Mail.MailMessage message) [0x00084] in <b0f2d15c0b3e4af68978af038d7553b4>:0
--- End of inner exception stack trace ---
at System.Net.Mail.SmtpClient+<>c__DisplayClass90_0.<SendAsync>b__0 (System.Object o, System.ComponentModel.DoWorkEventArgs ea) [0x0002c] in <b0f2d15c0b3e4af68978af038d7553b4>:0
at System.ComponentModel.BackgroundWorker.OnDoWork (System.ComponentModel.DoWorkEventArgs e) [0x0000a] in <b0f2d15c0b3e4af68978af038d7553b4>:0
at System.ComponentModel.BackgroundWorker.WorkerThreadStart (System.Object argument) [0x0000e] in <b0f2d15c0b3e4af68978af038d7553b4>:0
--- End of stack trace from previous location where exception was thrown ---
at EmailSenderPlugin.PluginMain.SendMail (System.String To, System.String Subject, System.String Message, System.Net.Mail.MailPriority Priority) [0x0013f] in <9c6d153447774c429f03f6f54fdbc422>:0
[07:59:04] [Core:topoftheamptoya Warning] : Slow method invocation: TestSMTPSettings took 10132ms to complete.
[07:59:04] [Core:topoftheamptoya Warning] : Slow response: EmailSenderPlugin.TestSMTPSettings took 10132ms to complete.
Steps to reproduce:
- Step 1 - set smtp relay address smtp-relay.gmail.com
- Step 2 - set from address - xxxx@domain.com
- Step 3 - turn on SSL
- Step 4 - Click send test email
Actions taken to resolve so far:
seems to be a code oversight, so not much I can do. I have tested without SSL on port 25, and emails work beautifully.
Tested all available relay ports, 25, 465 and 587.