• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Forwarded to devs Custom mailservers (clientConfig) defined in Panel.ini not shown/used

Kaspar

API expert
Plesk Guru
Username:

TITLE


Custom mailservers (clientConfig) defined in Panel.ini not shown/used

PRODUCT, VERSION, OPERATING SYSTEM, ARCHITECTURE

Plesk 18.0.59
Ubuntu 22.04

PROBLEM DESCRIPTION

Any custom incoming and outgoing mail servers for the email configuration defined in the panel.ini are not used/shown.

This knowledgebase article describes how to define custom incoming and outgoing mail servers for the email configuration in the panel.ini. For example if you want to use the server hostname instead of the domain name as the incoming and outgoing mail servers, the following lines can be added to the panel.ini file:
Code:
[mail]
clientConfig.incomingServer="<hostname>"
clientConfig.outgoingServer="<hostname>"

However, this does not change the configuration used/shown

STEPS TO REPRODUCE

1) In Plesk setup a domain and create an email account within that domain.
2) When created, navigate to Email Addresses of the domain to have the full list of email addresses. Click on the i icon in the right side of the listed email address.
3) This will open the email configuration drawer, and click on the "Manual setup" option.
4) Notice how below Incoming mail server and Outgoing mail server the domain name is listed.

5) Now, add the following lines to the panel.ini file.
Code:
[mail]
clientConfig.incomingServer="<hostname>"
clientConfig.outgoingServer="<hostname>"
6) Navigate to Email Addresses of the domain to have the full list of email addresses. Click on the i icon in the right side of the listed email address and click on the "Manual setup" option.
7) Notice how the domain name is stil listed instead of the hostname, as configured in step 5, below Incoming mail server and Outgoing mail server.

ACTUAL RESULT

Any custom incoming and outgoing mail servers for the email configuration in the panel.ini settings are not used/shown.

EXPECTED RESULT

The custom incoming and outgoing mail servers are actually used and shown.

ANY ADDITIONAL INFORMATION

(DID NOT ANSWER QUESTION)

YOUR EXPECTATIONS FROM PLESK SERVICE TEAM

Confirm bug
 
Response from developer:

The mentioned options take effect for new domains. Set it beforehand and then newly created domains has updated info in "Manual setup"

Code:
[mail]
clientConfig.incomingServer="mail.<domain>"
clientConfig.outgoingServer="mail.<domain>"

For existing domains these panel.ini options do not apply immediately. It is required to reset DNS zone for domain at Domains > Example Domain > Hosting & DNS > DNS > click "Reset to default". This will apply the new SRV records present on it.

Warning! Resetting DNS zones will also remove any custom configuration in the DNS zones (specific SPF records, subdomains to external servers, etc.)

An alternative to resetting DNS configuration is to go through each DNS zone and update SRV records to set required value.
 
Back
Top