[Bug 258207] mail/fetchmail does not restart properly with "service -R"
Date: Sat, 04 Sep 2021 15:38:19 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=258207 --- Comment #4 from ml@netfence.it --- (In reply to Corey Halpin from comment #3) > so that `fetchmail` will be able to find and use idfiles when fetching over > POP3 I've got the problem with IMAP too. > 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. Actually (but not on all the installations) I see: fetchmail: lstat: /root/.fetchids: Permission denied So my interpretation is that it actually cannot *read* /root (which is correct as I have 700 permissions for root and fetchmail starts at nobody). > 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? I tried this on a box where I'm using a system wide config (with POP3) and it doesn't help: that's because calls to fetchmail_dump_config will still fail (and will display the above message). It works, however, if I put the second command as line 172. In the next week I'll try to distribute this patch to as many systems as possible to see if it works with different configurations (e.g. IMAP with multiple users). Thanks. -- You are receiving this mail because: You are the assignee for the bug.