2. Configure twiggi
Use the sample file to have a good starting point
[twiggi installation path]
/home/httpd/html/twiggi/
* Enter here the twiggi installtion path (this is <DocumentRoot>/twiggi from step 1)
[local nets]
192.168.1.1/255.255.255.0
* Enter here the network/host and netmask of your local networks. One entry each line!
For all accesses from outside those networks, twiggi will force a secure SSL connection via Port 443
If you want twiggi to force SSL for all IP addresses, set 0.0.0.0/255.255.255.255
If you want twiggi never force SSL connections use 0.0.0.0/0.0.0.0
[include users with user id greater or equal]
500
* Only users with an UID above this value will be twiggi users.See your /etc/passwd file to find the start value for regular users.
[include users with user id less or equal]
65535
* Only users with an UID below this value will be twiggi users.
[exclude users by name]
root
admin
httpd
nobody
squid
* Enter here all user you want to be not twiggi users, regardless their UID match the two preceeding conditions. One entry each line!
[twiggi customized configuration PHP code]
Note: the following code will be copied to the twiggi configuration files as is is and must be syntactical correct. e.g. String values must be quoted and each line must end with a semicolon.
// Database settings
these are the default settings for database access. You should change the password later.
$dbconfig["sqlserver"] = "localhost"; // must not be empty
$dbconfig["sqlport"] = "";
$dbconfig["sqlusername"] = "twiggi_admin";
$dbconfig["sqlpassword"] = "twig!gi";
$dbconfig["defaultdb"] = "twiggi";
// * your domain here. Needed for e-mail address completion
$config["fromdomain"] = "mydomain.com";
// set to "basic", if your client browser does not accept cookies
// when set to "forms", authentication is done via IMAP
$config["auth"] = "forms";
// user acoounts with admin access
# $config["admin"][0] = "userone";
# $config["admin"][1] = "usertwo";
// auto logout seconds of inactivity
$config["auth_timeout"] = 46800; // 12h
// english, german, dutch or italian
$config["language"] = "english";
// 0: Sunday
// 1: Monday
$config["firstdayweek"] = 1;
// IMAP settings
//
// the IMAP host: IP, FQDN or localhost
$config["imap_server"] = "localhost";
// Port where IMAP is listing
$config["imap_port"] = "143";
// * IMAP folder delimiter
// use "/" for UW-IMAP
// use "." for Cyrus
$config["mail_folder_delimiter"]= "/";
// * path to your mail folder directory
// for Cyrus IMAP set to "INBOX."
$config["imap_path"] = "Mail/";
// set FALSE, if IMAP server supports maildir format
$config["imap_uses_mbox"] = TRUE;
// set to TRUE, if you are using UW-IMAP with maildir patch
(this fix tries to display the correct date of the received mails)
$config["fix_imap_maildir_date_bug"] = FALSE;
// set TRUE, if you use UW-IMAP with maildir patch
// (e.g. on March SME Server)
(with set to TRUE folder hierarchy is supported)
$config["UWIMAPmdir"] = FALSE;
// Mailtree options:
// no = do not offer mailtree at all. Recommended on very slow servers
// standard = mailtree w/o new mail scan.
// Recommended on medium speed servers
// newmail = mailtree with scan for new mails. Requires fast server
$config["mailtree"]= "newmail";
twiggi automatically generates contacts entries for all local users and assign them to the group given in companycontactsgroup. Leave this empty "", if you do not want this group.
// Name of the group for local users contacts
$config["companycontactsgroup"] = "Our Company";
// unix name of the person, you want to grant write access to the local users contacts
$config["companycontactuser"] = "";
// set to 0 to disable message threading on slow servers
$config["mailthreading"] = 1;
// for mailboxes with a message count above this number,
// the mail folder listing is cached in a file
// set to 0 to disable caching entirely
$config["cachethreshold"] = 0;
// How long cache records and files are retained (in seconds)
$config["cachexpiry"] = 1800;
// set to 1 to allow html user input in description text,
// not recommended
$config["allow_html_input"] = 0;
// the command, that delivers the type of a given file
// set to $config["file_cmd"] = "echo 'unkown' #"; if you don't have it
$config["file_cmd"] = "/usr/bin/file -bz";
Below some defaults settings for new users.
Users can change these seetings in the preferences screen
// 0: US date format 12/24/2001
// 1: European date format 24.12.2001
$config["defaults"]["global"]["dateformat"]=0;
// 12: 12 hours am/pm time format
// 24: 24 hours time format
$config["defaults"]["global"]["timeformat"] = 24;
// Name of the mail folder for sent mail
$config["defaults"]["mail"]["sentfold"] = "Sentmail";
// Name of the mail folder for postponed mail
$config["defaults"]["mail"]["draftfold"] = "Drafts";
// menu style types
// Buttons w/o text for primary menu
$config["defaults"]["global"]["mstyle1"] = 7;
// Buttons w/o text for secondary menu
$config["defaults"]["global"]["mstyle2"] = 7;
$config["defaults"]["global"]["prevnext"] = "select+arrows";
// mail folder tree expanded by default
$config["defaults"]["mail"]["mtexpand"] = 1;
// linewrap for reading and composing mail
$config["defaults"]["mail"]["linewrap"] = 80;
// colorscheme 'business'
$config["defaults"]["global"]["colorscheme"] = 2;
// Arial, Helvetica, Sans Serif font
$config["defaults"]["global"]["fontfamily"] = 1;
// fontsize small
$config["defaults"]["global"]["fontsize"] = 1;
[EOF]
marks the end of this file. Do not delete!