LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-22-2003, 05:59 PM   #1
ATS1
LQ Newbie
 
Registered: Jul 2003
Posts: 3

Rep: Reputation: 0
Sendmail Problem.. I Can't Send


I'm trying to setup sendmail for my mailserver as well as my PHP scripts and It isn't working at this point

My mail.log shows the error

Jul 22 15:18:54 WebServer sendmail[1365]: NOQUEUE: SYSERR(nobody): /etc/mail/submit.cf: line 417: readcf: option RunAsUser: uid value (-2) > UID_MAX (2147483647); ignored

everytime I execute mail() through PHP.

What is this and how do I fix it?
 
Old 07-22-2003, 08:26 PM   #2
antken
Member
 
Registered: Nov 2000
Posts: 368

Rep: Reputation: Disabled
just off the top of my head it looks to me as if your sendmail is incorrectly configured.

from your posting it looks as of you sendmail is trying to start as the user nobody, which normally does not exist, so it will fail

try editing the file /etc/mail/submit.cf on line 417

what does it say?

if it says nobody, change it to sendmail, or something
then make sure the user exists on your system, to see if it exists try:

cat /etc/passwd | grep <userhere>

where <userhere> is the name of the user you put into the config file

if this command returns nothing ( just either, a blank line, or a fresh command prompt ) then your need to add a user in to the system

if the line 417 in /etc/mail/submit.cf says something different other than a username, past it back here and we'll have a look at it


hope this helps
antken
 
Old 07-23-2003, 11:28 AM   #3
ATS1
LQ Newbie
 
Registered: Jul 2003
Posts: 3

Original Poster
Rep: Reputation: 0
Line 417 reads as follows,

# what user id do we assume for the majority of the processing?
O RunAsUser=smmsp

I tried cat /etc/passwd | grep <userhere>

and with user smmsp, I get

smmsp:*:25:25:Sendmail User:/private/etc/mail:/noshell

back. Please let me know what you think.
 
Old 07-23-2003, 01:20 PM   #4
stickman
Senior Member
 
Registered: Sep 2002
Location: Nashville, TN
Posts: 1,552

Rep: Reputation: 53
Re: Sendmail Problem.. I Can't Send

Quote:
Originally posted by ATS1
My mail.log shows the error
Jul 22 15:18:54 WebServer sendmail[1365]: NOQUEUE: SYSERR(nobody): /etc/mail/submit.cf: line 417: readcf: option RunAsUser: uid value (-2) > UID_MAX (2147483647); ignored
Where does that UID of -2 come from? Try changing that to the actual UID for nobody or whatever user your script runs as.
 
Old 07-23-2003, 02:16 PM   #5
ATS1
LQ Newbie
 
Registered: Jul 2003
Posts: 3

Original Poster
Rep: Reputation: 0
whats the easiest way to switch the UID in the situation ?
 
  


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 problem on Fedora, Send mail twice sdsouza Fedora 0 02-15-2005 04:54 PM
Sendmail will only send messages as ROOT--that is a problem lynchmob09 Linux - Software 2 05-01-2004 04:34 PM
sendmail won't send email robmainella Linux - Software 0 09-10-2003 04:54 PM
Sendmail send problem kelper Linux - Software 4 07-02-2003 10:53 PM
Maddening sendmail problem -- cant send mail to remote hosts! HELP! Bungo2000 Linux - Networking 11 06-09-2003 03:33 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:44 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