The startup script for the fetchmail port describes the use of a variable fetchmail_user (when running as a system-wide daemon). However, the value that is assigned to that variable in /etc/rc.conf is never used.
How-To-Repeat: In /etc/rc.conf:
Using "ps axu", observe that the fetchmail process is owned by user fetcmail rather than someuser.
The fetchmail_user variable is intended for a multiuser setup where all
users that are listed in fetchmail_users can start fetchmail with their
own configuration file (default: /home/<username>/.fetchmailrc).
If you use a single global configuration file (e.g.
/usr/local/etc/fetchmailrc) then the hardcoded daemon user "fetchmail"
will be used the rc script. fetchmail_user won't change it.
That may be the intention, but the comments at the top of the startup
script say that it's used in the system-wide daemon case and not the one
with multiple users.
And surely in the per-user case, each user's instance of fetchmail
should run as that particular user. Hang on..., I've just checked. If
fetchmail_users is set to "aaa bbb", and fetchmail_user set to "ccc",
then the two instances of fetchmail are run as "aaa" and "bbb"
respectively. So it's not used in that case either!
Over to maintainer
> That may be the intention, but the comments at the top of the startup
> script say that it's used in the system-wide daemon case and not the one
> with multiple users.
Yes, that is the intendet behaviour. In the system-wide daemon case the
fetchmail_user variable should be used (with default value 'fetchmail').
> And surely in the per-user case, each user's instance of fetchmail
> should run as that particular user. Hang on..., I've just checked. If
> fetchmail_users is set to "aaa bbb", and fetchmail_user set to "ccc",
> then the two instances of fetchmail are run as "aaa" and "bbb"
> respectively. So it's not used in that case either!
This is exspected. The fetchmail_user variable is ignored in the per-user
I'll fix the single-daemon case to actually use the custom user and improve
the documentation in that the fetchmail_user variable is ignored in the
barner 2007-07-22 11:20:19 UTC
FreeBSD ports repository
- Actually respect the `fetchmail_user' variable in single daemon
- Document that above variable is ignored in the per-user daemon mode
- Bump port revision
Requested by: Graham Menhennitt <firstname.lastname@example.org>
Revision Changes Path
1.187 +1 -1 ports/mail/fetchmail/Makefile
1.8 +6 -2 ports/mail/fetchmail/files/fetchmail.in
email@example.com mailing list
To unsubscribe, send any mail to "firstname.lastname@example.org"
Fixed in fetchmail-6.3.8_3. Thanks for the report.