• The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Issue sslmng failed in Certificate for securing mail

Azurel

Silver Pleskian
I want add ssl to my mail accounts. So I go to tools&settings -> SSL/TLS Certificates and click "change" for
"Certificate for securing mail" and set it at same value as "Certificate for securing Plesk", but get this:

Error: sslmng failed: Job for postfix.service invalid. ERROR:failed to configure postfix service: Command '['/usr/local/psa/admin/sbin/pleskrc', 'postfix', 'reload']' returned non-zero exit status 1

Whats wrong?

Onyx 17.0.17 (I upgrade to onyx today from 12.5.30 #60)
 
Any related details in /var/log/maillog and /usr/local/psa/admin/logs/panel.log ?
 
I see there no help.

/usr/local/psa/admin/logs/panel.log
no updated file

/var/log/maillog
no updated file

/usr/local/psa/var/modules/letsencrypt/logs
no updated file

From "Server-Wide Mail Settings" in plesk

Installed mail server Postfix
Installed IMAP/POP3 server Courier-IMAP
 
Last edited:
Ah, the log you mean is in /var/log/plesk/panel.log :)

Feb 27 18:44:31 mail systemd[1]: Unit postfix.service cannot be reloaded because it is inactive.

WARNING!
Some problems are found during reload service postfix(see log file: /var/log/plesk/rc_actions.log)

Continue...



stderr:
Job for postfix.service invalid.
ERROR:failed to configure postfix service: Command '['/usr/local/psa/admin/sbin/pleskrc', 'postfix', 'reload']' returned non-zero exit status 1

[2017-02-27 18:44:35] ERR [panel] sslmng failed: Job for postfix.service invalid.
ERROR:failed to configure postfix service: Command '['/usr/local/psa/admin/sbin/pleskrc', 'postfix', 'reload']' returned non-zero exit status 1
 
So, postfix service cannot be restarted for some reasons. Maybe there is an incorrect config or something else. Try to restart postfix service manually in CLI, check errors in output and system logs, try to find a reason. Also you can try to fix it with

# plesk repair mail
 
/var/log/plesk/rc_actions.log
INFO: [Mon Feb 27 18:44:31 CET 2017]: Serice: postfix, Action: status
STOP pleskrc
START pleskrc
INFO: [Mon Feb 27 18:44:31 CET 2017]: Serice: postfix, Action: reload
Trying to reload service postfix... Feb 27 07:00:16 mail systemd[1]: Unit postfix.service cannot be reloaded because it is inactive.
Feb 27 07:09:49 mail systemd[1]: Unit postfix.service cannot be reloaded because it is inactive.
Feb 27 07:59:45 mail systemd[1]: Unit postfix.service cannot be reloaded because it is inactive.
Feb 27 11:48:00 mail systemd[1]: Unit postfix.service cannot be reloaded because it is inactive.
Feb 27 18:44:31 mail systemd[1]: Unit postfix.service cannot be reloaded because it is inactive.

WARNING!
Some problems are found during reload service postfix(see log file: /var/log/plesk/rc_actions.log)

Continue...

STOP pleskrc
START pleskrc
INFO: [Mon Feb 27 18:44:33 CET 2017]: Serice: courier-imapd, Action: status
active
STOP pleskrc
START pleskrc
INFO: [Mon Feb 27 18:44:33 CET 2017]: Serice: courier-imapd, Action: reload
Trying to reload service courier-imapd... active
done
STOP pleskrc
START pleskrc
INFO: [Mon Feb 27 18:44:33 CET 2017]: Serice: courier-imaps, Action: status
active
STOP pleskrc
START pleskrc
INFO: [Mon Feb 27 18:44:33 CET 2017]: Serice: courier-imaps, Action: reload
Trying to reload service courier-imaps... active
done
STOP pleskrc
START pleskrc
INFO: [Mon Feb 27 18:44:34 CET 2017]: Serice: courier-pop3d, Action: status
active
STOP pleskrc
START pleskrc
INFO: [Mon Feb 27 18:44:34 CET 2017]: Serice: courier-pop3d, Action: reload
Trying to reload service courier-pop3d... active
done
STOP pleskrc
START pleskrc
INFO: [Mon Feb 27 18:44:34 CET 2017]: Serice: courier-pop3s, Action: status
active
STOP pleskrc
START pleskrc
INFO: [Mon Feb 27 18:44:34 CET 2017]: Serice: courier-pop3s, Action: reload
Trying to reload service courier-pop3s... active
done
STOP pleskrc
START pleskrc

########################

# postfix status
postfix/postfix-script: the Postfix mail system is running: PID: 20010

# postfix stop
postfix/postfix-script: stopping the Postfix mail system
postfix/postfix-script: waiting for the Postfix mail system to terminate

# postfix start
postfix/postfix-script: warning: not set-gid or not owner+group+world executable: /usr/sbin/postdrop
postfix/postfix-script: warning: /usr/lib/sendmail and /usr/sbin/sendmail differ
postfix/postfix-script: warning: Replace one by a symbolic link to the other
postfix/postfix-script: starting the Postfix mail system

# postfix status
postfix/postfix-script: the Postfix mail system is running: PID: 4494

########################

// https://docs.plesk.com/en-US/onyx/a...pair-utility/plesk-repair-utility-mail.74652/
# plesk repair mail
Repairing the mail server configuration

Reconfigure all domains and mailboxes? [Y/n] y
Reconfiguring all domains and mailboxes ......................... [OK]

Error messages: 0; Warnings: 0; Errors resolved: 0

########################

After plesk repair mail now said postfix status

# postfix status
postfix/postfix-script: the Postfix mail system is not running

########################

So after postfix is not running the "Certificate for securing mail" is working.
Information: The Lets Encrypt example.com certificate was successfully set to secure the mail server.
 
Back
Top