Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 31 May 2007 21:53:27 +0200
From:      Simon Barner <barner@FreeBSD.org>
To:        Bob <bob@a1poweruser.com>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: enable fetchmail system-wide mode
Message-ID:  <20070531195327.GA3292@dose.local.invalid>
In-Reply-To: <NBECLJEKGLBKHHFFANMBOEPFCCAA.bob@a1poweruser.com>
References:  <NBECLJEKGLBKHHFFANMBOEPFCCAA.bob@a1poweruser.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--PNTmBPCT7hxwcZjr
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Hello Bob,

> I want to run fetchmail enabled for system wide mode.
> The command line cmd fetchmail -q issued from user root gets meaningless
> error msg.

The error message may be meaningless to you, but without it cannot help
you here.

> Reviewing /usr/local/etc/rc.d/fetchmail has comments talking about system
> wide mode running under user fetchmail.
> How does the system admin control fetchmail when user fetchmail needs
> password to logon and no where is password given during install.

In daemon mode, the password is supposed to be stored in the config file.
Fetchmail also supports more advanced authentication mechanisms like
Kerberos, but I do not have any experience with it, and without support from
the mail server it seems useless.
>=20
> Also /usr/local/etc/fetchmailrc which is suppose to be the config file is
> empty. Even fetchmailrc.sample is empty.

Fetchmail supports literally dozends of configurations. IMO the port must
try and duplicate fetchmail's documentation.

You can use the "fetchmailconf" program to create and manage fetchmail
configurations (must not build WITHOUT_X11 then).

>=20
> The port pkg-message file is absent so there is no information describing
> how to configure fetchmail in system-wide mode or individual user mode.
> These are unique run modes to freebsd and are not covered in the fetchmail
> manual. The port pkg-message file should be created with instructions abo=
ut
> how to configure it.

Users are supposed to read the 'fetchmail' rc script (this convention is
also used by other ports). You are right in that a short pkg-message that
contains a pointer to that file is usefull for novice fetchmail users on
FreeBSD.=20

Did you have a look at the /usr/local/etc/fetchmailrc file? Do you have
suggestions how to improve the documentation provided at the beginning of
that file?

Please update your ports tree and rebuild the port -- I will commit
some small improvements now.

>=20
> Before in 4.11 through 5.4 I started fetchmail using
> /usr/local/etc/rc.d/fetchmail.sh and /root/,fetchmailrc and had root admin
> control of fetchmail. How do I achieve admin control now that fetchmail h=
as
> been converted to use rc.conf fetchmail_enable=3D"YES" to start at boot t=
ime?

Simply copy your previous fetchmail config file (presumably /root/.fetchmai=
lrc)
to /usr/local/etc/fetchmailrc), put fetchmail_enable=3D"YES" into /etc/rc.c=
onf
and issue "/usr/local/etc/rc.d/fetchmail start".

Btw.: Are you sure that you really need one system wide daemon? In my exper=
ience,
a per-user daemon makes things a lot easier for the administrator since use=
rs
can update their email configuration on their own.

If you still have problems, please give me as much detail as you can.

--=20
Best regards / Viele Gr=FC=DFe,                             barner@FreeBSD.=
org
 Simon Barner                                                barner@gmx.de

--PNTmBPCT7hxwcZjr
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (FreeBSD)

iD8DBQFGXye3Ckn+/eutqCoRApWJAJ9PxOqFKNwXuMTw/ntvkqJ6tgcudgCfQRWK
QwZnuBSlpezDXe1MdNOYa80=
=5WWU
-----END PGP SIGNATURE-----

--PNTmBPCT7hxwcZjr--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070531195327.GA3292>