From owner-freebsd-questions@FreeBSD.ORG Fri Sep 17 12:12:49 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9F6BB106564A for ; Fri, 17 Sep 2010 12:12:49 +0000 (UTC) (envelope-from dan@slightlystrange.org) Received: from catflap.slightlystrange.org (cpc2-cmbg1-0-0-cust385.5-4.cable.virginmedia.com [82.21.105.130]) by mx1.freebsd.org (Postfix) with ESMTP id 133AA8FC20 for ; Fri, 17 Sep 2010 12:12:48 +0000 (UTC) Received: from dan by catflap.slightlystrange.org with local (Exim 4.72 (FreeBSD)) (envelope-from ) id 1OwZbB-000OZZ-Se for freebsd-questions@freebsd.org; Fri, 17 Sep 2010 12:59:25 +0100 Date: Fri, 17 Sep 2010 12:59:25 +0100 From: Daniel Bye To: freebsd-questions@freebsd.org Message-ID: <20100917115925.GA58299@catflap.slightlystrange.org> Mail-Followup-To: freebsd-questions@freebsd.org References: Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="LQksG6bCIzRHxTLp" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.3i X-PGP-Fingerprint: D349 B109 0EB8 2554 4D75 B79A 8B17 F97C 1622 166A X-Operating-System: FreeBSD 8.1-STABLE amd64 Sender: Daniel Bye Subject: Re: /usr/local/etc/rc.d/imapproxyd start X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Daniel Bye List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 17 Sep 2010 12:12:49 -0000 --LQksG6bCIzRHxTLp Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Sep 17, 2010 at 01:02:03PM +0200, n dhert wrote: > There seems to be a problem with starting up the IMAP proxy server > imapproxyd: > # /usr/local/etc/rc.d/imapproxyd start > says > Starting imapproxyd. > but doesn't return the # prompt ... > # ps -jawx | grep imap > root 21490 21426 21490 64248 1 S+ 3 0:00.01 /bin/sh > /usr/local/etc/rc.d/imapproxyd start > root 21496 21490 21490 64218 1 S+ 3 0:00.01 /usr/local/sbin/in.imapprox= yd >=20 > I would expect the /bin/sh line to disappear and the # prompt to come bac= k. And so it should. I have just installed and tested it, and it works fine. The only way I can replicate the behaviour you report is if I misspell the name of the backend IMAP server - so start checking there. If it's not a typo, it is likely some other variety of DNS error. >=20 > If (from another terminal window) I do > # /usr/local/etc/rc.d/imapproxyd stop > is says > Stopping imapproxyd. > # (returns the prompt) >=20 > If the first window, it says: > Terminated > /usr/local/etc/rc.d/imapproxyd: WARNING: failed to start imapproxyd > ?? >=20 > 1. what is wrong here and how to correct it ? >=20 > 2. also, although I do have a user nobody and a group nobody in FreeBSD 8 > and the config file /usr/local/etc/imapproxyd.conf specifies (default > setting) > proc_username nobody > proc_groupname nobody > I wonder why the processes (ps -jawx) show root as the process owner ? It will need to start as root in order to bind all the resources it needs, before dropping privileges. Remember that only root can bind ports below 1024. It works fine here. Dan --=20 Daniel Bye _ ASCII ribbon campaign ( ) - against HTML, vCards and X - proprietary attachments in e-mail / \ --LQksG6bCIzRHxTLp Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.16 (FreeBSD) iEYEARECAAYFAkyTWB0ACgkQixf5fBYiFmpgqQCgvytDyE0bgMWXlawFeeGH4rTo n4UAn3Twt6OYVnqs8rkANX2jwGRK37DT =zW4E -----END PGP SIGNATURE----- --LQksG6bCIzRHxTLp--