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.
Reply
 
Thread Tools Display Modes
  #11  
Old 1st May 2006, 00:45
Cirox Cirox is offline
Member
 
Join Date: Mar 2006
Posts: 36
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi,

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

Now i have this code:

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.

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

if i create it manually , its no problem:

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

greetings cirox

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

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

Quote:
I think the folder is the problem.

Code:
} } 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.

Quote:
if i create it manually , its no problem:

Code:
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).
__________________
Falko
--
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
  #13  
Old 8th August 2006, 08:59
Ovidiu Ovidiu is offline
Senior Member
 
Join Date: Sep 2005
Posts: 1,257
Thanks: 75
Thanked 22 Times in 18 Posts
Default

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.

http://www.squirrelmail.org/plugin_view.php?id=245
Reply With Quote
  #14  
Old 7th January 2007, 20:11
finn finn is offline
HowtoForge Supporter
 
Join Date: Jun 2006
Posts: 25
Thanks: 12
Thanked 1 Time in 1 Post
 
Default

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:

/home/admispconfig/ispconfig/web/squirrelmail/config/conf.pl

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
Reply

Bookmarks

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 17:54
Cyrus IMAP Configuration ?? kisong Installation/Configuration 20 26th October 2005 17:15
webpages only display default site bosei Installation/Configuration 9 9th September 2005 21:25
30 Default Imap Folders? adamluz Installation/Configuration 9 18th August 2005 23:45
my default webserver failed Venkatesh.S General 1 25th July 2005 10:11


All times are GMT +2. The time now is 05:39.


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