| Server IP : 23.254.227.96 / Your IP : 216.73.216.183 Web Server : Apache/2.4.62 (Unix) OpenSSL/1.1.1k System : Linux hwsrv-1277026.hostwindsdns.com 4.18.0-477.13.1.el8_8.x86_64 #1 SMP Tue May 30 14:53:41 EDT 2023 x86_64 User : viralblo ( 1001) PHP Version : 8.1.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /proc/self/root/usr/share/doc/dovecot/wiki/ |
Upload File : |
Snarf Plugin
============
Requires v2.0.8+.
This plugin can be used to move mails from a "snarf mailbox" to user's real
INBOX. For example from '/var/mail/user' mbox file to user's final INBOX (e.g.
'~/mbox' or '~/Maildir'). Dovecot moves as many messages as it can until it
runs out of messages or out of quota.
Configuration
-------------
You need a default and a snarf namespace, for example:
---%<-------------------------------------------------------------------------
#mail_location = mbox:~/mail/:INBOX=~/mbox
#mail_location = maildir:~/Maildir
namespace default {
prefix =
separator = /
inbox = yes
}
namespace snarf {
prefix = /snarf
separator = /
location = mbox:/var/run/dovecot/empty:INBOX=/var/mail/%u:INDEX=MEMORY
list = no
hidden = yes
}
---%<-------------------------------------------------------------------------
Then tell snarf to get the mails from '/snarf/INBOX':
---%<-------------------------------------------------------------------------
plugin {
snarf = /snarf/INBOX
}
---%<-------------------------------------------------------------------------
Use hierarchy separator as the first character in snarf namespace prefix to
make sure that there won't be any conflicts with user's mailbox names.
UW-IMAP style optional snarfing
-------------------------------
UW-IMAP does snarfing from '/var/mail/user' to '~/mbox' file, but only if
'~/mbox' exists. Normally Dovecot does the snarfing always if it's enabled. To
enable it only optionally, set also:
---%<-------------------------------------------------------------------------
# keep mail_location etc. settings as above
plugin {
mbox_snarf = ~/mbox
}
---%<-------------------------------------------------------------------------
Now the snarfing is done only if '~/mbox' file exists. If it's not, the
'/var/mail/user' is used directly as the INBOX.
(This file was created from the wiki on 2019-06-19 12:42)