Symptoms
Going to Domains > example.com > Mail Accounts > Click on > Configure Email Client window shows Incoming mail server and Outgoing mail server values are set with the domain name instead of the full mail server name:
Cause
This is a Plesk bug with ID #PPPM-4687 which will be fixed in future Plesk updates.
Note: Subscribe to this article to get notified once a fix will become available
Resolution
As a workaround:
Click on a section to expand
Plesk Obsidian
-
Go to Extensions > My Extensions > Panel.ini Editor > Open > Editor tab > Configure the incoming and outgoing mail server names > Click Save to apply the changes:
Note: The syntax
<domain>
will show the domain name. Alternatively, the syntax<hostname>
can be used to use the Plesk hostname. For more details, click here.[mail]
clientConfig.incomingServer="mail.<domain>"
clientConfig.outgoingServer="smtp.<domain>"
Plesk Onyx for Linux
All information displayed on the Configure Email Client window such as Mail server username, Incoming mail server, Outgoing mail server parameters can be found in the following paths:
In Plesk for Linux: /usr/local/psa/admin/application/smb/views/scripts/email-address/configuration.phtml
-
Connect to the server via SSH
-
Back up the Configure Email Client template:
# cp -a /usr/local/psa/admin/application/smb/views/scripts/email-address/configuration.phtml{,.bkp}
-
Run the following commands to configure the incoming as
mail.<domain>
and the outgoing assmtp.<domain>
:# newIncoming=”‘mail.’.$this->incomingServer”; sed -i “s/$this->incomingServer/$newIncoming/g” /usr/local/psa/admin/application/smb/views/scripts/email-address/configuration.phtml
# newOutgoing=”‘smtp.’.$this->outgoingServer”; sed -i “s/$this->outgoingServer/$newOutgoing/g” /usr/local/psa/admin/application/smb/views/scripts/email-address/configuration.phtml
It will change Incoming and Outgoing mail servers as follows:
Plesk Onyx for Windows
All information displayed on the Configure Email Client window such as Mail server username, Incoming mail server, Outgoing mail server parameters can be found in the following paths:
In Plesk for Windows: %plesk_dir%adminapplicationsmbviewsscriptsemail-addressconfiguration.phtml
-
Connect to the server via RDP
-
Switch to PowerShell:
C:> powershell
-
Back up the Configure Email Client template:
PS C:> $path=”$env:plesk_diradminapplicationsmbviewsscriptsemail-address”; Copy-Item $pathconfiguration.phtml -Destination $pathconfiguration.phtml.backup
-
Modify the file
$env:plesk_diradminapplicationsmbviewsscriptsemail-addressconfiguration.phtml
as needed in any editor (i.e. NotePad in Windows):For example, edit
$this->incomingServer
and$this->outgoingServer
values:<?php
// Copyright 1999-2017. Plesk International GmbH. All rights reserved.
?>
<?php echo $this->lmsg('fieldUsername'); ?>: <?php echo $this->escape($this->userName); ?><br>
<?php echo $this->…