#!/bin/bash # PASSWORDS export MYSQL_ROOT_PWD="rootpwd" export MYSQL_MAILADMIN_PWD="mailadminpwd" export MYSQL_MAILUSERS_PWD="mailuserspwd" # VERSIONS OF THE PACKAGES/APPLICATIONS TO INSTALL export VERSION_NETQMAIL="1.05" export VERSION_DAEMONTOOLS="0.76" export VERSION_UCSPI_TCP="0.88.1" export VERSION_CHECKPASSWORD="0.90" export VERSION_CLAMAV="0.88" export VERSION_BGLIBS="1.041" export VERSION_QMAIL_QFILTER="2.1" export VERSION_MYSQL="4.1.18" export VERSION_AUTHLIB="0.58" export VERSION_COURIERIMAP="4.0.6" export VERSION_COURIERPASSWD="1.1.0" export VERSION_BASE64="1.3" export VERSION_MAILDROP="2.0.2" # Written to /var/qmail/control/doublebounceto: # to discard double bounces assign an empty string # usually only spam double bounces DOUBLE_BOUNCE="" # Written to /var/qmail/control/smtpdmemorylimit: # set the "momory" limit of the tcpserver starting qmail-smtpd # the limit is set in /var/qmail/supervise/qmail-smtpd/run using # /usr/local/bin/softlimit -m; see its man page for details # this is a non-standard configuration file used by our custom # /var/qmail/supervise/qmail-smtpd/run script; we use a very high value here SMTP_MEMORY_LIMIT=$(( 200 * 1024 * 1024 )) # Written to /var/qmail/control/concurrencyincoming: # The number of concurrent incoming connections. # concurrencyincoming is a non-standard configuration file used # by our custom /var/qmail/supervise/qmail-smtpd/run script CONCURRENCY_INCOMING=25 # Written to /var/qmail/control/concurrencyremote: # The number of remote deliveries allowed at once. # Make sure the maximum number of processes available to a single # user is greater than (concurrencyremote * 2) + 5. Also see the # notes for CONCURRENCY_LOCAL. CONCURRENCY_REMOTE=50 # Written to /var/qmail/control/concurrencylocal: # The number of local deliveries allowed at once. # The maximum number of open files (use ulimit -a) must be greater than the # concurrencylocal or concurrencyremote (whichever is greater). # Therefore CONCURRENCY_LOCAL must be greater than the expression # (concurrencylocal > concurrencyremote ? concurrencylocal : concurrencyremote) * 2 CONCURRENCY_LOCAL=25 # Written to /var/qmail/control/databytes: # The maximum size in bytes of a message received via SMTP. # This is the default and can be overwritten with the DATABYTES variable # in /etc/tcp.smtp. DATABYTES=$(( 20 * 1024 * 1024 )) # Written to /var/qmail/control/queuelifetime: # The maximum lifetime (in seconds) of a message in the queue. # After this time period temporary errors are considered permanent and # the message is bounced QUEUELIFETIME=$(( 60 * 60 * 24 * 3 )) # Written to /var/qmail/control/timeoutremote: # How long to wait for each response of a remote SMTP server before giving up. # This is essential because the default is 1200 secs. TIMEOUTREMOTE=60 # Written to /var/qmail/control/timeoutsmtpd: # How long to wait for each response of a remote SMTP client before giving up. # This is essential too, because the default is 1200 secs. TIMEOUTSMTPD=60 # Written to /var/qmail/control/multilogsize: # The maximum multilog log file size in bytes; if the logfile is bigger than that # it will be rotated; see http://cr.yp.to/daemontools/multilog.html # This a non-standard control file that is used by # /var/qmail/supervise/qmail-smtpd/log/run and /var/qmail/supervise/qmail-send/log/run QMAIL_MULTILOGSIZE=$(( 4 * 1024 * 1024 )) # Written to /var/qmail/control/multilognum: # The maximum number of multilog log files to keep; old log files will be deleted; # see http://cr.yp.to/daemontools/multilog.html # This a non-standard control file; it is used by # /var/qmail/supervise/qmail-smtpd/log/run and /var/qmail/supervise/qmail-send/log/run QMAIL_MULTILOGNUM=20 # Send all mails addressed to root to this mailbox. # The user root himself does not have a mailbox! # For securitty reasons this should be a local account! ROOT_MAILS_TO=mailadmin # Written to /var/clamd/control/clamdmemorylimit: # The memory limit of clamd; NOTE: by default the memory limit # is DEACTIVATED in /var/clamd/supervise/clamd/run CLAMD_MEMORY_LIMIT=$((300 * 1024 * 1024)) # Written to /var/clamd/control/multilogsize: # The maximum multilog log file size in bytes for clamd; if the logfile is # bigger than that it will be rotated CLAMD_MULTILOGSIZE=$(( 2 * 1024 * 1024 )) # Written to /var/clamd/control/multilognum: # The maximum number of multilog log files to keep for clamd # old log files will be deleted CLAMD_MULTILOGNUM=10 # Written to /var/clamd/control/freshclam_checksperday # how often to check for virus updates FRESHCLAM_CHECKS_PER_DAY=12 # Written to /var/clamd/control/freshclam_memorylimit: # The memory limit of freshclam: 10MB should be enough (somewhere # between 3 and 4 MB was the absolute minimum on my machines) FRESHCLAM_MEMORYLIMIT=$((10 * 1024 * 1024)) # Written to /var/clamd/control/freshclam_multilogsize: # The maximum multilog log file size in bytes for freshclam; if the # logfile is bigger than that it will be rotated FRESHCLAM_MULTILOGSIZE=$(( 2 * 1024 * 1024 )) # Written to /var/clamd/control/freshclam_multilognum: # The maximum number of multilog log files to keep for freshclamd # old log files will be deleted FRESHCLAM_MULTILOGNUM=10 # Written to /var/spamd/control/spamdmemorylimit: # The memory limit of spamd: 100MB should be plenty SPAMD_MEMORYLIMIT=$((100 * 1024 * 1024)) # Written to /var/spamd/control/spamdmaxchildren: # The maximum number of spamd child processes; 5 is spamd's interal # default. SPAMD_MAXCHILDREN=10 # Written to /var/spamd/control/multilogsize: # The maximum multilog log file size in bytes for spamd; if the # logfile is bigger than that it will be rotated SPAMD_MULTILOGSIZE=$(( 2 * 1024 * 1024 )) # Written to /var/spamd/control/multilognum: # The maximum number of multilog log files to keep for spamd # old log files will be deleted SPAMD_MULTILOGNUM=10