SUMMARY 2: Should sendmail be running to send mail out?

From: Patricio Mora <patricio.mora.ext_at_juntadeandalucia.es>
Date: Thu Feb 23 2006 - 03:55:42 EST
The solution was to remove /etc/mail/submit.cf. When this file does not 
exist (awk@carolina.rr.com), and a mail is delivered to a local user, 
sendmail binary is invoked (truss) and /etc/mail/sendmail.cf (configured 
with its corresponding relay) and /.forward are read, and the mail is 
successfully delivered.

Another solution not so complete, but enough in security's point of 
view, is to start sendmail listening only on localhost.  You may 
accomplish it by creating the /etc/default/sendmail file with this contents:
MODE="-bd -ODaemonPortOptions=Addr=localhost"
and starting sendmail with the /etc/init.d/sendmail script.

Thanks to
awk@carolina.rr.com
Juraj Lutter Juraj_Lutter@tempest.sk
Thomas M. Payerle payerle@physics.umd.edu
Mike Bresina mike@younglibertarians.org
David Foster foster@ncmir.ucsd.edu

Dave Martini wrote:

>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
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers
Received on Thu Feb 23 03:56:44 2006

This archive was generated by hypermail 2.1.8 : Thu Mar 03 2016 - 06:43:56 EST