Portál AbcLinuxu, 3. prosince 2025 19:56
Řešení dotazu:
plugin {
autocreate = Trash
autocreate2 = Spam
autocreate3 = Drafts
autocreate4 = Sent
autosubscribe = Trash
autosubscribe2 = Spam
autosubscribe3 = Drafts
autosubscribe4 = Sent
}
// Optional:
// Sub-folders which should automatically be created for new users.
// The sub-folders will also be subscribed to automatically.
// Will only work with IMAP server which implement sub-folders.
// Will not work with POP3.
// If you define create_mailbox_subdirs, then the
// create_mailbox_subdirs_host must also be defined.
//
$CONF['create_mailbox_subdirs']=array('Drafts','Sent','Trash','Spam');
$CONF['create_mailbox_subdirs_host']='1.2.3.4';
Nicmene pro pouziti s Dovecotem je treba upravit postfixadminuv functions.inc.php:
diff -u functions.inc.php functions.inc.php.orig
--- functions.inc.php 2009-03-01 11:24:00.000000000 +0100
+++ functions.inc.php.orig 2008-10-01 17:58:21.000000000 +0200
@@ -1919,7 +1919,7 @@
foreach($CONF['create_mailbox_subdirs'] as $f)
{
- $f='{'.$s_host.'}'.$f;
+ $f='{'.$s_host.'}INBOX.'.$f;
$res=imap_createmailbox($i,$f);
if (!$res) {
@imap_close($i);
Tiskni
Sdílej:
ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.