smoreno
By:
smoreno

What's wrong with postfix config?

September 2, 2014 5.2k views

I'm cofiguring a postfix/dovecot mailserver. I'm using default dovecot certificate for testing. but when i try to restart service integrity fail. But I'm not sure what's wrong exactly.
This is the postfix output:

/usr/lib/postfix/post-install: Error: "no smtpdtlscertfile=/etc/dovecot/dovecot.pem smtpdtlskeyfile=/etc/dovecot/dovecot.pem smtpdusetls=yes smtpdsasltype = dovecot smtpdsaslpath = private/auth smtpdsaslauth_enable = yes" should be "no" or an absolute path name.
postfix/postfix-script: warning: unable to create missing queue directories
postfix/postfix-script: fatal: Postfix integrity check failed!

I followed this DigitalOcean guide

Thanks in advance!

2 comments
  • This is something of a wild guess, but based on the error message, it looks like the editor that edited the config file used the wrong line endings, resulting in postfix reading that whole string as a configuration parameter instead of seeing the line ending and moving on to the next directive. The first thing I would check is that each of those directives is on a single line, and the editor I’m using has proper line endings set.

  • OMG! Thanks for your response.
    I edited postfix config file with nano. But it seems the error was a blank space beginning the line
    Many thanks!

1 Answer

This question was answered by @larry:

This is something of a wild guess, but based on the error message, it looks like the editor that edited the config file used the wrong line endings, resulting in postfix reading that whole string as a configuration parameter instead of seeing the line ending and moving on to the next directive. The first thing I would check is that each of those directives is on a single line, and the editor I’m using has proper line endings set.

You can see the comment here.

Have another answer? Share your knowledge.