Fixed: not enable plugin 'last_login' for lmtp/lda protocols.

This commit is contained in:
Zhang Huangbin 2020-02-28 19:42:25 +08:00
parent a67f766514
commit 6e91cf9ac8
2 changed files with 30 additions and 0 deletions

View File

@ -45,6 +45,21 @@ LMTP or LDA. Please follow steps below to implement this improvement.
last_login_key = last-login/%s/%u/%d
```
* Append service name `last_login` to the `mail_plugins =` line inside both
`protocol lda {}` and `protocol lmtp {}` blocks like below:
```
protocol lda {
mail_plugins = ... last_login
...
}
protocol lmtp {
mail_plugins = ... last_login
...
}
```
* Open file `/etc/dovecot/dovecot-last-login.conf` (Linux/OpenBSD) or
`/usr/local/etc/dovecot/dovecot-last-login.conf` (FreeBSD), __remove__ existing
`map {}` block and __add__ 4 new `map {}` blocks used to track

View File

@ -72,6 +72,21 @@ LMTP or LDA. Please follow steps below to implement this improvement.</p>
<pre><code> last_login_key = last-login/%s/%u/%d
</code></pre>
<ul>
<li>Append service name <code>last_login</code> to the <code>mail_plugins =</code> line inside both
<code>protocol lda {}</code> and <code>protocol lmtp {}</code> blocks like below:</li>
</ul>
<pre><code>protocol lda {
mail_plugins = ... last_login
...
}
protocol lmtp {
mail_plugins = ... last_login
...
}
</code></pre>
<ul>
<li>Open file <code>/etc/dovecot/dovecot-last-login.conf</code> (Linux/OpenBSD) or
<code>/usr/local/etc/dovecot/dovecot-last-login.conf</code> (FreeBSD), <strong>remove</strong> existing