Jump to content
Froxlor Forum
  • 0

Certificate mismatch in PHP mailer


martinvh
 Share

Question

Hello everybody,

in the monthly Froxlor usage report I'm getting the message PHP Warning:  stream_socket_enable_crypto(): Peer certificate CN=`<my Froxlor domain>' did not match expected CN=`localhost' in /var/www/froxlor/lib/classes/phpmailer/class.SMTP.php on line 369

The mail is being sent to the systems root account, which is mapped in /etc/aliases to an existing Froxlor mail account (webmaster@<my Froxlor domain>). Is this related to the Froxlor admin user, whos mail address is the same? Either way, why is the function expecting the local CN instead of the FQDN one? What is the correct setting in this case, or how can I mitigate the warning? The only cause effect I discovered is, that mails cannot be sent to new mail accounts via the alternate mail address, which results in the same error.

Thanks in advance,

Martin

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

Wow, with this advice I finally found the settings (for reference: Froxlor start -> settings -> system settings). I then changed SMTP host from localhost to my mail domain. However it's hard to debug the right settings, still not able to send out mails. But this should be solved by #464.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...