[K12OSN] Using a remote mail server and letting apache have access to it

Les Mikesell les at futuresource.com
Tue Nov 7 02:56:32 UTC 2006


On Mon, 2006-11-06 at 20:14, jones yeates wrote:

> I also changed /etc/hosts and added SERVER_SHORT_NAME.DOMAIN_NAME to
> it, along with the ip address and the SERVER_SHORT_NAME.  The IP
> address that I'm using is the one I see on ifconfig, not the one that
> is seen on a website that shows your computer's ip address. 
> 
> I get this error:
> Nov  6 18:07:46 [SERVER_SHORT_NAME] sendmail[3774]: NOQUEUE:
> SYSERR(apache): can not chdir(/var/spool/clientmqueue/): Permission
> denied
                    ^^^^^^^^^^^^^^^  new problem

Did you turn off setuid on sendmail?  It should run as user smmsp
for submissions as specified in /etc/mail/submit.cf and
ls -ld /var/spool/clientmqueue
should show:
drwxrwx--- 2 smmsp smmsp 4096 Nov  6 17:00 /var/spool/clientmqueue

> I can access the DNS server.  I am basing that on the fact that I can
> access websites on the Linux server. 
> 
> Is there a command that I can use to determine the hostname of my
> server and if it is setup in the DNS properly?

Normally you should be able to use nslookup with both your
fully qualified domain name and IP address to see if the
values returned are correct, but if you are behind NAT you
need a local DNS server to have the 'internal' addresses.
A hosts file entry will usually work, although sendmail will
try for an MX record and will use one it finds in DNS in
preference to the same name in /etc/hosts.

But, get permissions right before worrying about this part.

-- 
  Les Mikesell
   lesmikesell at gmail.com





More information about the K12OSN mailing list