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

Matthew Seaman matthew at
Wed May 19 14:12:52 PDT 2004

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

	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 is
     exactly what's required for the vast majority of sites.



Dr Matthew J Seaman MA, D.Phil.                       26 The Paddocks
                                                      Savill Way
PGP:         Marlow
Tel: +44 1628 476614                                  Bucks., SL7 1TH UK
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url :

More information about the freebsd-questions mailing list