How to Resolve SMTP Error in Plesk Panel with Yandex Mail

If you’re using Plesk Panel for managing your web hosting and Yandex Mail for your email services, you might encounter SMTP (Simple Mail Transfer Protocol) errors when trying to send emails. This issue can often be resolved by making adjustments to the “msmtprc” file. In this guide, we’ll walk you through the steps to resolve this problem.

Step 1: Accessing the “msmtprc” File

  1. Log in to your server where Plesk Panel is installed using SSH or your preferred terminal application.
  2. Navigate to the directory where the “msmtprc” file is located. Typically, it can be found at /etc/msmtprc.

Step 2: Editing the “msmtprc” File

1. Open the “msmtprc” file using a text editor. You can use the nano, edit or vi command, depending on your preference:

nano /etc/msmtprc
vi /etc/msmtprc
edit /etc/msmtprc

2. Within the “msmtprc” file, you will see various SMTP configuration settings. These settings may include the SMTP server address, port, authentication details, and more. Ensure that the settings match the requirements of your Yandex Mail SMTP server.

#ATTENTION!
#
#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.

#
# Global settings section
#
defaults

syslog LOG_MAIL
tls_starttls off
tls_certcheck off
tls on

# Automatic envelope-from generation. 
# Caution: this overrides explicitly set envelope-from via --from or other means.
auto_from off
from [email protected]

# Set a domain part for the generation of an envelope-from address.
maildomain domain.com

# This command sets the argument of the SMTP EHLO (or LMTP LHLO) command.
domain server.domain.com

#
# Default account.
#
account default

host smtp.yandex.com.tr
port 465

auth on
user [email protected]
# Password is actually stored in /etc/psa/private/msmtp-pwdeval.conf
passwordeval /usr/lib64/plesk-9.0/msmtp-pwdeval

By following the steps outlined in this guide, you should be able to resolve SMTP errors when using Plesk Panel with Yandex Mail. Make sure to double-check your SMTP configuration settings in the “msmtprc” file and test the configuration to ensure that your emails are sent successfully.

Remember to save the “msmtprc” file securely and keep your SMTP authentication details confidential to maintain the security of your email services.

Leave a Reply