![]() |
IMAP Default Folders
I'm trying to find the settings for the default MailDir config (if possible) or does ispconfig just run like a 'mkmaildir' command?
Basically, I was the folders "Drafts" "Sent" "Spam" and "Trash" to exist by default. |
ISPConfig does not create the folders within Maildir. It just tells Postfix/Sendmail to deliver emails to Maildir, and when the first email arrives, then the folders are created.
But you can use the command maildirmake (see man maildirmake or http://www.die.net/doc/linux/man/man...dirmake.1.html ) to create custom folders. To do this automatically, you can change the function user_insert() in /root/ispconfig/scripts/lib/config.lib.php. |
Hi,
i think about the right code to put into this user_insert() function to set up a subfolder "Virus" and "Spam" in maildir for each user automaticly. But i really dont know how. Can you write down such code to put into at the right place ? Many thanks! greetings cirox |
Have a look at
Code:
man maildirmake |
Hi,
ok i have read the man maildirmake, but i only know how to make shared folders an folders/subfolders for each user individually. But for me it will be important that this described subfolders will be made automaticly when mails arrive for each user which is created. So i dont know how to put in in user_insert(). thanks greetings cirox |
Do you have PHP programming knowledge? You could do it with a foreach loop, for example.
|
Hi,
i dont have php coding knowledge, thats my problem .... greetings cirox |
Have a look at the function user_insert() in /root/ispconfig/scripts/lib/config.lib.php. Somewhere around line 702 you could add something like this:
PHP Code:
|
Hi,
i cant solve the problem, here is the code around line 702: Code:
// User-Mail-Datei anlegen, sonst evtl. Fehler bei AutoresponderHow to put into? Can you change the code, see above? greetings cirox |
You would use something like this:
PHP Code:
|
| All times are GMT +2. The time now is 12:15. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.