• We value your experience with Plesk during 2026
    Please help us understand which Plesk features made your work easier this year, what is still missing and how AI should help you in Plesk ?
    Take this short 5-minutes survey. Your answers go straight into the Plesk roadmap for 2027.

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