Implement fetchmail (#260) (#271)

To retrieve emails from external mail accounts.
This commit is contained in:
Josef Friedrich 2016-08-21 22:13:13 +02:00 committed by Thomas VIAL
parent 8b289f6717
commit e7de8b9245
8 changed files with 77 additions and 3 deletions

View file

@ -352,6 +352,15 @@ if [ -f /tmp/docker-mailserver/dovecot.cf ]; then
/usr/sbin/dovecot reload
fi
# Enable fetchmail daemon
if [ "$ENABLE_FETCHMAIL" = 1 ]; then
if [ -f /tmp/docker-mailserver/fetchmail.cf ]; then
cat /etc/fetchmailrc_general /tmp/docker-mailserver/fetchmail.cf > /etc/fetchmailrc
fi
echo "Fetchmail enabled"
/etc/init.d/fetchmail start
fi
# Start services related to SMTP
if ! [ "$DISABLE_SPAMASSASSIN" = 1 ]; then
/etc/init.d/spamassassin start