default main.cf.tls causes syslog warnings

Bug #207526 reported by Emil Sit
8
Affects Status Importance Assigned to Milestone
postfix (Ubuntu)
Fix Released
Medium
LaMont Jones

Bug Description

Binary package hint: postfix

The default postfix conf in Debian git and also in postfix_2.5.1-1ubuntu1.diff.gz includes the lines:

  smtpd_tls_session_cache_database = btree:${queue_directory}/smtpd_scache
  smtp_tls_session_cache_database = btree:${queue_directory}/smtp_scache

Since Postfix 2.5, this causes the following errors in syslog:

Mar 26 23:08:13 yyy postfix/tlsmgr[8508]: warning: request to update table btree:/var/spool/postfix/smtpd_scache in non-postfix directory /var/spool/postfix
Mar 26 23:08:13 yyy postfix/tlsmgr[8508]: warning: redirecting the request to postfix-owned data_directory /var/lib/postfix
Mar 26 23:08:13 yyy postfix/tlsmgr[8508]: warning: request to update table btree:/var/spool/postfix/smtp_scache in non-postfix directory /var/spool/postfix
Mar 26 23:08:13 yyy postfix/tlsmgr[8508]: warning: redirecting the request to postfix-owned data_directory /var/lib/postfix

This is an incompatibility noted at http://www.postfix.org/TLS_README.html#client_tls_cache (and correspondingly for server side cache) and http://high5.net/mirrors/postfix-release/official/postfix-2.5.1.RELEASE_NOTES

Simply patching s/queue_directory/data_directory should fix this bug.

I'm running Hardy with:
$ apt-cache policy postfix
postfix:
  Installed: 2.5.1-1ubuntu1
  Candidate: 2.5.1-1ubuntu1
  Version table:
 *** 2.5.1-1ubuntu1 0
        500 http://us.archive.ubuntu.com hardy/main Packages
        100 /var/lib/dpkg/status

Attached is a patch against the git upstream.

Tags: patch
Revision history for this message
Emil Sit (emilsit) wrote :
Revision history for this message
Emil Sit (emilsit) wrote :

I should note that I haven't actually tested that the patch works when built into a package, etc. But making those changes in my /etc/postfix/main.cf got rid of the error message.

Revision history for this message
Scott Kitterman (kitterman) wrote :

Wasn't there also a patch that made /var/spool/postfix/ a postfix owned data directory?

Revision history for this message
Emil Sit (emilsit) wrote :

That'd work too, I suppose. I didn't see any bug that looked like this in launchpad but I didn't check the Debian BTS. A 30s glance at that now also doesn't reveal anything obvious. I think changing the default location is cleaner and is what postfix is doing anyway.

Changed in postfix:
importance: Undecided → Medium
status: New → Confirmed
Revision history for this message
Scott Kitterman (kitterman) wrote :

Debian and Ubuntu postfix maintainer are the same person. I've suggested he look into fixing this.

Revision history for this message
LaMont Jones (lamont) wrote :

Lacking a /var/cache/postfix directory, I suppose this belongs in /var/lib/postfix. It certainly doesn't belong in /var/spool/postfix.

Changed in postfix:
assignee: nobody → lamont
status: Confirmed → Fix Committed
Revision history for this message
LaMont Jones (lamont) wrote :

Fixed in 2.5.1-2. Please sync from debian.

postfix (2.5.1-2) unstable; urgency=low

  [Michael Vogt]

  * postfix-doc: run postconf only if there is a main.cf available. LP: #203849

  [LaMont Jones]

  * main.cf.tls: put cache files in the right directory. LP: #207526

  [cobaco (aka Bart Cornelis)]

  * l10n: new nl.po. Closes: #467538

 -- LaMont Jones <email address hidden> Wed, 02 Apr 2008 07:15:03 -0600

Revision history for this message
Martin Pitt (pitti) wrote :

[Updating] postfix (2.5.1-1ubuntu1 [Ubuntu] < 2.5.1-2 [Debian])
 * Trying to add postfix...
  - <postfix_2.5.1.orig.tar.gz: already in distro - downloading from librarian>
  - <postfix_2.5.1-2.dsc: downloading from http://ftp.debian.org/debian/>
  - <postfix_2.5.1-2.diff.gz: downloading from http://ftp.debian.org/debian/>
I: postfix [main] -> postfix_2.5.1-1ubuntu1 [main].
I: postfix [main] -> postfix-ldap_2.5.1-1ubuntu1 [main].
I: postfix [main] -> postfix-cdb_2.5.1-1ubuntu1 [main].
I: postfix [main] -> postfix-pcre_2.5.1-1ubuntu1 [main].
I: postfix [main] -> postfix-mysql_2.5.1-1ubuntu1 [main].
I: postfix [main] -> postfix-pgsql_2.5.1-1ubuntu1 [main].
I: postfix [main] -> postfix-dev_2.5.1-1ubuntu1 [main].
I: postfix [main] -> postfix-doc_2.5.1-1ubuntu1 [main].

Changed in postfix:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.