Hi, I'm using dovecot as a local mail store on my laptop using preauth tunneling. It turns out I almost don't even need to start dovecot at all; the only reason it needs to be running is so that FTS indexing can be invoked. And because I don't want it to run any services, I can run it as an unprivileged user, so long as I turn them all off: # We don't want to serve any protocols, so we don't bind to any ports. # We can run everything as me. protocols = default_login_user = dave default_internal_user = dave The only thing is, I keep getting these in var/log/mail.log: anvil: Fatal: chroot(/Users/dave/brew/var/run/dovecot/empty) failed: Operation not permitted master: Error: service(anvil): command startup failed, throttling for 60 secs auth: Error: read(anvil-auth-penalty) failed: EOF Any suggestions? TIA, Dave
Dave Abrahams:> The only thing is, I keep getting these in var/log/mail.log: > > anvil: Fatal: chroot(/Users/dave/brew/var/run/dovecot/empty) > failed: Operation not permitted > master: Error: service(anvil): command startup failed, throttling > for 60 secs > auth: Error: read(anvil-auth-penalty) failed: EOFfrom "doveconf -a | less" service anvil { process_min_avail = 1 } try " = 0" ... you also may play with other settings for services that also do not run on startup Andreas
on Sun Jan 17 2016, "A. Schulze" <sca-AT-andreasschulze.de> wrote:> Dave Abrahams: > >> The only thing is, I keep getting these in var/log/mail.log: >> >> anvil: Fatal: chroot(/Users/dave/brew/var/run/dovecot/empty) >> failed: Operation not permitted >> master: Error: service(anvil): command startup failed, throttling >> for 60 secs >> auth: Error: read(anvil-auth-penalty) failed: EOF > > from "doveconf -a | less" > > service anvil { > process_min_avail = 1 > } > > try " = 0" ...Adding this to dovecot.conf doesn't seem to change anything: service anvil { process_min_avail = 0 } Is there something else I need to do?
On 17 Jan 2016, at 23:19, Dave Abrahams <dave at boostpro.com> wrote:> > Hi, > > I'm using dovecot as a local mail store on my laptop using preauth > tunneling. It turns out I almost don't even need to start dovecot at > all; the only reason it needs to be running is so that FTS indexing can > be invoked. And because I don't want it to run any services, I can run > it as an unprivileged user, so long as I turn them all off: > > # We don't want to serve any protocols, so we don't bind to any ports. > # We can run everything as me. > protocols = > default_login_user = dave > default_internal_user = dave > > The only thing is, I keep getting these in var/log/mail.log: > > anvil: Fatal: chroot(/Users/dave/brew/var/run/dovecot/empty) failed: Operation not permitted > master: Error: service(anvil): command startup failed, throttling for 60 secs > auth: Error: read(anvil-auth-penalty) failed: EOF > > Any suggestions?http://wiki2.dovecot.org/HowTo/Rootless
on Mon Jan 18 2016, Timo Sirainen <tss-AT-iki.fi> wrote:> On 17 Jan 2016, at 23:19, Dave Abrahams <dave at boostpro.com> wrote: >> >> Hi, >> >> I'm using dovecot as a local mail store on my laptop using preauth >> tunneling. It turns out I almost don't even need to start dovecot at > >> all; the only reason it needs to be running is so that FTS indexing can >> be invoked. And because I don't want it to run any services, I can run >> it as an unprivileged user, so long as I turn them all off: >> >> # We don't want to serve any protocols, so we don't bind to any ports. >> # We can run everything as me. >> protocols = >> default_login_user = dave >> default_internal_user = dave >> >> The only thing is, I keep getting these in var/log/mail.log: >> >> anvil: Fatal: chroot(/Users/dave/brew/var/run/dovecot/empty) failed: Operation not permitted >> master: Error: service(anvil): command startup failed, throttling for 60 secs >> auth: Error: read(anvil-auth-penalty) failed: EOF >> >> Any suggestions? > > http://wiki2.dovecot.org/HowTo/RootlessThanks; that's wonderful! You think of everything :-)