Article ID: 120911, created on Apr 5, 2014, last review on Jul 4, 2014

  • Applies to:
  • Plesk 11.5 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"

Search Words

maildomain msmtprc

a914db3fdc7a53ddcfd1b2db8f5a1b9c 56797cefb1efc9130f7c48a7d1db0f0c 01bc4c8cf5b7f01f815a7ada004154a2 29d1e90fd304f01e6420fbe60f66f838 0a53c5a9ca65a74d37ef5c5eaeb55d7f

Email subscription for changes to this article
Save as PDF