The '/etc/msmtprc' configuration file is being replaced


2016-11-16 13:00:20 UTC


2017-08-16 16:18:59 UTC


Was this article helpful?

Have more questions?

Submit a request

The '/etc/msmtprc' configuration file is being replaced

Applicable to:

  • Plesk 11.x for Linux


Plesk Panel was installed with MSMTP support .

Еhe 'maildomain' variable in not set in the '/etc/msmtprc' configuration file so it was added manually, but after enabling external SMTP Server support under the Tools & Settings -> External SMTP Server the 'maildomain' variable was erased from config.


Such behavior is considered to be a software issue that should be fixed in one of the future releases of the Parallels Plesk. The issue id is PPPM-1534 .


To work around the issue modify the code of the 'msmtpmng' utility by adding the required maildomain in the 'mc_write_config()' function.

For example, if the '' should be used add the following string:

echo "maildomain >> "$msmtp_config" &&

# diff -u /usr/local/psa/admin/sbin/msmtpmng.orig /usr/local/psa/admin/sbin/msmtpmng
--- /usr/local/psa/admin/sbin/msmtpmng.orig 2014-04-03 14:44:24.131368253 +0700
+++ /usr/local/psa/admin/sbin/msmtpmng 2014-04-03 14:44:10.999368246 +0700
@@ -1004,6 +1004,7 @@
local prev_allow_users_list="`sed -ne 's/^\\s*allow_users_list\\s\\+\\(.*\\)\\s*$/\\1/p' $pwdeval_config | tail -n1`"

mc_generate_msmtp_config > "$msmtp_config" &&
+ echo "maildomain" >> "$msmtp_config" &&
touch "$pwdeval_config" && set_ac 0 0 0600 "$pwdeval_config" &&
mc_generate_pwdeval_config "$prev_allow_users_list" > "$pwdeval_config"
} 2>>"$product_problems_log"
Have more questions? Submit a request
Please sign in to leave a comment.