[Dovecot] Possible to log IMAP connections to MySQL Table?

Corey Shaw cshaw at q90.com
Wed Dec 24 20:05:20 EET 2008


I just barely finished adding that if statement before you replied.  You're right though.  Best not to play with the default for that.  Thanks. 



_____________________ 
Corey Shaw 
Q90 Corporation 
Technology Specialist 
O. 801.491.0705 (x. 157) 
F. 801.491.8774 
www.q90.com 


----- Original Message ----- 
From: "Timo Sirainen" <tss at iki.fi> 
To: "Dovecot Mailing List" <dovecot at dovecot.org> 
Sent: Wednesday, December 24, 2008 10:52:23 AM GMT -07:00 US/Canada Mountain 
Subject: Re: [Dovecot] Possible to log IMAP connections to MySQL Table? 

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