Date: Sat, 04 Sep 2021 14:41:58 +0000 From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 258207] mail/fetchmail does not restart properly with "service -R" Message-ID: <bug-258207-7788-Ad6XaH12wH@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-258207-7788@https.bugs.freebsd.org/bugzilla/> References: <bug-258207-7788@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D258207 --- Comment #3 from Corey Halpin <chalpin@cs.wisc.edu> --- >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 wr= ong, but sometimes it is wrong that allows `fetchmail` to start anyway. Your proposed `export HOME=3D/` at the top of the script is not a good solu= tion because it will cause the system-wide move and the per-user mode both to lo= ok 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 wha= t 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=3D/var/run/fetchmail` after line 167 and to add `export FETCHMAILHOME=3D$fetchmail_home` after line 187 in the rc script. Can you t= ry that and report back please? --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-258207-7788-Ad6XaH12wH>