Hello I have a perl CGI package that is sending mail via Sendmail. I have gone over Chapter 21 that discusses configuring sendmail. Either I have totaly missed the section that discusses the issue I am having or it is not covered.

I have been monitoring the /var/log/maillog with every change today and still am having issues. I restarted the sendmail demon before running the script that shows the permission issue I am getting. I have gone through many configuration changes attempting to resolve this without success.

May 9 16:41:01 localhost sendmail[3104]: alias database /etc/aliases rebuilt by root
May 9 16:41:01 localhost sendmail[3104]: /etc/aliases: 78 aliases, longest 10 bytes, 802 bytes total
May 9 16:41:02 localhost sendmail[3109]: starting daemon (8.13.1): SMTP+queueing@01:00:00
May 9 16:41:02 localhost sendmail[3109]: started as: /usr/sbin/sendmail -bd -q1h
May 9 16:41:02 localhost sm-msp-queue[3117]: starting daemon (8.13.1): queueing@01:00:00
May 9 16:55:13 localhost sendmail[4109]: j49KtDIU004109: SYSERR(apache): collect: Cannot write ./dfj49KtDIU004109 (bfcommit, uid=48, gid=51): Permission denied
May 9 16:55:13 localhost sendmail[4109]: j49KtDIU004109: from=apache, size=1815, class=-60, nrcpts=1, relay=apache@localhost
May 9 16:55:13 localhost sendmail[4109]: j49KtDIU004109: 0: fl=0x0, mode=10600: FIFO: dev=0/5, ino=13977, nlink=1, u/gid=48/48, size=0
May 9 16:55:13 localhost sendmail[4109]: j49KtDIU004109: 1: fl=0x8401, mode=20666: CHR: dev=0/13, ino=1898, nlink=1, u/gid=0/0, size=0
May 9 16:55:13 localhost sendmail[4109]: j49KtDIU004109: 2: fl=0x1, mode=10600: FIFO: dev=0/5, ino=13935, nlink=1, u/gid=48/48, size=0
May 9 16:55:13 localhost sendmail[4109]: j49KtDIU004109: 3: fl=0x2, mode=140777: SOCK localhost->[[UNIX: /dev/log]]
May 9 16:55:13 localhost sendmail[4109]: j49KtDIU004109: 4: fl=0x1, mode=20666: CHR: dev=0/13, ino=1898, nlink=1, u/gid=0/0, size=0
May 9 16:55:13 localhost sendmail[4109]: j49KtDIU004109: SYSERR(apache): queueup: cannot create queue file ./qfj49KtDIU004109, euid=48, fd=-1, fp=0x0: Permission denied
May 9 16:55:15 localhost sendmail[4111]: j49KtFu4004111: SYSERR(apache): collect: Cannot write ./dfj49KtFu4004111 (bfcommit, uid=48, gid=51): Permission denied
May 9 16:55:15 localhost sendmail[4111]: j49KtFu4004111: from=apache, size=1815, class=-60, nrcpts=1, relay=apache@localhost
May 9 16:55:15 localhost sendmail[4111]: j49KtFu4004111: 0: fl=0x0, mode=10600: FIFO: dev=0/5, ino=13992, nlink=1, u/gid=48/48, size=0
May 9 16:55:15 localhost sendmail[4111]: j49KtFu4004111: 1: fl=0x8401, mode=20666: CHR: dev=0/13, ino=1898, nlink=1, u/gid=0/0, size=0
May 9 16:55:15 localhost sendmail[4111]: j49KtFu4004111: 2: fl=0x1, mode=10600: FIFO: dev=0/5, ino=13935, nlink=1, u/gid=48/48, size=0
May 9 16:55:15 localhost sendmail[4111]: j49KtFu4004111: 3: fl=0x2, mode=140777: SOCK localhost->[[UNIX: /dev/log]]
May 9 16:55:15 localhost sendmail[4111]: j49KtFu4004111: 4: fl=0x1, mode=20666: CHR: dev=0/13, ino=1898, nlink=1, u/gid=0/0, size=0
May 9 16:55:15 localhost sendmail[4111]: j49KtFu4004111: SYSERR(apache): queueup: cannot create queue file ./qfj49KtFu4004111, euid=48, fd=-1, fp=0x0: Permission denied
May 9 16:55:15 localhost sendmail[4112]: j49KtFWO004112: SYSERR(apache): collect: Cannot write ./dfj49KtFWO004112 (bfcommit, uid=48, gid=51): Permission denied
May 9 16:55:15 localhost sendmail[4112]: j49KtFWO004112: from=apache, size=1054, class=0, nrcpts=1, relay=apache@localhost
May 9 16:55:15 localhost sendmail[4112]: j49KtFWO004112: 0: fl=0x0, mode=10600: FIFO: dev=0/5, ino=14010, nlink=1, u/gid=48/48, size=0
May 9 16:55:15 localhost sendmail[4112]: j49KtFWO004112: 1: fl=0x8401, mode=20666: CHR: dev=0/13, ino=1898, nlink=1, u/gid=0/0, size=0
May 9 16:55:15 localhost sendmail[4112]: j49KtFWO004112: 2: fl=0x1, mode=10600: FIFO: dev=0/5, ino=13935, nlink=1, u/gid=48/48, size=0
May 9 16:55:15 localhost sendmail[4112]: j49KtFWO004112: 3: fl=0x2, mode=140777: SOCK localhost->[[UNIX: /dev/log]]
May 9 16:55:15 localhost sendmail[4112]: j49KtFWO004112: 4: fl=0x1, mode=20666: CHR: dev=0/13, ino=1898, nlink=1, u/gid=0/0, size=0
May 9 16:55:15 localhost sendmail[4112]: j49KtFWO004112: SYSERR(apache): queueup: cannot create queue file ./qfj49KtFWO004112, euid=48, fd=-1, fp=0x0: Permission denied


I have checked the premissions in the \var\spool directories and they should be OK.

[root@localhost ~]# ls -hl /var/spool
total 216K
drwxr-xr-x 2 root root 4.0K Apr 28 08:51 anacron
drwx------ 3 daemon daemon 4.0K Apr 14 19:50 at
drwxrwx--- 2 smmsp smmsp 4.0K May 9 16:06 clientmqueue
drwx------ 2 root root 4.0K Apr 14 19:40 cron
drwx--x--- 3 root sys 4.0K May 9 11:54 cups
drwxr-xr-x 2 root root 4.0K Aug 12 2004 lpd
drwxrwxr-x 2 root mail 4.0K May 9 16:06 mail
drwxrwxrwx 2 root mail 4.0K May 9 16:06 mqueue
drwxr-xr-x 2 rpm rpm 12K May 6 16:50 repackage
drwxrwxrwt 2 root root 4.0K Dec 17 22:23 samba
drwxr-x--- 2 squid squid 4.0K Mar 29 13:44 squid
drwxr-xr-x 2 root root 104K May 6 16:50 up2date
drwxrwxrwt 2 root root 4.0K Oct 5 2004 vbox


Any help would be appricated.