SUMMARY: Should sendmail be running to send mail out?

From: Dave Martini (martini@mrpeabody.llnl.gov)
Date: Fri Feb 17 2006 - 17:11:21 EST


The answer is you don't have to run the sendmail daemons to send mail
out from the system. Your submit.cf file in /etc/mail needs to contain
the location of the "Smart" relay host (not the localhost) and then you
can send mail out.

Thanks to all the replies!!

Below is my original question

I'm on a Solaris 9 box where sendmail is not running.
I'm trying to send mail out as user oracle but get this error
and the message never arrives do I need to be running sendmail daemons
to send mail out as non root user for this to work?

#/oracle % which mail
/bin/mail
#:/oracle % /bin/mail martini1@llnl.gov
testing
.
can not chdir(/var/spool/mqueue/): Permission denied
Program mode requires special privileges, e.g., root or TrustedUser.
#:/oracle %

My permissions look like this
#:/oracle % ls -la /var/spool
total 25
drwxr-xr-x 13 root bin 512 Sep 2 2004 .
drwxr-xr-x 36 root sys 1024 Sep 3 2004 ..
drwxrwx--- 2 smmsp smmsp 512 Aug 22 10:16 clientmqueue
drwxr-xr-x 4 root sys 512 Aug 31 2004 cron
drwxr-xr-x 2 uucp uucp 512 Sep 21 2004 locks
drwxrwxr-x 5 lp lp 512 Aug 31 2004 lp
dr-xr-xr-x 1 root root 1 Jan 27 16:17 mail
drwxr-x--- 2 root bin 512 Feb 9 09:10 mqueue
drwxrwxrwt 2 root bin 512 Aug 31 2004 pkg
drwxr-xr-x 2 root lp 512 Jan 13 14:12 print
drwxrwxrwt 2 root bin 512 Sep 1 2004 samba
drwxr-xr-x 5 uucp uucp 512 Sep 1 2004 uucp
drwxrwxrwt 2 uucp uucp 512 Sep 1 2004 uucppublic

I also tried using /usr/ucb/mail and get the same error above.

Thank You.
Dave Martini
LLNL
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:39:00 EDT