[Dovecot] Enable mail logger plugin

Steffen Kaiser skdovecot at smail.inf.fh-brs.de
Thu Feb 20 12:41:25 UTC 2014


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Thu, 20 Feb 2014, Alexandre Ellert wrote:

> From: Alexandre Ellert <aellert at numeezy.com>
> 
>> @Alexandre: You've removed the "$mail_plugins" in the IMAP section as Peter already pointed out?
>
> I'm not sure to fully understand how mail_plugins directive works.

consider it as a variable like in the shell, PHP or perl....

> Please correct, if I'm wrong :
>
> Global mail_plugins lists common plugin used by all protocol :

global mail_plugins just assigns a variable, which is used as default, if 
the setting is missing.

>> mail_plugins = quota mail_log notify
> Later, within each protocol declaration, I need to reference $mail_plugins variable (i.e. mail_plugins = $mail_plugins …)

yes, if you want to include the previously defined value.

> Each protocol can use its own mail_plugins with an override :
>> protocol imap {
>>  mail_max_userip_connections = 80
>>  mail_plugins = quota imap_quota antispam
>> }
> In that case mail_log notify are not enabled for protocol imap.

Yep.

> So, I have two options :

> 1. List all mail_plugins explicitly for protocol imap, like this :
> 2. Use $mail_plugins variable to include global mail_plugins into protocol imap :

Yes, whichever suits your particular need more.

- -- 
Steffen Kaiser
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)

iQEVAwUBUwX393D1/YhP6VMHAQKIDAf9HeombYlYE3a35cpjOy7dE/behrF4oLpH
9rDIx7HqfTruiMuT1jkQxcb/aXvWYgrardxrVzS+AOGE5ctU3gbYnqHZWH/ldHD0
jJwfJVpFSM5LuxEWG9djgKZegcYjTwIUIhJYAdIfXdKjVUCpJcSgzaWq2Qp96a28
4Kl6T8wQjWmUSnryPtlC3Ge7rTtvjf46wtzYs9sBWSCyjX/jAGsQG/i5dyzNL4J6
bOKaeXSZz29+MOo67TT0dYR02hsRgHx+4AwqyN8/4P9PH6Xm/DPYHSA4HadTbbO6
vIjmf30YnTKevtdIJsR4UAkmVsRP6xOmn5APIW4JOKbpMUFklpsdlw==
=73UN
-----END PGP SIGNATURE-----


More information about the dovecot mailing list