#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=your orgnaization, 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='admin';
# default imap server host name
$imapserver='yourfqmailhost';
#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';
#mailbox unix hier seperator
$unixhiersep='.';
#your mail domain
$maildomain='yourdomain' ;
#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='defscript';
#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=(
"yourmailhost"=>['Local Server','143','2000','domain.ca','imap.domain.ca'],
"otherhost"=>['Some otherhost','993','2000','maildomain2','vacationhost2','ssl_imap'],
"otherhostname"=>['other Imap Server','143','2000','other.domain.ca','vacationhost3']
);
# show server selection option at login otherwise defaults to $imapserver
$useserverselect=1;
#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','user2','etc');
#usemulti to allow creation of multiple scripts on the server
$usemulti=1;
#Title of displayed pages
$header1="Mail Account Management";
# This is the address that supports your mail server
$problem_email="administrator\@$maildomain" ;
# list of additional namespaces on IMAP server
@namespaces = ("public2");
# 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=1;
#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=1;
$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=0;
#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=1;
# 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="[LOGOUT]" if !$LOGOUTURL;
$HOMEURL="[HOME]";
$HELPURL="[HELP]";
$VIEWRULESURL="[View/Edit Rules]";
$FORWARDALLURL="[Forward Mail]";
$SETVACATIONURL="[Set Vacation]";
$SETACLURL="[Set ACL's]";
$ADDRULEURL="[Add Rule]";
$SETPASSWORDURL="[Change Password]";
$ADVANCEDURL="[Advanced Options]";
$ADMINMENUURL="[Admin Mailboxes]";
#procmail parameters
$useprocmail=0;
$toaddr="cyrus\@$maildomain";
$fromaddr="filteradm\@$maildomain";
$sendcmd="/usr/sbin/sendmail $toaddr";
$adminsecret='18778392';
$matchingrules='matchingrules';
$updatepseudo=0;
$havequota=1;
### END of user parameters
1; # make require happy