Date: Wed, 19 May 2004 22:12:43 +0100 From: Matthew Seaman <matthew@cryptosphere.com> To: carvin5string <carvin5string@yahoo.com> Cc: questions@freebsd.org Subject: Re: sendmail only sends mail for root, not non-root users Message-ID: <20040519211243.GC2340@happy-idiot-talk.infracaninophile.co.uk> In-Reply-To: <20040519184413.25850.qmail@web40407.mail.yahoo.com> References: <20040519184413.25850.qmail@web40407.mail.yahoo.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--PHCdUe6m4AxPMzOu Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, May 19, 2004 at 11:44:13AM -0700, carvin5string wrote: > What do I have to do to make sendmail send mail for non-root users? > Thanks Looks like your permissions are fubar'd. I assume you're running the standard sendmail daemon that comes with the system. If you're running the ports version, then you'll have to adapt these instructions. i) Make sure the permissions are correct on the spool directories etc. that sendmail uses: # mtree -p /var -e -U -f /etc/mtree/BSD.var.dist=20 # mtree -p /var -e -U -f /etc/mtree/BSD.sendmail.dist ii) Make sure that the permissions on the sendmail binary are correct and that mailer.conf is correct. # /usr/src/usr.sbin/sendmail # make obj && make depend && make all install after which you should end up with sendmail installed as /usr/libexec/sendmail/sendmail with ownership/permissions: % ls -la /usr/libexec/sendmail/sendmail=20 -r-xr-sr-x 1 root smmsp 607444 May 19 17:29 /usr/libexec/sendmai= l/sendmail (or do a complete buildworld cycle if it's time you had an upgrade anyway) The contents of /etc/mail/mailer.conf should look like this: # $FreeBSD: src/etc/mail/mailer.conf,v 1.2.2.1 2002/04/09 02:00:56 = gshapiro Exp $ # # Execute the "real" sendmail program, named /usr/libexec/sendmail/= sendmail # sendmail /usr/libexec/sendmail/sendmail send-mail /usr/libexec/sendmail/sendmail mailq /usr/libexec/sendmail/sendmail newaliases /usr/libexec/sendmail/sendmail hoststat /usr/libexec/sendmail/sendmail purgestat /usr/libexec/sendmail/sendmail iii) Check your sendmail config. Judging by the log snippet you show, you've got some sort of nasty mess, with non-working parts of your system calling itself 'sendmail' (perhaps a remnant of a much older version before the split into sendmail-mta and sendmail-clientmqueue?) If necessary move aside any `hostname`.mc files from /etc/mail, and start again by: # cd /etc/mail # mv `hostname`.mc /var/tmp # rm `hostname`.cf # make (this recreates the default `hostname`.= mc) # vi `hostname`.mc # make # make install # make restart It's unlikely you'll need to do anything similar with the clientmqueue configuration -- the standard freebsd.subit.mc is exactly what's required for the vast majority of sites. Cheers, Matthew=09 --=20 Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks Savill Way PGP: http://www.infracaninophile.co.uk/pgpkey Marlow Tel: +44 1628 476614 Bucks., SL7 1TH UK --PHCdUe6m4AxPMzOu Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFAq83LiD657aJF7eIRAhwIAJ93KgP2xM3HxQNKWmJrbO5XgMtfcgCfamWC 3eINK2siOC15ZfsPmd6s4Yk= =3nUc -----END PGP SIGNATURE----- --PHCdUe6m4AxPMzOu--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040519211243.GC2340>