• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • We are looking for U.S.-based freelancer or agency working with SEO or WordPress for a quick 30-min interviews to gather feedback on XOVI, a successful German SEO tool we’re looking to launch in the U.S.
    If you qualify and participate, you’ll receive a $30 Amazon gift card as a thank-you. Please apply here. Thanks for helping shape a better SEO product for agencies!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

Resolved Proplems with closing SMTP port 25

Martin73

Basic Pleskian
I have tried to harden my mail settings and did following things:

I have set in /usr/share/postfix/main.cf
smtpd_tls_auth_only = yes

This is the error log from Roundcube:
Code:
[08-Mar-2018 08:14:51 UTC] ERROR: SMTP server does not support authentication ()
[08-Mar-2018 08:14:51 +0000]: <206vkuds> SMTP Error: Authentication failure: SMTP server does not support authentication (Code: ) in /usr/share/psa-roundcube/program/lib/Roundcube/rcube.php on line 1648 (POST /?_task=mail&_unlock=loading1520496890784&_lang=de_DE&_framed=1&_action=send)

Then I removed the setting smtpd_tls_auth_only = yes and changed the file /usr/share/psa-roundcube/config/defaults.inc.php to:
Code:
// SMTP server host (for sending mails).
// To use SSL/TLS connection, enter hostname with prefix ssl:// or tls://
//$config['smtp_server'] = 'localhost';
$config['smtp_server'] = 'tls://localhost';

// SMTP port (default is 25; use 587 for STARTTLS or 465 for the
// deprecated SSL over SMTP (aka SMTPS))
//$config['smtp_port'] = 25;
$config['smtp_port'] = 587;

It was not possible the send an email with Roundcube. What do I have to do? I will only use port 587 or 465. Thank you in advance.
 
Last edited:
I have changed again the setting in /etc/postfix/master.cf (the path in my first posting is wrong).
Code:
smtp_use_tls = yes
smtpd_tls_auth_only = yes

The test with my email client was successful.

After this step I changed the file /usr/share/psa-roundcube/config/defaults.inc.php to:
Code:
// SMTP server host (for sending mails).
// To use SSL/TLS connection, enter hostname with prefix ssl:// or tls://
//$config['smtp_server'] = 'localhost';
$config['smtp_server'] = 'tls://mail.example.com';

// SMTP port (default is 25; use 587 for STARTTLS or 465 for the
// deprecated SSL over SMTP (aka SMTPS))
//$config['smtp_port'] = 25;
$config['smtp_port'] = 587;

This part is important:
Code:
$config['smtp_server'] = 'tls://mail.example.com';

The entry must be for the correct mailserver. Now it's possible to check the certificate. The test with Roundcube was also successful. Everything works.
 
Back
Top