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