On Mon, Oct 09, 2006 at 09:30:09PM +0300, Timo Sirainen wrote:
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
Using mailbox_command causes an extra (badly-formed) "From " line as described previously. I can't see how anyone could be using this successfully with Postfix (I'm running version 2.3.3).
As you suggested, I tried the alternate approach of using the pipe transport:
- In postfix/main.cf
- Commented-out "mailbox_command"
- Added "mailbox_transport = dovecot"
- Added "dovecot_destination_recipient_limit = 1"
- In postfix/master.cf I added: # Dovecot LDA dovecot unix - n n - - pipe flags=DRhu user=dovecot argv=/opt/dovecot/libexec/dovecot/deliver -d ${recipient}
After running "postfix reload", I got this error on the console: deliver(syst0003@diamond.tc.umn.edu): net_connect(/var/opt/dovecot/run/dovecot/auth-master) failed: Permission denied
As such, I then added this to the dovecot.conf auth{} section: socket listen { master { path = /var/opt/dovecot/run/dovecot/auth-master mode = 0600 user = dovecot group = dovecot } }
After doing this, Postfix is still unable to deliver, and the mailq command shows my attempts there with (temporary failure). I see no error messages anywhere that would help me determine what's going on.
Can anyone who is running Postfix+Dovecot LDA give me some pointers here?
I don't know what inserts the extra From_-line with mailbox_command though. I don't think it's normal..
I assume that you believe Postfix is doing it, right?
Anyway, I think this should also be fixed in deliver in some way. It really shouldn't allow inserting From_-lines inside headers.
I'm confused. I thought you just made changes to the Dovecot deliver program to SET the FROM address to place in "From " headers that it adds...?
--
Steven F. Siirila Office: Lind Hall, Room 130B Internet Services E-mail: sfs@umn.edu Office of Information Technology Voice: (612) 626-0244 University of Minnesota Fax: (612) 626-7593