• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • Support for BIND DNS has been removed from Plesk for Windows due to security and maintenance risks.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS.

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