[Urgent!] Sending Email Problem in Solaris 9
Posted on 2006-04-09
I am using sendmail in Solaris 9 to send mail. The following is the command in my shell script:
cat <<EOF > tmp-mail.txt
Content-Type: text/plain; charset="utf-8"
/usr/lib/sendmail -t -n < tmp-mail.txt
I have looked at the /var/adm/messages log, and found the following:
Apr 7 18:13:20 ziong sendmail: [ID 801593 mail.crit] NOQUEUE: SYSERR(abc): can not chdir(/var/spool/mqueue/): Permission denied
Apr 7 18:13:52 ziong sendmail: [ID 801593 mail.crit] NOQUEUE: SYSERR(abc): can not chdir(/var/spool/mqueue/): Permission denied
I am running the script as root, and the following is the permission of /var/spool/mqueue:
dr-xr-x--- root bin mqueue
The sendmail daemon is started as root (checked by ps -ef | grep sendmail).
The problem is I cannot receive any email that is generated by my script. Can someone please help?
This question is very urgent, and need the solution ASAP. Thanks you very much.