• 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

Resolved Mail broken /usr/sbin/postconf: invalid option -- 'x'

BobClaas

Basic Pleskian
Plesk mail server is giving the following error:

Code:
mailmng-server failed: Fatal error: plesk::mail::postfix::PostfixConfigurationError(/usr/sbin/postconf: invalid option -- 'x' /usr/sbin/postconf: fatal: usage: /usr/sbin/postconf [-a (server SASL types)] [-A (client SASL types)] [-b (bounce templates)] [-c config_dir] [-d (defaults)] [-e (edit)] [-# (comment-out)] [-h (no names)] [-l (lock types)] [-m (map types)] [-n (non-defaults)] [-v] [name...] )

Type    PleskUtilException
Message    mailmng-server failed: Fatal error: plesk::mail::postfix::PostfixConfigurationError(/usr/sbin/postconf: invalid option -- 'x' /usr/sbin/postconf: fatal: usage: /usr/sbin/postconf [-a (server SASL types)] [-A (client SASL types)] [-b (bounce templates)] [-c config_dir] [-d (defaults)] [-e (edit)] [-# (comment-out)] [-h (no names)] [-l (lock types)] [-m (map types)] [-n (non-defaults)] [-v] [name...] )
File    Agent.php
Line    228


For testing:
#/usr/local/psa/admin/bin/mailmng-server --get-mailbox-size-limit

Code:
Fatal error: plesk::mail::postfix::PostfixConfigurationError(/usr/sbin/postconf: invalid option -- 'x'
/usr/sbin/postconf: fatal: usage: /usr/sbin/postconf [-a (server SASL types)] [-A (client SASL types)] [-b (bounce templates)] [-c config_dir] [-d (defaults)] [-e (edit)] [-# (comment-out)] [-h (no names)] [-l (lock types)] [-m (map types)] [-n (non-defaults)] [-v] [name...]
)

#plesk repair mail

Code:
Repairing the mail server configuration

  Reconfigure all domains and mailboxes? [Y/n] y
    Reconfiguring all domains and mailboxes ......................... [2018-05-12 13:50:02.584] ERR [util_exec] proc_close() failed ['/usr/local/psa/admin/bin/mchk'] with exit code [1]
[FAILED]
    - mchk failed: ==> Checking for: mailsrv_conf_init... fail

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


My production mail server is broken atm.
 
Take into consider to tell the community which OS/Plesk Version do you have and are there other error messages in /var/log/plesk/panel.log or /var/log/maillog.
This sounds like a broken installation. Did you update your system before?
if so you can try
Code:
# plesk installer --select-release-current --reinstall-patch --upgrade-installed-components

otherwise since it is your production mail service your best bet would be to contact Plesk support directly so they can investigate for you How to get technical support for Plesk? & How to get support directly from Plesk?
 
Last edited:
Back
Top