1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199
|
#Websieve configuration file
#set $useldapextras=1 to use Jules Agee's ldap administration functions
$useldapextras=0;
#set $useauth=1 to use ldap (for ldap password changes)
$useauth=0;
$LDAP_SERVER='localhost';
$LDAP_BASEDN='o=toshiba of canada,c=ca';
$ENCRYPT_PASS=1;
# above library is used to allow user to change passwords
# on a server of the users choice. The required functions are:
# &auth_changepass - validates and saves password changes
# &auth_getuserserver - get user imap server from auth database
# You can write you own functions to change passwords on a different auth
# mechanism such as on a MysSql server, Qualcomm poppassd server, etc.
#require "./custom.pl";
#secret key - CHANGE THIS to some random data!!!!
$skey = "your secret key CEDEFEKJKIIEIOO***#KIKIDKKEUIULJLJKJ";
#use RC4 algorithm for encryption instead of rot13
$userc4=1;
#cyrus admin user id that is used for general mailbox administration
$cyrusadminuid='cyrus';
# default imap server host name
$imapserver='localhost';
#make sure you set this to your program virtual name and path
$program_url = "/cgi-bin/websieve.pl" ; # URL for this program
# default system ports of timsieved/imapd daemons
$sieveport='2000';
$imapport='143';
#your mail domain
$maildomain='test.toshiba.ca' ;
#default FQHN of the mail server for use in vacation addresses
$mailhostappend="imap.$maildomain";
#use SSL for server connections
#requires IO::Socket::SSL, Net::SSLeay, OpenSSL
$useimapSSL=0;
$usesieveSSL=0;
#name of default sieve script
$defaultscript='default';
#attributes for each imapserver when used with virtual domains or multiple servers and one single instance of websieve
#%server_hosts=(
#"hostname"=>['Display Name','imapport#','sieveport#','maildomain','vacationhost','ssl_all']);
#only use last field 'ssl' if using ssl to connect to remote server.
#this can also be 'ssl_all' to use ssl for imap and sieve or
#simply 'ssl_sieve' or 'ssl_imap' to use ssl on only one of these protocols
#NOTE: The ssl field is ignored with the Cyrus::xxxx perl libraries
#any of the options can be blank and the default values of $imapserver,
#$sieveport,$imapport,$maildomain, $imapserver and $usexxxSSL will be used instead.
%server_hosts=(
"imap.toshiba.ca"=>['Local Server','143','2000','toshiba.ca','imap.toshiba.ca'],
"otherhost"=>['Some otherhost','993','2000','maildomain2','vacationhost2','ssl_imap'],
"mtl.toshiba.ca"=>['Mtl Server','143','2000','toshiba.ca','mtl.toshiba.ca'],
"otherhostname"=>['other Imap Server','143','2000','other.toshiba.ca','vacationhost3']
);
# show server selection option at login otherwise defaults to $imapserver
$useserverselect=0;
#set to 1 to return to rulesview after rules addition
$returntoview=0;
#to allow advanced mode script creation (globally)
$allowadvanced=1;
#to allow advanced mode script creation (per user) (next 2 lines)
#$allowadvanced=0;
#@advanceduser=('jdoe2','aturbide','user2','etc');
#usemulti to allow creation of multiple scripts on the server
$usemulti=1;
#Title of displayed pages
$header1="Mail Filter Management";
# This is the address that supports your mail server
$problem_email="administrator\@$maildomain" ;
# list of additional namespaces on IMAP server
#@namespaces = ("public2");
@namespaces = ();
# set this to 1 to include all root/public folders in mailbox and acl lists
$includepublic=1;
# set to 1 if you want to use acl entries to decide which folders to display
# this is recommended when using alt_namespace patch
$selectbyacl=1;
#is the server using the new alternate namespaces option
$alt_namespace=0;
#allow use of the sieve reply action in rules
$usereply=0;
#allow use of the sieve reject action in rules
$usereject=1;
#allow setting of mailbox acl's
$useacl=0;
#allow use of the sieve discard action in rules
$usediscard=1;
#allow user selectable header fields to be searched in rules
$usevariablefield=1;
#allow use of regular expression searches in rules
$useregex=1;
#allow use of the sieve vacation action in rules
$usevacation=0;
$usereply=0 if (!$usevacation);
#shortacl=1 to create a scrolling list instead of a table for acl values
$shortacl=1;
#usematches always uses :matches instead of :contains
$usematches=0;
#usesearchflg allows switching from allof to anyof header searches
$usesearchflg=1;
#usesize allows using rules regarding messages size
$usesize=1;
#use custom sieve script rules
$usecustom=1;
#allow forward all mail menu option
$useforwardall=0;
# force a keep on mail redirects
$keepredirect=0;
# set quotemailbox=1 if using IMAP-Admin < version 1.2.6 to fix folders with spaces
$quotemailbox=0;
# table colomn 1 color - row name
$tb='BGCOLOR=#9999FF';
# table column contents
$cb='BGCOLOR=#CCCCCC';
# page background color
$bg='#EEEEEE';
# display the menu selections at top of page
$showmenu=1;
# display "LOGOUT HOME HELP" menu options;
$showhome=0;
# display the mail server line at top of page
$showserver=0;
# set to 1 to not display the byline at end of page
$nobyline=0;
#set cookie expiration time - leave blank for session only
#$expires='+1h';
$expires='';
#action to perform on previous modified rule (can be 'DISABLED','DELETE');
$OLDMODIFY='DELETE';
#use server based session cookies instead of client based (cookie in URL)
#this is for people that don't or can't use cookies on their clients
$useservercookie=0;
#set time that a session cookie expires (in seconds)
$session_exp='1800'; # 30 minutes
#Text to add before vacation message
$vacation_prelude = "Autogenerated Message:\n";
# Menu selections
$LOGOUTURL="<a href=$program_url?op=logout>[LOGOUT]</a>" if !$LOGOUTURL;
$HOMEURL="<a href=/index.html>[HOME]</a>";
$HELPURL="<a href=/mailhelp.html>[HELP]</a>";
$VIEWRULESURL="<a href=$program_url?op=viewrules>[View/Edit Rules]</a>";
$FORWARDALLURL="<a href=$program_url?op=forward>[Forward Mail]</a>";
$SETVACATIONURL="<a href=$program_url?op=setvacation>[Set Vacation]</a>";
$SETACLURL="<a href=$program_url?op=setacl>[Set ACL's]</a>";
$ADDRULEURL="<a href=$program_url?op=addrule>[Add Rule]</a>";
$SETPASSWORDURL="<a href=$program_url?op=setpass>[Change Password]</a>";
$ADVANCEDURL="<a href=$program_url?op=advanced>[Advanced Options]</a>";
$ADMINMENUURL="<a href=$program_url?op=setacl>[Admin Mailboxes]</a>";
### END of user parameters
1; # make require happy
|