• Hi, Pleskians! We are running a UX testing of our upcoming product intended for server management and monitoring.
    We would like to invite you to have a call with us and have some fun checking our prototype. The agenda is pretty simple - we bring new design and some scenarios that you need to walk through and succeed. We will be watching and taking insights for further development of the design.
    If you would like to participate, please use this link to book a meeting. We will sent the link to the clickable prototype at the meeting.
  • (Plesk for Windows):
    MySQL Connector/ODBC 3.51, 5.1, and 5.3 are no longer shipped with Plesk because they have reached end of life. MariaDB Connector/ODBC 64-bit 3.2.4 is now used instead.
  • Our UX team believes in the in the power of direct feedback and would like to invite you to participate in interviews, tests, and surveys.
    To stay in the loop and never miss an opportunity to share your thoughts, please subscribe to our UX research program. If you were previously part of the Plesk UX research program, please re-subscribe to continue receiving our invitations.
  • 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.

Issue Plesk 12.0.8 incorrectly generating /etc/postfix/sasl/smtpd.conf

johnrdorazio

Basic Pleskian
I haven't been succeeding in connecting to my mail server using an imap client (I'm trying to use gmail app on Android to connect to my mail server via imap), but I have just found the error and therefore the very simple solution, as indicated on this forum: https://adeelejaz.com/blog/smtp-authorization-does-not-work-on-plesk-11/.

Checking my mail log I found this error:
Dec 21 20:17:23 vps94844 postfix/smtpd[32304]: warning: SASL authentication failure: cannot connect to saslauthd server: No such file or directory
Dec 21 20:17:23 vps94844 postfix/smtpd[32304]: warning: SASL authentication failure: Password verification failed
Dec 21 20:17:23 vps94844 postfix/smtpd[32304]: warning: unknown[151.68.132.160]: SASL PLAIN authentication failed: generic failure


I am using Ubuntu server and my smtpd.conf is located at /etc/postfix/sasl/smtpd.conf.
Checking the contents of this file I see:
pwcheck_method: auxprop saslauthd
auxprop_plugin: plesk
saslauthd_path: /postfix/private/plesk_saslauthd
mech_list: DIGEST-MD5 CRAM-MD5 PLAIN LOGIN
sql_engine: intentionally disabled
log_level: 4


Voilà, saslauthd_path is incomplete! I corrected this error just so:
pwcheck_method: auxprop saslauthd
auxprop_plugin: plesk
saslauthd_path: /var/spool/postfix/private/plesk_saslauthd
mech_list: DIGEST-MD5 CRAM-MD5 PLAIN LOGIN
sql_engine: intentionally disabled
log_level: 4


And after reloading postfix, now I can connect from my gmail app to my imap server without any problems.
Obviously, Plesk is not generating correctly the smtpd.conf file. I have even tried to disable mail services completely and re-enable them, delete my mail user accounts and recreate them, switch from roundcube to horde and back again, swith from postfix to qmail and back again... And then I found this error, so clearly the smtpd.conf file is not being generated correctly. I am using Plesk Web Admin Edition version 12.0.8 #96 on Ubuntu Server 14.04.5 LTS.
 
I find that this is still happening on Plesk Obsidian. I have tried setting the chroot flag to yes on plesk-sasl in the postfix configuration, but it still didn't work with the relative paths. The only way I can get this to work is to set the chroot flag to no and use full paths.
 
Back
Top