https://bugs.koozali.org/show_bug.cgi?id=12131
Bug ID: 12131
Summary: fetchmail retrieve all mails after server reboots
Classification: SME Server
Product: SME Server 10.X
Version: 10.0
Hardware: x86_64
OS: ---
Status: CONFIRMED
Severity: normal
Priority: P3
Component: e-smith-*/smeserver-* packages
Assignee: [email protected]
Reporter: [email protected]
QA Contact: [email protected]
CC: [email protected], [email protected],
[email protected], [email protected]
Depends on: 11979
Target Milestone: ---
+++ This bug was initially created as a clone of Bug #11979 +++
SME10 fully updated
[root@srvsmtp users]# rpm -qa | grep fetchmail
smeserver-fetchmail-1.6-22.el7.sme.noarch
fetchmail-6.3.24-7.el7.x86_64
I setup all the users to get emails like this one:
same issue will arise on core multi=drop
so fix should be common.
both share similar code.
the main issue is in
/etc/startmail/20body for core
/etc/startmail/90FetchMails for contrib
$command = "/bin/su - qmailr -s /bin/bash -c \\\n";
$command .= "\t\"FETCHMAILHOME=/var/lock/fetchmail";
/var/lock/fetchmail is on SME10 a symlink to /run/lock/fetchmail
which is wiped at every reboot
no issue in ETRN mode, but with multidrop and witht he contrib the .fetchids
file will gete wiped on reboot and fetchmails tart the download from zero of
all mails.
in bug 11979 Stefano suggest to add -i /var/lib/fetchmail/.fetchids to the
contribs while keeping same FETCHMAILHOME
this could do
alternatively we could change the FETCHMAILHOME to /var/lib/fetchmail/ on both
and set the pid file to /Run so it get deleted on reboot and avoid fetchmail
not to start in case of power outage and leftover of old pid
-p /run/lock/fetchmail/fetchmail.pid
from our usage we store nothing else as we provide fetchmailrc from standard
input.
also we need an action to migrate the old
Referenced Bugs:
https://bugs.koozali.org/show_bug.cgi?id=11979
[Bug 11979] fetchmail retrieve all mails after server reboots
--
You are receiving this mail because:
You are on the CC list for the bug._______________________________________________
Mail for each SME Contribs bug report
To unsubscribe, e-mail [email protected]
Searchable archive at https://lists.contribs.org/mailman/public/contribteam/