Latest mailreports package has STARTTLS broken



  • Just opened a bug report in redmine, here is the details in case someone will be searching forums.

    https://redmine.pfsense.org/issues/7437

    I had pfSense configured to send mail reports via FastMail on port 587 with STARTTLS.
    All worked great until recent package upgrade when suddenly I stopped receiving daily status emails.
    Initial check showed that test mail from Notification configuration works fine, but sending reports fails.
    Finally got some time to troubleshoot.
    Adding $mail->SMTPDebug = 2; to mail_reports.inc reports "SMTP Error: Could not authenticate."

    But I can see that STARTTLS still works on another install with package version 3.0_1.
    Comparing mail_reports.inc between versions revealed that package no longer sets $mail->SMTPSecure =  "tls"; when "Enable STARTTLS" checkbox is checked in Notification configuration.

    Luckily, I can switch to SSL on port 465 for now, but I would appreciate if this can be fixed - current situation is very misleading because system notifications still work properly.



  • Interestingly, the bug was rejected - by people who do not know the difference between STARTLS and SMTPS… Fascinating :(


Log in to reply