[Bug 258207] mail/fetchmail does not restart properly with "service -R"
Date: Sat, 04 Sep 2021 14:41:58 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=258207 --- Comment #3 from Corey Halpin <email@example.com> --- From what you've reported it seems clear to me that the rc script needs to be setting `FETCHMAILHOME` so that `fetchmail` will be able to find and use idfiles when fetching over POP3. It isn't currently doing that, which is wrong, but sometimes it is wrong that allows `fetchmail` to start anyway. Your proposed `export HOME=/` at the top of the script is not a good solution because it will cause the system-wide move and the per-user mode both to look in / for that file. It makes everything wrong in the same way. If I'm correctly understanding what is happening on your system you should be seeing "Cannot open fetchids file ... for writing" errors in your logs. Do you see those? If you do not, then it indicates that I don't yet understand what is failing on your system well enough to know the correct fix. In that case, it would be helpful to see a sanitized copy of your `fetchmailrc` file. If you are seeing those errors, then I believe the correct fix is to add `fetchmail_home=/var/run/fetchmail` after line 167 and to add `export FETCHMAILHOME=$fetchmail_home` after line 187 in the rc script. Can you try that and report back please? -- You are receiving this mail because: You are the assignee for the bug.