[Dovecot] Passing Arguments to Plugin

Timo Sirainen tss at iki.fi
Tue Aug 3 15:24:13 EEST 2010


On Tue, 2010-08-03 at 16:02 +1000, John O'Brien wrote:

> Have been looking through the documentation to see if it is possible to pass parameters down to a plugin through the dovecot.conf

With v1.x anything in plugin {} section goes into environment, e.g.:

plugin {
  foo = bar
}

and with getenv("FOO") you get "bar". With v2.0 you'll need to use
mail_user_plugin_getenv(user, "foo").




More information about the dovecot mailing list