• 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.

MSMTP Issue

MorrisC

Basic Pleskian
Since my mail server does not support TLS, therefore, I unchecked use secured encrypted connection.
When I tried to use forget password for a customer's password, I encountered a problem as below:

Dec 30 14:29:00 linuxpanel msmtp: host=xxx.xxxx.xxx.xxx. tls=off auth=on user=[email protected] from=[email protected] recipients=[email protected] errormsg='cannot use a secure authentication method' exitcode=EX_UNAVAILABLE

*Since I am not using TLS nor SSL, therefore, that error message shall be related to the authentication method.


I then found the configuration file of msmtp location

/etc/msmtprc

change

"auth on"

to

"auth login"

and then it works.


However,

#DO NOT MODIFY THIS FILE BECAUSE IT WAS GENERATED AUTOMATICALLY,
#SO ALL YOUR CHANGES WILL BE LOST THE NEXT TIME THE FILE IS GENERATED.

# MSMTP configuration file. See msmtp(1) for syntax.
# This file was generated by msmtpmng utility.
 
Last edited:
just to prevent future update or setting overwritten....i then modify
/usr/local/psa/admin/sbin/msmtpmng

change line 1257

LINE 1256 cat <<-EOT
LINE 1257 auth on
LINE 1258 user $opt_auth_user
LINE 1259 EOT

to

LINE 1256 cat <<-EOT
LINE 1257 auth login
LINE 1258 user $opt_auth_user
LINE 1259 EOT

hopefully future update will not change this....

so now my plesk can send out emails to customers when i create their account, or they can use forgot password.....yipee!
 
Last edited:
Further reading at

http://msmtp.sourceforge.net/doc/msmtp.html

The following user / password methods are supported:

  • ‘PLAIN’
    Another simple plain text method (with base64 encoding) support by almost all servers.
  • ‘SCRAM-SHA-1’
    A method that avoids clear-text passwords.
  • ‘CRAM-MD5’
    An obsolete method that avoids clear-text passwords.
  • ‘DIGEST-MD5’
    An overcomplicated obsolete method that avoids clear-text passwords, but is not considered secure anymore.
  • ‘LOGIN’
    A non-standard clear-text method similar to (but worse than) PLAIN.
  • ‘NTLM’
    An obscure non-standard method that is now considered broken. It sometimes requires a special domain parameter passed via ntlmdomain. Do not use it.
make sure you use lower case value....you can choose either authentication method your external mail server support...but "on" does not seem to work with my mail server at all.

*on is automatically select the method
 
Back
Top