Fatal error (bad field count) while configuring Postfix

13,528

Problem solved by using correct spacing like so:

smtps     inet  n       -       -       -       -       smtpd
  -o syslog_name=postfix/smtps # <<< line 23
  -o smtpd_tls_wrappermode=yes
  -o smtpd_sasl_auth_enable=yes
  -o smtpd_client_restrictions=permit_sasl_authenticated,reject
Share:
13,528

Related videos on Youtube

narzero
Author by

narzero

Updated on September 18, 2022

Comments

  • narzero
    narzero almost 2 years

    I'm using this tutorial to configure a mail server using postfix, dovecot and mysql.

    While configuring Postfix I have to uncomment the following lines and then restart Postfix with service postfix restart. I keep getting the following error when restarting:

    root@server-1:~# service postfix restart
     * Stopping Postfix Mail Transport Agent postfix
    /usr/sbin/postconf: fatal: file /etc/postfix/master.cf: line 23: bad field count
    postfix/postfix-script: fatal: cannot execute /usr/sbin/postconf!
       ...fail!
    

    Here's what part of /etc/postfix/master.cf looks like:

    smtps     inet  n       -       -       -       -       smtpd
    -o syslog_name=postfix/smtps # <<< line 23
    -o smtpd_tls_wrappermode=yes
    -o smtpd_sasl_auth_enable=yes
    -o smtpd_client_restrictions=permit_sasl_authenticated,reject
    

    What's going wrong and how do I solve this?

  • Ryan H.
    Ryan H. over 7 years
    Yes, looks like at least 2 spaces are needed for the indentation. Once space didn't work for me.