On Mon, 2006-10-09 at 13:15 -0500, Steven F Siirila wrote:
On Sun, Oct 08, 2006 at 10:25:53PM +0300, Timo Sirainen wrote:
On Fri, 2006-10-06 at 21:00 -0500, Steven F Siirila wrote:
I am running Dovecot 1.0-rc6 along with dovecot-sieve from 2006-10-05 CVS. I am calling dovecot deliver from Postfix (main.cf):
mailbox_command = /opt/dovecot/libexec/dovecot/deliver
Upon switching to dovecot deliver, I observed two problems:
- An extraneous "From " header now appears at the top of each message delivered, e.g.:
From dovecot.deliver Fri Oct 06 19:59:57 2006 From sfs@tc.umn.edu Fri Oct 6 19:59:57 2006 Return-Path: <sfs@tc.umn.edu>
Using Postfix delivery the first of these lines does not appear. This, of course, confuses MUAs.
Don't give F flag to Postfix's pipe command.
In looking into this further, I see what you're getting at. There are commands in postfix/master.cf which specify different flags depending on what external delivery program is used. However, I haven't touched that and none of the entries that came with the standard master.cf file reference Dovecot, so I'm not sure if any of those entries even apply. What I changed to cause Dovecot delivery to be initiated was simply the mailbox_command in postfix/main.cf:
mailbox_command = /opt/dovecot/libexec/dovecot/deliver
There are two ways to deliver mail. Either with this mailbox_command, or by creating a pipe transport into master.cf and using it. You could try if the transport way works better, see http://wiki.dovecot.org/LDA
I don't know what inserts the extra From_-line with mailbox_command though. I don't think it's normal..
Anyway, I think this should also be fixed in deliver in some way. It really shouldn't allow inserting From_-lines inside headers.