PRAYER.CF(5) | File Formats Manual | PRAYER.CF(5) |
prayer.cf
— main
Prayer configuration file
prayer.cf is the configuration file of prayer(8) and prayer-session(8).
For the most part, prayer.cf consists of
option =
value pairs, but some configuration items are more
complex. All values may be enclosed in double quotes, which are stripped.
Quotes must be used if a value contains a
‘#
’ character. Otherwise, everything
following it is treated as a comment. Any line can be folded using a
‘\
’ character at the end of the line;
any linear white space at the beginning of the next line is removed.
Simple options can be of the following types:
prefix
and var_prefix
below.true
’,
‘t
’, and
‘1
’. The following forms are
interpreted as
false:
‘false
’,
‘nil
’,
‘0
’. Capitalisation does not
matter.K
’,
causing the number to be multiplied by 1024, or
‘M
’ multiplying it by 1024 ·
1024.s
’, which has no effect,
‘m
’, causing the number to be
multiplied by 60, ‘h
’, multiplying
it by 60 · 60, or ‘d
’, for a
multiple of 24 · 60 · 60.prefix
(string),
var_prefix
(string)$prefix
(or ${prefix}
),
and $var_prefix
(or
${var_prefix}
), respectively, in settings of type
path in the rest of the file.
Default: none. Need to be set only if referenced later.
prayer_user
(string),
prayer_uid
(number)uid 0
. Default: none.prayer_group
(string),
prayer_gid
(number)prayer_user
is set. Default:
none.prayer_background
(boolean)true
file_perms
(perm)0640
if
prayer_uid
or
prayer_user
is set,
otherwise 0644
.directory_perms
(perm)0750
if
prayer_uid
or
prayer_user
is set,
otherwise 0755
.check_directory_perms
(boolean)${var_prefix}
?imapd_server
(string)ArhostOo:ArportOcOp/ArflagOo/ArflagOcAr...
Multiple server specifications can be listed, separated by commas. Common flags are:
/ssl
/tls
/notls
localhost
./novalidate-cert
imapd_user_map
(path)prefs_folder_name
(string)use_namespace
(boolean)personal_hierarchy
and
hiersep
. Default:
true
.personal_hierarchy
(string)""
.hiersep
(string)"/"
.dualuse
(boolean)false
on a server which supports
it, but people will be unable to create children of newly created
mailboxes without refreshing the view.
Default: false
.
sieved_server
(string)imapd_server
, except the only recognised flag is
/ssl
.sieved_user_map
(path)sieved_timeout
(time)local_domain
local_domain
domain [map]
Without map,
local_domain
simply defines a domain which will
appear on the list visible to user preferences. With
map, it also defines a list a CDB map file which
defines valid entries in that domain; used for personal name expansion
and checking for valid addresses: The keys are the valid local parts and
the values are the corresponding full names of the users.
Default: A single entry
which corresponds to default_domain
.
return_path_domain
(string)filter_domain_pattern
(string)hostname
(string)__UNDEFINED__
’ here means the
startup script or command line must provide a hostname using a
--config-option
override or via the environment
variable PRAYER_HOSTNAME
. This is just a safeguard
for systems which use DNS round robining to distribute load across a
number of machines.hostname_service
(string)Default: none
fix_from_address
(boolean)false
.lookup_rpasswd
(path)lookup_rusername
(path)If the user enters a valid and existing username according to getpwnam(3), Prayer does not search these first two CDB files, but skips directly to the second stage of looking up user information.
lookup_username
(path)|
’).
Additionally, if a second vertical bar follows, the account is regarded as
cancelled.
When presenting the search results, the usernames found are
combined with the default_domain
to form email
addresses. It is not possible at this time to let users search for
addresses in more than one domain using this facility.
lookup_fullname
(path)Note that all four lookup options must be set to valid CDB files for the local lookup to work, but more than one option may conceivably point to the same file.
ldap_server
(string)ldap_base_dn
(string)surname
or mail
attributes containing the search string. The
following attributes are fetched and presented:
uid
displayName
cn
(“registered name”)ou
(“affiliation”)mail
telephoneNumber
ldap_timeout
(time)30s
.use_http_port
,
use_https_port
use_http_port
and
use_https_port
directives, with one port on each
line. Syntax:
use_http_port
[interface:]portuse_https_port
[interface:]port
interface can be an IP (v4 or v6) address or a hostname. If provided, it is passed to getaddrinfo(3) for resolution, and the first resulting address is used to bind to. Otherwise, prayer(8) binds to port on all interfaces.
ssl_default_port
(number)Should be rarely required now that Prayer automatically derives an appropriate port if none is provided here.
ssl_cert_file
(path)ssl_privatekey_file
(path)ssl_rsakey_lifespan
(time)15m
.ssl_rsakey_freshen
(time)15m
.ssl_session_timeout
(time)0
(SSL session cache not
used). prayer-ssl-prune(8) should be run
periodically to purge any stale session data from the DBD database.egd_socket
(path)contact_email
(string)fatal_dump_core
(boolean)fatal
()
error. Default: false.log_debug
(boolean)fix_client_ipaddr
(boolean)gzip_allow_nets
(string),
gzip_deny_nets
(string)use_gzip
is set in user
preferences,gzip_allow_nets
or
IP address of client does
not
appear in
gzip_deny_nets
.The format of these options is a sequence of ipaddr[/masklen] items, separated by colons and whitespace (to allow for IPv6 addresses to be parsed easily). If masklen is omitted, the item is interpreted as a full host address.
log_name_nets
(string)gzip_allow_nets
above. To avoid delay when a user
logs in, prayer-session(8) only performs a reverse
lookup of the remote address if matches this list.
Default: empty; no reverse lookup are
performed.limit_vm
(number)http_max_method_size
(number)This sets the maximum size of the initial line of an HTTP request. Default: no limit.
http_max_hdr_size
(number)http_max_body_size
(number)draft_att_single_max
(number)0
(unlimited).draft_att_total_max
(number)0
(unlimited).http_min_servers
(number)http_max_servers
.
Default: 4.
http_max_servers
(number)64
.http_max_connections
(number)0
(no
limit).http_timeout_idle
(time)30s
.http_timeout_icons
(time)10s
.http_timeout_session
(time)60s
.http_cookie_use_port
(boolean)username:port=value
” rather than
“username=value
”. Allows
simultaneous login sessions from a single client browser. However can
leave a trail of cookies behind. Probably don't want this in the long
term, it's here for experimentation purposes only at the moment.icon_expire_timeout
(time)Expires:
field for static
content. Default: 7d
. (In
contrast sessions URLs expire immediately: Browsers really shouldn't be
trying to cache this stuff, especially when it is coming in over
HTTPS).session_idle_time
(time)0
(idle mode
disabled).session_timeout
(time)0
’ means session never times out.
Default: 4h
.session_timeout_compose
(time)compose
’
or ‘sieve
’.
It should probably not be set lower than
session_timeout
. Default:
0
(always use the same
timeout).stream_ping_interval
(time)5m
.stream_checkpoint
(boolean)CHECKPOINT
instead of
PING
to “ping”
streams.
Default:
true
.stream_misc_timeout
(time)0
(disabled).log_ping_interval
(time)0s
’
means stat() log file every time something is logged.
Default: 5m
.db_ping_interval
(time)30m
.recips_max_msg
(number)0 (unlimited).
recips_max_session
(number)sending_block_dir
if limit reached and that is
defined. Default: 0
(unlimited).
sending_allow_dir
(path)recips_max_session
for that user.sending_block_dir
(path)login_banner
(string)<title>
and heading of the login
page Default: "Webmail Service
Login"
.login_service_name
(string)<title>
and
elsewhere to refer to the webmail system
after
the user has logged in. Default:
"Prayer"
.login_template
(string)login_insert1_path
(path)login_insert2_path
(path)motd_path
(path)ssl_encouraged
(boolean)false
. Ignored if
ssl_redirect
or
ssl_required
is
true
.ssl_redirect
(boolean)302
’ redirect to the default SSL
port. Only the start (/) page is
redirected and it may be possible to switch between http and https
after loggin in, subject to cookie rules.
Default: false
.
ssl_required
(boolean)403 Forbidden
’ error if
the user tries to access anything over unencrypted HTTP.
ssl_redirect
still has effect,
however.list_addr_maxlen
(number)30
.list_subject_maxlen
(number)30
.change_max_folders
(number)Default: 20
.
template_path
(path)"../templates"
(relative to
tmp_dir
).template_set
(string)"xhtml_strict"
.template_use_compiled
(boolean)template_path
. Default:
true
.theme
xhtml_transitional
template set. The
xhtml_strict
template set, as
well as the login screen, use CSS instead. It is still necessary to
tell Prayer which themes are available, however.
Syntax:
theme
namedescription
descriptiontheme
name element colourtheme
name element colour ...
description is the label shown in the theme dropdown lists on the General Preferences page.
element is one
of fgcolor
,
fgcolor_link
, bgcolor
,
bgcolor_banner
,
bgcolor_row1
,
bgcolor_row2
,
bgcolor_status
,
bgcolor_status_none
,
fgcolor_quote1
,
fgcolor_quote2
,
fgcolor_quote3
, and
fgcolor_quote4
. The first three are not used by
any standard template set, but are available. Please study the templates
to understand how the rest are used.
colour is any valid HTML %Color value. Remember that strings containing hash marks need to be quoted.
theme_default_main
(string)theme_default_main
(string)use_ispell_language
use_ispell_language
wordlist description
Example:
use_ispell_language british
"British English"
aspell_path
(path)ispell_path
).bin_dir
(path)icon_dir
(path)ispell_path
(path)log_dir
(path)pid_dir
(path)sendmail_path
(path)socket_dir
(path)socket_split_dir
(boolean)false
.init_socket_name
(string)socket_dir
)
used for initial handshake between prayer and
prayer-session processes when a user logs in. Default:
none. Must be set.ssl_session_dir
(path)static_dir
(path)tmp_dir
(path)confirm_logout
(boolean)true
.confirm_expunge
(boolean)false
.confirm_rm
(boolean)true
.default_domain
(string)hostname
setting.expunge_on_exit
(boolean)false
.html_inline
(boolean)true
.html_remote_images
(boolean)false
.html_inline_auto
(boolean)true
.ispell_language
(string)"british"
.msgs_per_page
(number)12
.msgs_per_page_max
(number)msgs_per_page
to.
Default: 50
.msgs_per_page_min
(number)msgs_per_page
to.
Default: 4
.abook_per_page
(number)12
.abook_per_page_max
(number)abook_per_page
to.
Default: 50
.abook_per_page_min
(number)abook_per_page
to.
Default: 4
.maildir
(string)""
. Typically needed with uw-imap.
Typically not needed with e.g. Dovecot or Courier.suppress_dotfiles
(boolean)true
.postponed_folder
(string)"postponed-msgs"
.sent_mail_folder
(string)"sent-mail"
.small_cols
(number)80
.small_rows
(number)18
.large_cols
(number)80
.large_rows
(number)32
.sort_mode
(string)ARRIVAL
, DATE
,
FROM
, TO
,
CC
, SIZE
,
SUBJECT
, REFERENCES
,
ORDEREDSUBJECT
. Default:
ARRIVAL
is most efficient, and
recommended.sort_reverse
(boolean)false
.abook_sort_mode
(string)ORDERED
, ALIAS
,
NAME
, COMMENT
,
ADDRESS
. Default:
ORDERED
.abook_sort_reverse
(boolean)false
.line_wrap_len
(number)76
.line_wrap_advanced
(boolean)false
.line_wrap_on_reply
(boolean)true
.line_wrap_on_spell
(boolean)true
.line_wrap_on_send
(boolean)true
.preserve_mimetype
(boolean)false
, Content-Type is replaced
with
‘application/octet-stream
’ which
should force download to local disk, bypassing any automatic processing of
bodyparts by the User-Agent. Unclear at the moment whether we need to do
this, or whether this should be done selectively based on the User-Agent.
Default: true
.use_sent_mail
(boolean)true
.use_mark_persist
(boolean)false
.use_search_zoom
(boolean)true
.use_agg_unmark
(boolean)true
.use_icons
(boolean)true
.use_welcome
(boolean)true
.use_tail_banner
(boolean)true
.The following options are internally handled as user preferences, but the Preferences screen no longer provides any means for changing them.
use_cookie
(boolean)true
.use_substitution
(boolean)Default: true
.
use_http_1_1
(boolean)true
.use_pipelining
(boolean)true
.use_persist
(boolean)true
.use_short
(boolean)true
.use_gzip
(boolean)true
.This manual page was put together by Magnus
Holmgren <holmgren@debian.org> using documentation written by
David Carter <dpc22@cam.ac.uk>.
17 August 2008 | The Prayer Webmail Interface |