Re: sendmail only sends mail for root, not non-root users

2004-05-19 Thread Matthew Seaman
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 
# 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 
-r-xr-sr-x  1 root  smmsp  607444 May 19 17:29 /usr/libexec/sendmail/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 

-- 
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


pgpu22fMSbHQ9.pgp
Description: PGP signature


sendmail only sends mail for root, not non-root users

2004-05-19 Thread carvin5string
(hopefully the list won't get two copies of this message)
I have determined what the problem is with sendmail - only root can
send mail. 

Here are the messages from maillog (notice the root emails are sent ok,
the www emails are not) -

May 19 11:40:00 www sendmail[11799]: i4JIe0nK011799: to=root,
ctladdr=root (0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay,
pri=30273, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent
(i4JIe0DU011800 Message accepted for delivery)
May 19 11:40:07 www sm-mta[11801]: i4JIe0DU011800:
[EMAIL PROTECTED], ctladdr=<[EMAIL PROTECTED]>
(0/0), delay=00:00:07, xdelay=00:00:07, mailer=esmtp, pri=30850,
relay=mail.simrad.com. [193.69.73.2], dsn=2.0.0, stat=Sent (Ok)
May 19 11:41:08 www sendmail[11804]: i4JIf82K011804: SYSERR(www):
collect: Cannot write ./dfi4JIf82K011804 (bfcommit, uid=80, gid=25):
Permission denied
May 19 11:41:08 www sendmail[11804]: i4JIf82K011804: from=www,
size=368, class=0, nrcpts=1, [EMAIL PROTECTED]
May 19 11:41:08 www sendmail[11804]: i4JIf82K011804: SYSERR(www):
queueup: cannot create queue file ./qfi4JIf82K011804, euid=80:
Permission denied

This is from the messages log -

May 19 11:41:08 www sendmail[11804]: i4JIf82K011804: SYSERR(www):
collect: Cannot write ./dfi4JIf82K011804 (bfcommit, uid=80, gid=25):
Permission denied
May 19 11:41:08 www sendmail[11804]: i4JIf82K011804: SYSERR(www):
queueup: cannot create queue file ./qfi4JIf82K011804, euid=80:
Permission denied


What do I have to do to make sendmail send mail for non-root users?
Thanks
Chip




__
Do you Yahoo!?
SBC Yahoo! - Internet access at a great low price.
http://promo.yahoo.com/sbc/
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"