5

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?

8

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
1
  • Yes, looks like at least 2 spaces are needed for the indentation. Once space didn't work for me. – Ryan H. Dec 28 '16 at 19:36

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.