From owner-freebsd-questions@FreeBSD.ORG Tue Nov 18 19:11:34 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BBE3616A4CF for ; Tue, 18 Nov 2003 19:11:34 -0800 (PST) Received: from smtp06.wxs.nl (smtp06.wxs.nl [195.121.6.58]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5021943FBF for ; Tue, 18 Nov 2003 19:11:33 -0800 (PST) (envelope-from akruijff@www.kruijff.org) Received: from kruij557.speed.planet.nl (ipd50a97ba.speed.planet.nl [213.10.151.186])18questions@freebsd.org; Wed, 19 Nov 2003 04:08:42 +0100 (MET) Received: from Alex.lan (localhost [127.0.0.1]) by kruij557.speed.planet.nl (8.12.9p2/8.12.9) with ESMTP id hAJ3BdJc005931; Wed, 19 Nov 2003 04:11:39 +0100 (CET envelope-from akruijff@Alex.lan) Received: (from akruijff@localhost) by Alex.lan (8.12.9p2/8.12.9/Submit) id hAJ3BbRa005930; Wed, 19 Nov 2003 04:11:37 +0100 (CET envelope-from akruijff) Date: Wed, 19 Nov 2003 04:11:37 +0100 From: Alex de Kruijff In-reply-to: <20031119015215.GD852@squirm.dsto.defence.gov.au> To: Alex Wilkinson Message-id: <20031119031137.GD389@dds.nl> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7BIT Content-disposition: inline User-Agent: Mutt/1.4.1i References: <20031119015215.GD852@squirm.dsto.defence.gov.au> cc: questions@freebsd.org Subject: Re: sendmail question X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 19 Nov 2003 03:11:34 -0000 On Wed, Nov 19, 2003 at 12:22:15PM +1030, Alex Wilkinson wrote: > Howdy all, > > I have yet another sendmail issue. > > This command will send mail fine ie no errors whatsoever and the mail arrives masquared: > > $ /usr/bin/mail -s "testing" alex.wilkinson@dsto.defence.gov.au > > If I Bcc or Cc recipients I get this error: > > $ /usr/bin/mail -s "testing" alex.wilkinson@dsto.defence.gov.au -c > +username@domain.gov.au,username@domain.gov.au,username@domain.gov.au > > WARNING: RunAsGid for MSP ignored, check group ids (egid=200, want=25) > can not chdir(/var/spool/clientmqueue/): Permission denied > Program mode requires special privileges, e.g., root or TrustedUser. > > What is the best way of getting around this problem specific to FreeBSD -CURRENT ? man mail gives: mail [-EiInv] [-s subject] [-c cc-addr] [-b bcc-addr] to-addr ... These special argument must go before the normal ones. This is true for all command in Unix. You have to place the -c argument before to-addr. For mail argument afther the to-addr are sendmail argument. So your -c didn't command to cc this also to person x. -- Alex Articles based on solutions that I use: http://www.kruijff.org/alex/index.php?dir=docs/FreeBSD/