Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 04 Sep 2021 15:38:19 +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-kxafJQOX3B@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 #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 ov=
er
> POP3

I've got the problem with IMAP too.



> If I'm correctly understanding what is happening on your system you shoul=
d 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 corr=
ect
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=3D/var/run/fetchmail` after line 167 and to add `export
> FETCHMAILHOME=3D$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.

--=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-kxafJQOX3B>