Configuration
You can modify pyWM's behavior after installation via the configure
script. Go back into the setup directory, and run configure.py as
root.
# ./configure.py
Which installation of pyWM would you like to configure?
1 : myDomain1, (@domain1.com)
2 : myCollege, (@school.edu)
- Choice? (1-2) [1]
Select the installation you would like to modify, and configure.py
will launch $EDITOR with the variable information in it:
##########################################################
## pyWM configuration
## see http://www.pywm.org/current/doc/variables.html
## for more information
home: /usr/local/pyWM/
mess_per_page: 30
cleanup_every: 300
session_timeout: 3600
mess_format: text/html, text/plain
messages_reload: 300
smtp_server: 192.168.3.14
smtp_port: 25
company: myCollege
server_type: public
mail_domain: school.edu
pop3_port: 110
pop3_server: 192.168.3.14
Modify any variables you wish, then save the document and exit
your editor. The changes will be applied to the pyWM installation
immediately.
Common Variables
- home: The location of all
the pyWM files. It is not recommended to change this. If
you want to move an installation, you're probaby better off
uninstalling and reinstalling.
- smtp_server: The IP address of hostname of the SMTP server
pyWM will deliver mail through. Remember that hostname lookups are
costly! It's recommended to use an IP address here.
- pop_server: The IP address of hostname of the POP3 server
pyWM receive mail from and authenticate with. Remember that hostname
lookups are costly! It's recommended to use an IP address here.
- company: A descriptive string, titling the email service.
Just think, company Webmail.
- mail_domain: The domain portion of the email address that
this installation is representing.
Other Variables
- server_type: Either "public", or "trusted". Defaults
to "public." Public servers will delete locally-cached messages on logout or
session timeout to save disk space. Trusted is not fully implemented
yet! Public is the recommended mode.
- mess_format: The MIME types that are acceptable as
message bodies. List them in order of preference, seperated by
commas. For example, "text/plain, text/html" would show plain
text on multipart/alternative messages instead of HTML.
- messages_reload: An integer. Time, in seconds, that
the server should cache inbox listings before checking with the
POP3 server for updates. Users clicking the "Update" button in the
browser, of course, will override this value and reset the count.
- mess_per_page: An integer. How many messages per page should the
inbox browser list.
- session_timeout: An integer. Seconds of inactivity before
a session is considered timed-out. A timed-out session will need
to log in again to authenticate.
- cleanup_every: How often should the data directory be
scanned for timed-out sessions. Upon finding them, pyWM will
remove any abandoned attachment uploads. If the server is designated
public, it will also remove any messages that were downloaded from
the POP3 server.
- pop3_port: The port the POP3 server listens on. This
is almost always 110.
- smtp_port: The port the SMTP server listens on. This
is almost always 25.
(Up to Index)
|
(Next: Performance)