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

Refers to:

  • Plesk 11.5 for Linux

Created:

2016-11-16 13:00:20 UTC

Modified:

2016-12-21 19:44:18 UTC

0

Was this article helpful?


Have more questions?

Submit a request

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

Symptoms

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.

Cause

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 .

Workaround

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 'node.workgroup.domain.com' should be used add the following string:

echo "maildomain node.workgroup.domain.com >> "$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 node1.plesk.meteoric.net" >> "$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.