[Dovecot] Using deliver with postfix

Rich Winkel rich at math.missouri.edu
Sat Sep 20 00:55:27 EEST 2008


Thanks for your help mouss!

On Fri, Sep 19, 2008 at 10:22:40AM +0200, mouss wrote:
> Rich Winkel wrote:
> >Hi, I'm trying to set up dovecot 1.1.2 and postfix 2.5.4 on freebsd 7.0.
> >I'm getting permissions problems on auth-master and I'm not sure of the
> >correct settings to use.
> >
> >In postfix's main.cf I have
> >mailbox_command=/usr/local/libexec/dovecot/deliver -d $USER
> >
> >In dovecot.conf I have:
> >socket listen {
> >   master {
> >         path = /var/run/dovecot/auth-master
> >         mode = 0660
> >         user = dovecot
> >         group = postfix
> >   }
> leave the master as it was and add a client for postfix:
>     client {
>       path = /var/spool/postfix/private/dovecot
>       mode = 0660
>       user = postfix
>       group = postfix
>     }

I'm confused.  So deliver doesn't need access to the master socket?
Because it uses the master (not the client) in the default setup ...

Also how does this differ in terms of permissions from my current
setup?  In both cases you would have group postfix rw perms on the
socket.  And looking at the docs, I'm doubly confused!  It says mailbox_command
runs with the userid of the recipient.  So how is it supposed to access
this socket in any case?  I take it I don't want to give 666 perms to
the socket ...

Sorry for my ignorance ...

Rich



More information about the dovecot mailing list