• Debian 11 is approaching its end-of-life (vendor EOL date - August 31, 2026). Plesk Obsidian 18.0.80 will be the last release to support it.
    If you are running Plesk Obsidian on Debian 11, we recommend you upgrade those servers to Debian 12 using our dist-upgrade tool.
  • We plan to deprecate and remove the support for XML RPC protocol versions earlier than 1.6.9.1 in Plesk Obsidian 18.0.82. We strongly recommend that you update all existing integrations using earlier versions of the XML RPC protocol to comply with the version 1.6.9.1 specification.

Resolved Enabling server wide smarthost via CLI does not show in UI

websavers

Regular Pleskian
Server operating system version
AlmaLinux 8.10
Plesk version and microupdate number
18.0.79 Update #2
STR:
  1. Run: plesk sbin mailmng-server --enable-smarthost --host test.mydomain.com --port 25
  2. You'll see that it's been added in /etc/postfix/main.cf and works
  3. However when you visit the Plesk UI for this under Tools & Settings > Mail > Smarthost, you'll see that it does not appear enabled there
  4. If you enable it via UI, nothing in the config changes, but the UI sees it enabled now
Expected outcome:

Enabling the smarthost via CLI would reflect that change in the GUI.

Reproduced with Plesk Obsidian 18.0.79 Update #2 on AlmaLinux 8.10. Also occurred on 18.0.78.
 
Hello,

It is expected: you should use `plesk bin mainserver` to configure server-wide smarhost in Plesk. Utilties in `plesk sbin` are usually helpers, and they don't do all work, for example `mailmng-server --enable-smarthost` conigures smarhost in postfix but don't register it in Plesk.
 
@mizar Thank you! The correct CLI command for this (when there is no auth) is then:
plesk bin mailserver --configure-smarthost -smarthost-host $HOST -smarthost-port $PORT -smarthost-user ''
plesk bin mailserver --enable-smarthost

I have run this and confirmed it works as anticipated. Thanks again!
 
Back
Top