[Dovecot] Possible to log IMAP connections to MySQL Table?
Timo Sirainen
tss at iki.fi
Wed Dec 24 19:52:23 EET 2008
On Dec 24, 2008, at 7:47 PM, Corey Shaw wrote:
> I've started going down the path of the mail_executable script, but
> I've run into a snag. I have a script that works fine and inserts
> rows into the database as wanted, but whenever I restart the Dovecot
> service it inserts a row into the database with the USER variable
> set to "dump-capability" using the IMAP mail_executable. This
> doesn't happen with the pop3 mail_executable.
>
>
> Below is my configuration for Dovecot 1.1.7. I'm assuming that the
> mail_executable(default) value is being run whenever Dovecot
> restarts. How do I prevent this from happening? Can I set the
> default to an empty string?
How about you just add a if ! [ $USER = dump-capability ]; then do
your stuff; fi
You could prevent Dovecot from calling it by manually setting
imap_capability setting, but I don't really recommend it since you'll
probably forget to update it when upgrading to a new Dovecot version..
More information about the dovecot
mailing list