Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 2 > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Thread Tools Display Modes
Old 1st May 2006, 01:45
Cirox Cirox is offline
Join Date: Mar 2006
Posts: 36
Thanks: 0
Thanked 0 Times in 0 Posts


dont worry, i think i am a little bit stupid ;-)

Now i have this code:

  } else {
    exec("maildirmake -f Spam mail/Maildir");
it wont work. So i dont understand it. If i start squirrelmail, the folders .drafts etc will be created, but my question is how knows maildirmake,if this, see code above, is the right folder to create the folder "Spam" ?

So i changed the code, like above, then i create a new user in ispconfig and nothing happens. No folder "Spam" for this new user.

I think the folder is the problem.

  } else {
    exec("maildirmake -f Spam /$user_username/Maildir");
isnt right, too.

if i create it manually , its no problem:

maildirmake -f Spam /var/www/web9/Maildir/

greetings cirox

Last edited by Cirox; 1st May 2006 at 02:12.
Reply With Quote
Sponsored Links
Old 1st May 2006, 16:32
falko falko is offline
Super Moderator
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,749 Times in 2,579 Posts

You can try to use the full path to maildirmake in the script (run
which maildirmake
to find out).

I think the folder is the problem.

} } else { exec("maildirmake -f Spam /$user_username/Maildir"); }
isnt right, too.
/$user_username/Maildir would translate to something like /web1_someuser/Maildir which cannot be correct.

if i create it manually , its no problem:

maildirmake -f Spam /var/www/web9/Maildir/
Then use the same path in your script (of course, use the correct variables for the web ID and the username).
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
Old 8th August 2006, 09:59
Ovidiu Ovidiu is offline
Senior Member
Join Date: Sep 2005
Posts: 1,269
Thanks: 84
Thanked 25 Times in 21 Posts

sorry to revive this old thread but I found a plugin for squirrelmail that does exactly this. here is the description of the plugin:

This plugin automates creation of special folders and subscriptions.
It tries to provide options that are available only in some IMAP
servers. If your IMAP server provides similar tools, it is strongly
recommended to use IMAP server's tools instead of this plugin.

Reply With Quote
Old 7th January 2007, 21:11
finn finn is offline
HowtoForge Supporter
Join Date: Jun 2006
Posts: 25
Thanks: 12
Thanked 1 Time in 1 Post

Hi Tenaka,
sorry to revive this old thread again, but I was trying to achieve the same thing and after installing the Squirrelmail package from the ISPConfig site, I noticed that you can set an option in the Squirrelmail config to "Auto Create Special Folders" without installing the plugin.

I used the config perl script:


and "Set pre-defined settings for specific IMAP servers" to courier, then option 3 is "Folder Defaults", and option 16 is "Auto Create Special Folders".

Of course I guess this only works if you're using Squirrelmail.

Did you find another way?
Reply With Quote


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Virtual Users And Domains With Postfix, Courier And MySQL (+ SMTP-AUTH, Quota, SpamAs pontifex HOWTO-Related Questions 2 26th October 2005 18:54
Cyrus IMAP Configuration ?? kisong Installation/Configuration 20 26th October 2005 18:15
webpages only display default site bosei Installation/Configuration 9 9th September 2005 22:25
30 Default Imap Folders? adamluz Installation/Configuration 9 19th August 2005 00:45
my default webserver failed Venkatesh.S General 1 25th July 2005 11:11

All times are GMT +2. The time now is 13:06.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.