Symphony Email implementation still uses STARTTLS even when webtrees email configuration "Secure connection" is set to none.
Email settings in webtrees are Use SMTP, EMail Server smtpd, port 25, no authentication, no encryption.
This is what happens in the ssmtp container when Webtress tries to send an email with encryption set to none.
Apr 9 10:24:41 d8c334a714f6 postfix/smtpd[5591]: SSL_accept error from cc81c44fdaf2a042.infra_default[172.18.0.15]: -1
Apr 9 10:24:41 d8c334a714f6 postfix/smtpd[5591]: warning: TLS library problem: error:14094418:SSL routines:ssl3_read_bytes:tlsv1 alert unknown ca:../ssl/record/rec_layer_s3.c:1543:SSL alert number 48:
Apr 9 10:24:41 d8c334a714f6 postfix/smtpd[5591]: lost connection after STARTTLS from cc81c44fdaf2a042.infra_default[172.18.0.15]
Apr 9 10:24:41 d8c334a714f6 postfix/smtpd[5591]: disconnect from cc81c44fdaf2a042.infra_default[172.18.0.15] ehlo=1 starttls=0/1 commands=1/2
Workaround is to use the "sendmail -t" option, but I would prefer that Symfony was told not to do any encryption.
Gemini suggested the following;
Disable "Opportunistic" TLS in Symfony: If you are comfortable editing code, the Symfony Mailer (used by webtrees) has a internal logic where STARTTLS is used automatically if the server supports it and no other encryption is specified. Changing this often requires a developer-level override in the mailer transport factory.
Symphony Email implementation still uses STARTTLS even when webtrees email configuration "Secure connection" is set to none.
Email settings in webtrees are Use SMTP, EMail Server smtpd, port 25, no authentication, no encryption.
This is what happens in the ssmtp container when Webtress tries to send an email with encryption set to none.
Workaround is to use the "sendmail -t" option, but I would prefer that Symfony was told not to do any encryption.
Gemini suggested the following;