[Dovecot] verbose_proctitle not working with post-login
Frank Elsner
frank at moltke28.B.Shuttle.DE
Fri Jan 9 22:26:06 EET 2009
On Thu, 08 Jan 2009 15:41:17 -0500 Timo Sirainen wrote:
> On Wed, 2008-12-24 at 16:25 +0100, Frank Elsner wrote:
> > Happy Xmas,
> >
> > when using a post-login procedure the "verbose_proctitle = yes" has no effect.
> >
> > If it is feature
> > then
> > please explain
> > else
> > please fix the bug
> > fi
>
> I suppose you mean you modified mail_executable to point to your own
> script? In that case it's really a bug in your script. Or I suppose also
> a bug in Dovecot's documentation. Updated:
>
> http://wiki.dovecot.org/PostLoginScripting
>
> Note the added $* in
>
> exec /usr/local/libexec/dovecot/imap $*
Thanks, now it works as desired.
But ... In http://wiki.dovecot.org/PostLoginScripting
the example for "Last-login tracking" says
"Finally execute the imap/pop3 binary. If you use both, you'll need two scripts."
Is this a must?
My dovecot.conf currently contains
mail_executable = /usr/dovecot/libexec/dovecot/post-login imap
and
mail_executable = /usr/dovecot/libexec/dovecot/post-login pop3
And "post-login" reads
| #!/bin/bash
|
| PROTO=$1
|
| # Set QUOTA_RULE from exim's quota table
| ...
| ...
| export QUOTA_RULE
|
| exec -a "$PROTO [$USER $IP]" /usr/dovecot/libexec/dovecot/$PROTO
This works.
"ps -ef" shows protocol, username and ip as if calling pop3/imap directly.
--Frank Elsner
More information about the dovecot
mailing list