mail error is breaking sanity test reporting

A mail error is breaking many things, including the daily reports and sanity test failures. This problem is only on production, not on dev.

The error is:

could not open Mail::Sender.  from='FreshPorts Sanity Daemon <FreshPorts@example.org>' 
to='kwm@example.org' subject='FreshPorts sanity checking' errorcode='-24' errormsg='IO::Socket::SSL-
>start_SSL failed: SSL connect attempt failed with unknown error error:14090086:SSL 
routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed'

I have yet to track down the cause of this problem, but I suspect it may be related to recent package upgrades.

UPDATE:

This patch may be the solution.

$ svn di email.pm
Index: email.pm
===================================================================
--- email.pm	(revision 4631)
+++ email.pm	(working copy)
@@ -11,6 +11,10 @@
 
 use config;
 use utilities;
+use Mozilla::CA;
+IO::Socket::SSL::set_defaults(
+    SSL_ca_file => Mozilla::CA::SSL_ca_file(),
+);
 
 
 sub SendMail($;$;$;$;$;$) {

PerlMonks mentioned the problem and referenced a work-around. I installed www/p5-Mozilla-CA and patched the code. Preliminary tests are good. Now just waiting for the production runs to take over.

Website Pin Facebook Twitter Myspace Friendfeed Technorati del.icio.us Digg Google StumbleUpon Premium Responsive

Leave a Comment

Scroll to Top