• We value your experience with Plesk during 2024
    Plesk strives to perform even better in 2025. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2024.
    Please take this short survey:

    https://pt-research.typeform.com/to/AmZvSXkx

  • We are developing a new feature in Plesk that will help you promote your websites or business on social media. We want to conduct a one-hour online UX test to present the prototype and collect feedback. If you are interested in the feature, please book a meeting via this link.
    Thank you in advance!
  • 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.

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