Applicable to:
- Plesk Onyx for Linux
- Plesk Onyx for Windows
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
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
-
In Plesk for Windows:
%plesk_dir%\admin\application\smb\views\scripts\email-address\configuration.phtml
As a workaround:
Click on a section to expand
-
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:
-
Connect to the server via RDP
-
Switch to PowerShell:
C:\> powershell
-
Back up the Configure Email Client template:
PS C:\> $path="$env:plesk_dir\admin\application\smb\views\scripts\email-address"; Copy-Item $path\configuration.phtml -Destination $path\configuration.phtml.backup
-
Modify the file
$env:plesk_dir\admin\application\smb\views\scripts\email-address\configuration.phtml
as needed in any editor (i.e. NotePad in Windows):For example, edit
$this->incomingServer
and$this->outgoingServer
values:CONFIG_TEXT: <?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->lmsg('fieldIncomingServer'); ?>: <?php echo $this->escape($this->incomingServer); ?><br>
<?php echo $this->lmsg('fieldOutgoingServer'); ?>: <?php echo $this->escape($this->outgoingServer); ?><?php echo ($this-
>hasSmtpAuth) ? (' (' . $this->lmsg('smtpAuth') . ')') : ''; ?><br>
...To:
CONFIG_TEXT: <?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->lmsg('fieldIncomingServer'); ?>: <?php echo $this->escape('mail.'.$this->incomingServer); ?><br>
<?php echo $this->lmsg('fieldOutgoingServer'); ?>: <?php echo $this->escape('smtp.'.$this->outgoingServer); ?><?php echo ($this-
>hasSmtpAuth) ? (' (' . $this->lmsg('smtpAuth') . ')') : ''; ?><br>
...It will change Incoming and Outgoing mail servers as follows:
Comments
9 comments
When will PPPM-468 be fixed?
@b_p,
Hello! The bug should be fixed until the end of September 2017.
Check the release notes for announcements:
https://docs.plesk.com/release-notes/onyx/change-log/
It should be 12345 or mail.mydomain.com ? (Incoming mail server)
@Chorch JB, Hi! Instead of 12345 specify the required mail server hostname.
this bug is still in Plesk Onyx 17.8 in May 2018!
@Christopher, unfortunately, the issue persists on Plesk 17.8 as well.
Development Team was concentrated on more critical bugs and new features implementation.
After this bug will be fixed, the article will be updated.
Issue exists for Linux as well.
@1and1 Internet
The article was updated.
The configuration.phtml file does not exist at that location on my server.
Please sign in to leave a comment.