postfix main.cf has a "killer" line

Bug #12506 reported by Michael Hipp
6
Affects Status Importance Assigned to Milestone
postfix (Ubuntu)
Fix Released
Low
LaMont Jones

Bug Description

/etc/postfix/main.cf has a line that is a troublemaker and needs to be moved to
a more appropriate spot. Toward the top there is this:

   # Uncomment the next line to use procmail for delivery
   #mailbox_command = procmail -a "$EXTENSION"

But if you uncomment that line it doesn't work because toward the bottom there
is this line:

   mailbox_command =

Which cancels out anything done with the first line. (i.e. it's a "killer" line)

Possible solution: move the second line nearer the first line so the whole
section looks something like this:

   # This causes postfix to do the delivery directly with no help from procmail or
   # other delivery agent
   mailbox_command =
   # Uncomment the next line to use procmail for delivery
   #mailbox_command = procmail -a "$EXTENSION"

(Side note: might also want to add '-t' to the procmail line as it causes it to
fail more gracefully.)

Revision history for this message
Michael Hipp (michael-hipp) wrote :

Created an attachment (id=1259)
My unmodified main.cf file

The unmodified main.cf that comes with postfix (Warty) for reference.

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

postfix 2.1.5-6ubuntu1 will not add the 'mailbox_command = ' line on installs.
Not much that can be done to existing machines without either asking questions
or violating policy, however.

Revision history for this message
Michael Hipp (michael-hipp) wrote :

Sounds like it is fixed for new versions. Thank you. Marking as FIXED.

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.