mirror of
https://github.com/docker-mailserver/docker-mailserver.git
synced 2024-01-19 02:48:50 +00:00
555fbb78c4
* added options to toggle OpenDKIM & OpenDMARC rspamd can provide DKIM signing and DMARC checking itself, so users should be able to disable OpenDKIM & OpenDMARC. The default is left at 1, so users have to to opt-in when the want to disable the features. * misc small enhancements * adjusted start of rspamd The order of starting redis + rspamd was reversed (now correct) and rspamd now starts with the correct user. * adjusted rspamd core configuration The main configuration was revised. This includes AV configuration as well as worker/proxy/controller configuration used to control the main rspamd processes. The configuration is not tested extensively, but well enough that I am confident to go forward with it until we declare rspamd support as stable. * update & improve the documentation * add tests These are some initial tests which test the most basic functionality. * tests(refactor): Improve consistency and documentation for test helpers (#3012) * added `ALWAYS_RUN` target `Makefile` recipies (#3013) This ensures the recipies are always run. Co-authored-by: georglauterbach <44545919+georglauterbach@users.noreply.github.com> * adjusted rspamd test to refactored test helper functions * improve documentation * apply suggestions from code review (no. 1 by @polarthene) Co-authored-by: Brennan Kinney <5098581+polarathene@users.noreply.github.com> * streamline heredoc (EOM -> EOF) * adjust rspamd test (remove unnecessary run arguments) Co-authored-by: Brennan Kinney <5098581+polarathene@users.noreply.github.com>
160 lines
4.6 KiB
Plaintext
160 lines
4.6 KiB
Plaintext
# each program entry below is a separate terminal command.
|
|
# Each command MUST run in the foreground and stay running.
|
|
# If the command ever exits, the supervisor daemon will automatically run it again.
|
|
# Programs can be controlled like this: 'supervisorctl start fail2ban' 'supervisorctl stop fail2ban'
|
|
# supervisor writes program statuses in /var/log/supervisor
|
|
|
|
[program:mailserver]
|
|
startsecs=0
|
|
stopwaitsecs=55
|
|
autostart=true
|
|
autorestart=false
|
|
stdout_logfile=/dev/stdout
|
|
stdout_logfile_maxbytes=0
|
|
stderr_logfile=/dev/stderr
|
|
stderr_logfile_maxbytes=0
|
|
command=/usr/local/bin/start-mailserver.sh
|
|
|
|
[program:cron]
|
|
startsecs=0
|
|
stopwaitsecs=55
|
|
autostart=false
|
|
autorestart=true
|
|
stdout_logfile=/var/log/supervisor/%(program_name)s.log
|
|
stderr_logfile=/var/log/supervisor/%(program_name)s.log
|
|
command=/usr/sbin/cron -f
|
|
|
|
[program:rsyslog]
|
|
startsecs=0
|
|
stopwaitsecs=55
|
|
autostart=false
|
|
autorestart=true
|
|
stdout_logfile=/var/log/supervisor/%(program_name)s.log
|
|
stderr_logfile=/var/log/supervisor/%(program_name)s.log
|
|
command=/usr/sbin/rsyslogd -n
|
|
|
|
[program:fail2ban]
|
|
startsecs=0
|
|
stopwaitsecs=55
|
|
autostart=false
|
|
autorestart=true
|
|
stdout_logfile=/var/log/supervisor/%(program_name)s.log
|
|
stderr_logfile=/var/log/supervisor/%(program_name)s.log
|
|
command=/usr/local/bin/fail2ban-wrapper.sh
|
|
|
|
[program:opendkim]
|
|
startsecs=0
|
|
stopwaitsecs=55
|
|
autostart=false
|
|
autorestart=true
|
|
stdout_logfile=/var/log/supervisor/%(program_name)s.log
|
|
stderr_logfile=/var/log/supervisor/%(program_name)s.log
|
|
command=/usr/sbin/opendkim -f
|
|
|
|
[program:opendmarc]
|
|
startsecs=0
|
|
stopwaitsecs=55
|
|
autostart=false
|
|
autorestart=true
|
|
stdout_logfile=/var/log/supervisor/%(program_name)s.log
|
|
stderr_logfile=/var/log/supervisor/%(program_name)s.log
|
|
command=/usr/sbin/opendmarc -f -p "inet:8893@localhost" -P /var/run/opendmarc/opendmarc.pid
|
|
|
|
[program:dovecot]
|
|
startsecs=0
|
|
stopwaitsecs=55
|
|
autostart=false
|
|
autorestart=true
|
|
stdout_logfile=/var/log/supervisor/%(program_name)s.log
|
|
stderr_logfile=/var/log/supervisor/%(program_name)s.log
|
|
command=/usr/sbin/dovecot -F -c /etc/dovecot/dovecot.conf
|
|
|
|
[program:clamav]
|
|
startsecs=0
|
|
stopwaitsecs=55
|
|
autostart=false
|
|
autorestart=true
|
|
stdout_logfile=/var/log/supervisor/%(program_name)s.log
|
|
stderr_logfile=/var/log/supervisor/%(program_name)s.log
|
|
command=/usr/sbin/clamd -c /etc/clamav/clamd.conf
|
|
|
|
[program:postgrey]
|
|
startsecs=0
|
|
stopwaitsecs=55
|
|
autostart=false
|
|
autorestart=true
|
|
stdout_logfile=/var/log/mail/mail.log
|
|
stderr_logfile=/var/log/mail/mail.log
|
|
command=/usr/sbin/postgrey --inet=127.0.0.1:10023 --syslog-facility=mail --delay="%(ENV_POSTGREY_DELAY)s" --max-age="%(ENV_POSTGREY_MAX_AGE)s" --auto-whitelist-clients="%(ENV_POSTGREY_AUTO_WHITELIST_CLIENTS)s" --greylist-text="%(ENV_POSTGREY_TEXT)s"
|
|
|
|
[program:amavis]
|
|
startsecs=0
|
|
stopwaitsecs=55
|
|
autostart=false
|
|
autorestart=true
|
|
stdout_logfile=/var/log/supervisor/%(program_name)s.log
|
|
stderr_logfile=/var/log/supervisor/%(program_name)s.log
|
|
command=/usr/sbin/amavisd-new foreground
|
|
|
|
[program:rspamd]
|
|
startsecs=0
|
|
stopwaitsecs=55
|
|
autostart=false
|
|
autorestart=true
|
|
stdout_logfile=/var/log/supervisor/%(program_name)s.log
|
|
stderr_logfile=/var/log/supervisor/%(program_name)s.log
|
|
command=/usr/bin/rspamd --no-fork --user=_rspamd --group=_rspamd
|
|
|
|
[program:redis]
|
|
startsecs=0
|
|
stopwaitsecs=55
|
|
autostart=false
|
|
autorestart=true
|
|
stdout_logfile=/var/log/supervisor/%(program_name)s.log
|
|
stderr_logfile=/var/log/supervisor/%(program_name)s.log
|
|
command=redis-server --daemonize no --bind 127.0.0.1 --port 6379 --loglevel warning
|
|
|
|
[program:fetchmail]
|
|
startsecs=0
|
|
stopwaitsecs=55
|
|
autostart=false
|
|
autorestart=true
|
|
stdout_logfile=/var/log/supervisor/%(program_name)s.log
|
|
stderr_logfile=/var/log/supervisor/%(program_name)s.log
|
|
user=fetchmail
|
|
command=/usr/bin/fetchmail -f /etc/fetchmailrc --nodetach --daemon "%(ENV_FETCHMAIL_POLL)s" -i /var/lib/fetchmail/.fetchmail-UIDL-cache --pidfile /var/run/fetchmail/fetchmail.pid
|
|
|
|
[program:postfix]
|
|
startsecs=0
|
|
stopwaitsecs=55
|
|
autostart=false
|
|
autorestart=true
|
|
stdout_logfile=/var/log/supervisor/%(program_name)s.log
|
|
stderr_logfile=/var/log/supervisor/%(program_name)s.log
|
|
command=/usr/local/bin/postfix-wrapper.sh
|
|
|
|
[program:changedetector]
|
|
startsecs=0
|
|
stopwaitsecs=55
|
|
autostart=false
|
|
stdout_logfile=/var/log/supervisor/%(program_name)s.log
|
|
stderr_logfile=/var/log/supervisor/%(program_name)s.log
|
|
command=/usr/local/bin/check-for-changes.sh
|
|
|
|
[program:postsrsd]
|
|
startsecs=0
|
|
stopwaitsecs=55
|
|
autostart=false
|
|
autorestart=true
|
|
stdout_logfile=/var/log/supervisor/%(program_name)s.log
|
|
stderr_logfile=/var/log/supervisor/%(program_name)s.log
|
|
command=/usr/local/bin/postsrsd-wrapper.sh
|
|
|
|
[program:update-check]
|
|
startsecs=0
|
|
stopwaitsecs=55
|
|
autostart=false
|
|
stdout_logfile=/var/log/supervisor/%(program_name)s.log
|
|
stderr_logfile=/var/log/supervisor/%(program_name)s.log
|
|
command=/bin/bash -l -c /usr/local/bin/update-check.sh
|