[Hastymail-cvs] hastymail hastymail.conf-example,NONE,1.1 INSTALL,1.13,1.14
Brought to you by:
sailfrog,
slushpupie
From: <sai...@us...> - 2003-06-24 06:18:46
|
Update of /cvsroot/hastymail/hastymail In directory sc8-pr-cvs1:/tmp/cvs-serv12828 Modified Files: INSTALL Added Files: hastymail.conf-example Log Message: added the dynamic session id code back to session.php but this time made it optional (disabled by default) for the really paranoid. If a user is logged out because of the back button then they now get a custom error message explaining why (sort of). Also moved the example hastymail.conf file into its own file so sites can edit the defaults and use it for the configuration file (after moving it and renaming it as per the INSTALL file of course :). --- NEW FILE: hastymail.conf-example --- # Hastymail configuration file. by default Hastymail assumes this # file is in /etc and named hastymail.conf. If you need to change this # or want to move this file to another location then you must change # the value located in hastmail/lib/constant.php line #5. # Make sure that there are no spaces between the setting # names, the equal sign, and the setting values. Lines that begin with # a # sign are ignored. # The IMAP server address/hostname. Use the IMAP server ip # address or hostname, not both :) imap_server=localhost # The port your IMAP server listens on. for normal IMAP connections # the default is 143. For tls/ssl IMAP connections the default is 993 imap_port=143 # The SMTP server address. Like the IMAP server option, hostname or # ip address of the smtp server smtp_server=localhost # The port your SMTP server listens on. The default SMTP port is 25 smtp_port=25 # The default domain for outgoing mail. This will be used to append # to your login name when sending mail if no From addresses # setup on the user's options page domain=testdomain.com # If you are using PHP 4.3.0+ and have openssl support # compiled in you can connect to an imaps server, change the next line # to 'ssl' for a ssl socket or 'tls' for a tls socket (without the quotes) # Don't forget to set the imap port correctly! (usually 993 for imaps) # some servers may care which one you use but I have tried both tls and ssl # for uw-imapd on port 993 and both work. imap_ssl=false # IMAP prefix. courier uses a blank, UW defaults to mail/. Check # your IMAP server documentation for more information if unsure. prefix=mail/ # Location to create and save user settings files. User setting files # are saved as plain text files with name=value pairs, one per line. # The files are named username.settings, where username is the users # imap login name in lowercase. settings_dir=/var/hastymail/settings/ # The top level of the hastymail directories in the web server. If you want # to change the top level directory that hastymail lives in, for example # webmail, then be sure to change this value. top_dir=hastymail # This forces hastymail to sort your mailbox. This is needed if your IMAP # server does not support the SORT extension. See your IMAP server docs # to find out if it is supported. The SORT extension can really speed up # the application performance for large mailboxes. client_sort=false # One of the weaknesses in PHP's cookie-less session setup is that if # someone "steals" your session id they may be able to craft a URL to # access your hastymail account. Lots of checks are in place to keep this # from happening but by setting this options to true an extra precaution is # taken by randomizing the session id on each page load. The downside is that # the back button does not work. If you want the most in security and your users # don't mind being logged out if they hit 'back' then set this to true. dynamic_sessionid=false # The following settings allow users to access addresses in an ldap # database. Hastymail binds anonymously to read in the addresses. # No write access is available at this time. # The LDAP server hostname or ip address ldap_server=localhost # The LDAP server port to connect to ldap_port=389 # The LDAP server base DN ldap_base_dn=dc=yourdn, dc=com # Optional value to narrow the ldap search to a portion of the LDAP tree # otherwise cn=* is used ldap_search_term=objectclass=person Index: INSTALL =================================================================== RCS file: /cvsroot/hastymail/hastymail/INSTALL,v retrieving revision 1.13 retrieving revision 1.14 diff -u -d -r1.13 -r1.14 --- INSTALL 23 Jun 2003 05:57:14 -0000 1.13 +++ INSTALL 24 Jun 2003 06:18:42 -0000 1.14 @@ -40,111 +40,12 @@ mv hastymail.x.x webmail The next step is to create a hastymail.conf file for hastymail to use -for the site wide settings. Here is an example of that file and what it should -contain. All lines starting with a # are treated as comments. - ------------------------start hastymail.conf file--------------------- - -# Hastymail configuration file. by default Hastymail assumes this -# file is in /etc and named hastymail.conf. If you need to change this -# or want to move this file to another location then you must change -# the value located in hastmail/lib/constant.php line #5. -# Make sure that there are no spaces between the setting -# names, the equal sign, and the setting values. Lines that begin with -# a # sign are ignored. - -# The IMAP server address/hostname. Use the IMAP server ip -# address or hostname, not both :) - -imap_server=localhost - - -# The port your IMAP server listens on. for normal IMAP connections -# the default is 143. For tls/ssl IMAP connections the default is 993 - -imap_port=143 - - -# The SMTP server address. Like the IMAP server option, hostname or -# ip address of the smtp server - -smtp_server=localhost - -# The port your SMTP server listens on. The default SMTP port is 25 - -smtp_port=25 - - -# The default domain for outgoing mail. This will be used to append -# to your login name when sending mail if no From addresses -# setup on the user's options page - -domain=testdomain.com - - -# If you are using PHP 4.3.0+ and have openssl support -# compiled in you can connect to an imaps server, change the next line -# to 'ssl' for a ssl socket or 'tls' for a tls socket (without the quotes) -# Don't forget to set the imap port correctly! (usually 993 for imaps) - -imap_ssl=false - - -# IMAP prefix. courier uses a blank, UW defaults to mail/. Check -# your IMAP server documentation for more information if unsure. - -prefix=mail/ - - -# Location to create and save user settings files. User setting files -# are saved as plain text files with name=value pairs, one per line. -# The files are named username.settings, where username is the users -# imap login name in lowercase. - -settings_dir=/var/hastymail/settings/ - - -# The top level of the hastymail directories in the web server. If you want -# to change the top level directory that hastymail lives in, for example -# webmail, then be sure to change this value. - -top_dir=hastymail - - -# This forces hastymail to sort your mailbox. This is needed if your IMAP -# server does not support the SORT extension. See your IMAP server docs -# to find out if it is supported. The SORT extension can really speed up -# the application performance for large mailboxes. - -client_sort=false - - -# The following settings allow users to access addresses in an ldap -# database use these options. Hastymail binds anonymously to read in -# the addresses. No write access is available at this time. - -# The LDAP server hostname or ip address - -ldap_server=localhost - -# The LDAP server port to connect to - -ldap_port=389 - -# The LDAP server base DN - -ldap_base_dn=dc=yourdn, dc=com - -# Optional value to narrow the ldap search to a portion of the LDAP tree - -ldap_search_term=objectclass=person - - ------------------------end hastymail.conf file------------------------ +for the site wide settings. Use the sample config file called +hastymail.conf-example as a basis. Be sure to read the comments for each +setting to properly decide the right value for your site. +After updating that file do: -Create the hastymail.conf file with a text editor. -then: - mv hastymail.conf /etc/ + mv hastymail.conf-sample /etc/hastymail.conf chown root:root /etc/hastymail.conf chmod 644 /etc/hastymail.conf |