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: EOF
from "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"
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 Sun Jan 17 2016, Dave Abrahams
on Sun Jan 17 2016, "A. Schulze"
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?
Taking a wild guess, this seems to work:
service anvil { executable = /usr/bin/True process_min_avail = 0 unix_listener anvil-auth-penalty { } unix_listener anvil { } }
I have no idea which parts of it are necessary and which are incidental, though. Hopefully, none of it is actively harmful.
On 17 Jan 2016, at 23:19, Dave Abrahams dave@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?
on Mon Jan 18 2016, Timo Sirainen
On 17 Jan 2016, at 23:19, Dave Abrahams dave@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?
Thanks; that's wonderful! You think of everything :-)
participants (3)
-
A. Schulze
-
Dave Abrahams
-
Timo Sirainen