mirror of
https://github.com/docker-mailserver/docker-mailserver
synced 2024-10-18 10:18:07 +02:00
ed669bd314
Fixes an issue with the Getmail service, view PR thread for additional details. - Log an error when the expected service state directory doesn't exist. - The location `/var/lib/getmail/` doesn't seem like it should have been introduced. Drop it in favor of `/tmp/docker-mailserver/getmail`. It appears to be for storing remote mail that was retrieved if not configured to send to Dovecot like our docs advise. This location was never valid anyway (_as referenced issue covers_).
9 lines
215 B
Bash
9 lines
215 B
Bash
#! /bin/bash
|
|
|
|
GETMAILDIR=/tmp/docker-mailserver/getmail
|
|
for FILE in /etc/getmailrc.d/getmailrc*; do
|
|
if ! pgrep -f "${FILE}$" &>/dev/null; then
|
|
getmail --getmaildir "${GETMAILDIR}" --rcfile "${FILE}"
|
|
fi
|
|
done
|