• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Forwarded to devs Train spamassasing using localhost

Frank.P

Regular Pleskian
TITLE:
Train spamassasing using localhost
PRODUCT, VERSION, OPERATING SYSTEM, ARCHITECTURE:
Windows , Plesk 17.5
PROBLEM DESCRIPTION:
PHP LOG : C:\Program Files (x86)\Plesk\admin\logs\php_error.log

Code:
[2017-08-16 03:12:03] ERR [1] PHP Warning: imap_open(): Couldn't open stream {127.0.0.1:143}Inbox\Spam; File: C:\Program Files (x86)\Plesk\admin\plib\Spamassassin\adapter\Imap.php, Line: 36

[2017-08-16 03:12:03] ERR [panel] Failed to train sa for mailname emailmydomain.net: Failed to connect to imap server. : Certificate failure for 127.0.0.1: Server name does not match certificate: CN=mydomain.com


Plesk conect to localhost and ask command "STARTTLS" , if wrong response connet to IMAP without certificate, buy if answer is right connect using TLS for secure connection.

The problem is local ip 127.0.0.1 never have a valid certificate, becase certificate only can have a domain name.

Please change C:\Program Files (x86)\Plesk\admin\plib\Spamassassin\adapter\Imap.php and never connect to IMAP using TLS.
STEPS TO REPRODUCE:
1- Create 2 or more domains.
2. Set by default a certificate
2- Set for first ip a certificate (same of default for example)
3- In second ip set an other certificate


img1.png img2.png

ACTUAL RESULT:
PHP ERROR and not connect because server name does not match certificate
EXPECTED RESULT:
Change C:\Program Files (x86)\Plesk\admin\plib\Spamassassin\adapter\Imap.php

YOUR EXPECTATIONS FROM PLESK SERVICE TEAM:
Confirm bug
 
From developer:

It looks like some sort of misconfiguration. We do not use Imap for train SpamAssassin in case of mailenable mail server.
Try to refresh server components.
 
Back
Top