LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 12-27-2004, 08:29 AM   #1
caps_phisto
Member
 
Registered: Sep 2004
Location: NH
Distribution: FC6, FC1-4, RH9, Gentoo 2006.0/1, Slackware 10.1/2,11, Vector SOHO 5.0.1
Posts: 237

Rep: Reputation: 30
Sendmail woes


I seem to be having some trouble with sendmail. I cannot seem to get it to send or receive anything and I am quite puzzled as to why.
I have tried the following:
1. Running in daemon mode
2. Running with suid and sgid still on the sendmail binary (turned off when that did not work).
3. Made sure Iptables and /etc/hosts.allow and .deny were configured properly (they are)
4. Made sure that /etc/sysconfig/sendmail had DAEMON=yes. (It does)


I am more concerned with out going that incoming mail. I receive the following errors:

Dec 27 07:02:23 nhtigl sendmail[26805]: NOQUEUE: SYSERR(apache): can not chdir(/var/spool/clientmqueue/): Permission denied
The perms on the folder are drwxrwx--- smmsp smmsp (This was default)
And

Dec 27 08:05:03 nhtigl sendmail[2014]: iBRD4NbW002014: to=mlind@nhctc.edu, delay=00:00:40, mailer=esmtp, pri=87722, dsn=4.4.3, stat=queued

The last one I know is just telling me that the message cannot be sent so it is being queued up, but the address is valid so I do not know why it is not working.

Any help in this matter would be much appreciated, thanks.
 
Old 12-28-2004, 08:13 AM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
It looks like you have configured sendmail to run as the user "apache" and since this user does not have rwx access to the clientmqueue directory it is unable to write the e-mails to the queue.

Are you trying to run sendmail as apache?
 
Old 12-29-2004, 09:29 AM   #3
caps_phisto
Member
 
Registered: Sep 2004
Location: NH
Distribution: FC6, FC1-4, RH9, Gentoo 2006.0/1, Slackware 10.1/2,11, Vector SOHO 5.0.1
Posts: 237

Original Poster
Rep: Reputation: 30
Nope, I don't have sendmail running as apache. My website however, does have a web based emailing system. Could apache be trying to go direct to the queue rather than going to sendmail and then out? If so how would I resolve this?

Thanks
 
Old 12-29-2004, 09:40 AM   #4
Technoslave
Member
 
Registered: Dec 2003
Location: Northern VA
Posts: 493

Rep: Reputation: 30
ps auxw | grep sendmail

Need that output.

What the first reply is saying is correct from the output you provided, which is apache is running sendmail,which would explain why the error occurred since the directory in question is not world readable.
 
Old 12-30-2004, 06:33 AM   #5
caps_phisto
Member
 
Registered: Sep 2004
Location: NH
Distribution: FC6, FC1-4, RH9, Gentoo 2006.0/1, Slackware 10.1/2,11, Vector SOHO 5.0.1
Posts: 237

Original Poster
Rep: Reputation: 30
Here is the output you requested:

Code:
root      1977  0.0  1.0  7920 2808 ?        S    Dec27   0:00 sendmail: accepting connections
smmsp     1986  0.0  0.9  7572 2376 ?        S    Dec27   0:00 sendmail: Queue runner@01:00:00 for \
/var/spool/clientmqueue
Thanks for all the help.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Sendmail Spam / Upgrade woes marcusmiller Linux - Software 1 08-03-2005 07:03 AM
sendmail woes dkw Linux - Networking 3 07-28-2004 03:40 AM
sendmail woes. nikhil93 Linux - General 2 03-29-2004 02:06 PM
Sendmail Woes! rkane Slackware 14 06-04-2003 07:14 PM
Sendmail - RunAsUser=sendmail:mail/What files to i have to change ForumKid Linux - Security 45 01-18-2002 11:47 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 09:38 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration