(SOLVED) Error (?) for fetching emails

Post Reply
Didou12
Posts: 487
Joined: 14 Jan 2023, 14:53
Name: Louis
Location: Montreal, Canada

(SOLVED) Error (?) for fetching emails

Post by Didou12 »

Hi,

I don't know why but I have an error for emails. Is it because I changed my php version on the server to 8.2 ? Don't know because my email configuration didn't change.

Code: Select all

2023-05-19 01:00		Warning	
imap_open(): Couldn't open stream {mail.MY_DOMAIN.com:993/imap/ssl}INBOX
plugins/ext/classes/mail/mail_fetcher.php:54
2023-05-19 01:00		Notice	
PHP Request Shutdown: Certificate failure for mail.MY_DOMAIN.com: Hostname mismatch: /CN=MY_SERVER.DNS.COM (errflg=2)
Unknown:0
And I have an error from CRON Cpanel on my email :

Code: Select all

Cron <USERNAME_ON_MY_SERVER> /usr/local/bin/php /home/USERNAME/MY_WEBSITE/cron/email_fetch.php
Certificate failure for mail.MY_DOMAIN.com: Hostname mismatch: /CN=MY_SERVER.DNS.COM
On my computer (with my email client), I can have my emails (and I didn't change my settings).

Thanks
Last edited by Didou12 on 19 May 2023, 19:24, edited 1 time in total.
Using Rukovoditel since 2022 --- v3.4 (with extension) in French on PHP 8.2
I keep the French translation up to date
I'm trying to help you (+10 years experience in html, css, php, sql, JS/jquery, python)
User avatar
support
Site Admin
Posts: 6231
Joined: 19 Oct 2014, 18:22
Name: Sergey Kharchishin
Location: Russia, Evpatoriya

Re: Error (?) for fetching emails

Post by support »

It means imap can't connect to server. Not app error.
Didou12
Posts: 487
Joined: 14 Jan 2023, 14:53
Name: Louis
Location: Montreal, Canada

Re: Error (?) for fetching emails

Post by Didou12 »

Hi :)

It's solved, I think PHPMailer the new version in Rukovoditel 3.4 is maybe more secure ahaha.
Issue was my mail server name (mail.MY_DOMAIN.com) didn't match the web server DNS (MY_SERVER.dns.com) because I'm on a mutual server, so I just replaced mail.MY_DOMAIN.com by MY_SERVER.dns.com and now it's all good :)

Thanks
Using Rukovoditel since 2022 --- v3.4 (with extension) in French on PHP 8.2
I keep the French translation up to date
I'm trying to help you (+10 years experience in html, css, php, sql, JS/jquery, python)
Post Reply