Hello, I wish to get "Fetchmail Wake" works in my environment. This plugin send SIGUSR1 to fetchmail so it wakes up when mail client grabs mail. For the moment "Fetchmail Wake" is executed by mail_uid (defined in dovecot.conf) which is not enough to send signal to fetchmail daemon (and access to fetchmail.pidfile). Thank you!
On Thu, 2009-05-28 at 17:14 +0200, Fabien wrote:> Hello, > > I wish to get "Fetchmail Wake" works in my environment. This plugin send > SIGUSR1 to fetchmail so it wakes up when mail client grabs mail. > > For the moment "Fetchmail Wake" is executed by mail_uid (defined in > dovecot.conf) which is not enough to send signal to fetchmail daemon > (and access to fetchmail.pidfile).Maybe have your plugin execute a setuid-binary that sends the signal? Or something else. In any case no, a plugin can't have root privileges. -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 197 bytes Desc: This is a digitally signed message part URL: <http://dovecot.org/pipermail/dovecot/attachments/20090528/1971ecc6/attachment-0002.bin>
Timo Sirainen a ?crit :> On Thu, 2009-05-28 at 17:14 +0200, Fabien wrote: > >> Hello, >> >> I wish to get "Fetchmail Wake" works in my environment. This plugin send >> SIGUSR1 to fetchmail so it wakes up when mail client grabs mail. >> >> For the moment "Fetchmail Wake" is executed by mail_uid (defined in >> dovecot.conf) which is not enough to send signal to fetchmail daemon >> (and access to fetchmail.pidfile). >> > > Maybe have your plugin execute a setuid-binary that sends the signal? Or > something else. In any case no, a plugin can't have root privileges. > >Ok, thank you. Then may be I'll use fetchmail user for both Dovecot and fetchmail.