'############################################################################################
' This section contains important WM settings. You can edit them to fit your needs.
' Lines with an apostophe ( ' ) in front of them are commented out and therefore inactive. Uncomment them if necessary.
'############################################################################################

'############################################################################################
'###### System settings ###### 
'############################################################################################
Application("DBConnection")="DBQ=" & server.mappath("database/webmail.mdb") & ";Driver={Microsoft Access Driver (*.mdb)}" '### Database connection string.
'Application("DBConnection")="DSN=WM"
'Application("IsAccessDatabase")=True '### Date handling is different for SQL/Access. If not defined WM will try to auto-detect 
Application("Debugging")=True '### If true: All error messages will be shown and script processing is stopped when an error occurs (Normally debugging should be disabled)
Application("LogFile")=Server.Mappath("webmail.log")
Application("LogLevel")=2 '### Set WM log level: 0=Nothing, 1=Normal, 2=High, 3=Debug
Application("MailRoot")=Server.Mappath("Mailboxes") & "\" '### Base path where all mailfolders are located (make sure to add a trailing backslash)
Application("MaxRefreshTime")=8 '### Time in hours before auto-refresh of the users inbox is disabled (prevent endless refreshing of clients.)
Application("AllowFullSearch")=True '### Allow users to do a full search (file based). If not, only Sender, Subject and Recipients fields are searched.
Application("AllowFileStorage")=True '### Allow users to upload files to the File storage folder (included in mailbox size)
Application("ReadBytesForSearch")=64*1024 '### Defines the blocksize that is read from the message file for searching. Most relevant text will be in the first part of a message.
Application("MaxSearchMessages")=1000 '### Maximum number of messages to search on Find actions to limit server load (Default: empty=unlimited)
Application("HiliteSearchresults")=True '### Highlights search results in the resulting message
Application("SessionTimeout")=30 '### Session timeout in minutes (idle time before user session will be ended by IIS)
Application("ComposeSessionTimeout")=120 '### Session timeout in minutes for "Compose email" page (to prevent time out while a user is still typing a message)
Application("ScriptTimeout")=300 '### Time scripts are allowed to run before they time out (seconds)
'Application("SelectLanguageOnLoginPage")=True '### Show the language selectbox on the login page.
Application("DefaultLanguageFile")="English.dat" '### Default language file to use.

'############################################################################################
'### Webmail settings 
'############################################################################################
Application("HomeLink")="http://www.iisworks.com" '### If defined: show a home button linked to this page
Application("UseContextMenu")=True '### Use right-click context menu of main WM functions (IE5+ only)
Application("PageBGColor")="FFFFFF" '### Background color for pages
'Application("OpenAttachInPopup")=True '### Open attachments in a popup window
Application("ShowMessageInfo")=True '### Show message info (tooltip on the message icon)
Application("SoundFilename")="notify.wav" '### Name of the sound file that will be played when new mail is received (if enabled). Must be present in the WM folder.
Application("FixInvalidDates")=True '### Set the message date to the current date/time if it is invalid (Older than 30 years, or in the future)
Application("AttachRemovedInfo")="[Files removed]" '### String that will be added to the Subject when attachments are removed from messages
Application("UseTextBody")=True '### Use text version of a HTML message for reply (if present)
' Application("ComposeHTML")=True '### Set the HTML wysywig editor as default instead of plain text
Application("MakeLinksInText")=True '### Convert web links in plain text messages and convert them to clickable HTML-style links
Application("AllowPreview")=True '### Allow users to use a message preview (First 255 chars of message are stored encrypted in the database). 
Application("AllowAutoRefresh")=True '### Allow users to use auto-refresh (automatically retrieve email every n minutes)
Application("AllowInboxFilters")=True '### Allow users to define inbox filters
Application("IgnoreKnownSenders")=True '### When applying the inbox filters: ignore emails from senders that are in the address book
Application("ShowDelInMessageView")=True '### Show Delete button in message view
Application("MinimalPagingButtons")=True '### Show only Prev/Next and page dropdown
Application("ReplyPrefix")="> " '### Prefix added to all lines in a reply of TXT mail
'############################################################################################

''############################################################################################
'### Mail, subscription and security settings
'### Make sure that relaying is allowed from the machine where webmail runs, or use SMTPAuthentication
'### If a textfile "Disclaimer.dat" exists, it will be appended to all outgoing messages.
'############################################################################################
'Application("AllowSubscriptions")=True '### Allow all users to subscribe to Webmail. An initial pass will be sent to them to confirm the subscription.
Application("SMTPMailServer")= "Localhost" '### SMTP Mailserver to be used to send email
Application("SMTPPort")=25 '### SMTP port, default=25
'Application("UseSMTPAuthentication")=True '### Set to True if the mailserver requires SMTP Authentication
Application("SMTPAccount")= "test" '### SMTP Authentication account name (only used if UseSMTPAuthentication=True)
Application("SMTPPass")= "test" '### SMTP Authentication account password (only used if UseSMTPAuthentication=True)
Application("MailTimeout")= 5000 '### POP and SMTP timeout (ms)
Application("DefaultGroupID")=2 '### Defines default group membership for new subscriptions (set this value to the GroupID of the default group)
'Application("FeedBackEmail")= "you@yourdomain.com" '### Reply-to Email address used to send password (uncomment if used)
Application("ServiceURL")= "http://www.iisworks.com/webmail" '### Link mentioned in the email sent to new users
Application("AutoMaintenance")=True '### Perform automatic maintenance on the database if AllowSubscriptions=True (never used for n days). Make sure the time on the server is OK!
'Application("DisableAccounts")=True '### Disable unused accounts instead of removing them (if AutoMaintenance=True)
Application("CleanUpAfterDays")=90 '### Defines after how many days cleanup of inactive accounts should be performed
Application("AllowedDomains")="" '### If defined: only these email addresses/domains are allowed to subscribe to the service and be used in the POP account list (Comma delimited list, for example:"dom1.org,dom2.com")
Application("DeniedDomains")="hotmail.com,yahoo.com" '### If defined: email addresses in these domains are rejected for subscriptions and in POP account list (Comma delimited)
'### RBL settings (Comment out DNSBLList to disable)
'Application("DNSBLList")="bl.spamcop.net, list.dsbl.org" '### Detect Spam messages using a comma delimited list of DNSBL (RBL) servers (Empty=disabled). Note: the more entries, the slower! Example: "bl.spamcop.net, list.dsbl.org" For a list: see http://www.declude.com/Junkmail/support/ip4r.htm
'Application("DNSBLCheckAllFrom")=True '### Check all From fields in the message header if multiple hops were made through different MTA's (slower)
'Application("DeleteDNSBLMsg")=True '### CAUTION! Permanently delete DNSBL matched messages from POP server (instead of moving them to "Deleted items")
Application("DNSBLInfo")="[Spam] " '### String that will be added to the Subject when the sender was found in DNSBL lists
'Application("LoginInfo")="You can login here to enter WebMail. In case of problems contact your administrator." '### If defined, this string will be shown on the login page"

'###### NT Integration and security #########################################################################
' Anonymous access for the virtual directory needs to be revoked in IIS to use this feature. 
' To restrict access to FM you can apply proper NTFS permissions to login.asp (or the entire FM folder). Login as Domain\Username
' Make sure that FM accounts exist for each NT User, or set AutoCreateNTUsers=True to create them automatically.
'######
'Application("UseNTAuthentication")=True '### Use integrated NT authentication (if Anonymous is disabled in IIS). This logs in NT validated users automatically. 
Application("AutoCreateNTUsers")=True '### Auto-create non existing authenticated users if NT authentication is enabled (with default values for database fields).
Application("AllowedIP")="" '### Comma delimited list of allowed IP numbers/ranges. Example: "192.*,10.0.0.*" 
Application("DeniedIP")="" '### Comma delimited list of denied IP numbers/ranges (this setting overrides AllowedIP). Example: "192.*,10.0.0.*" 

'###### IMPORTANT! #########################################################################
' Webmail can encrypt passwords, POP account info and messages of all users if the encryption control is installed
' 1) Only change the EncryptionKey before any users are present. 
' 2) Store a copy of the key in a safe place! 
' 3) If you change the key or UseEncryption when accounts are present, information *will* be lost!
' 4) When upgrading WM: don't forget to copy back your own old key here
'###### IMPORTANT! #########################################################################
Application("UseEncryption")=True '### Only change with an empty DB!
Application("EncryptionKey")="èä̼Y¢¡:§È°z‘;÷§"

'############################################################################################
' End User settings
'############################################################################################