LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-14-2006, 10:15 PM   #1
tooparam
Member
 
Registered: Nov 2005
Location: India
Distribution: Slackware
Posts: 51

Rep: Reputation: 15
sendmail: fatal: not allowed to queue mail


Hi there

I'm using mail function in PHP code. But I get the following error.

-bash-2.05b$ /usr/bin/php -q
sendmail: fatal: not allowed to queue mail
<br>Mail failed<br>-bash-2.05b$

What gives!! Where is the problem. Kindly help if you know the answer.

Regards
Paramvir
 
Old 08-15-2006, 04:51 AM   #2
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,125

Rep: Reputation: 164Reputation: 164
Is the user that the code is running as listed in /etc/mail/access? I stop some users from sending mail on one of my boxes with an access entry like this:
Code:
username@    REJECT
This won't happen accidentally, so unless you (or another administrator) set it up, it's not likely...
 
Old 08-15-2006, 05:11 AM   #3
tooparam
Member
 
Registered: Nov 2005
Location: India
Distribution: Slackware
Posts: 51

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by gilead
Is the user that the code is running as listed in /etc/mail/access? I stop some users from sending mail on one of my boxes with an access entry like this:
Code:
username@    REJECT
This won't happen accidentally, so unless you (or another administrator) set it up, it's not likely...

Thanks for the info.

But sendmail or mail from the command line works OK. Can I correct it at the PHP level (I mean can I pass some headers to make it work)

Thanks
 
Old 08-15-2006, 05:17 AM   #4
tooparam
Member
 
Registered: Nov 2005
Location: India
Distribution: Slackware
Posts: 51

Original Poster
Rep: Reputation: 15
More info:

This problem occurs on an ISP. So I don't have access to the mentioned file. Moreover sendmail and mail works OK in CGI script and shell scripts.

Thanks
 
Old 08-15-2006, 10:32 AM   #5
benjithegreat98
Senior Member
 
Registered: Dec 2003
Location: Shelbyville, TN, USA
Distribution: Fedora Core, CentOS
Posts: 1,019

Rep: Reputation: 45
You may need to contact them to see if you can use the mail function through php. Some dissallow it. I was going to suggest seeing if everything looks good in your php.ini file, but I imagine you have no access to that.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Slow SendMail Mail Queue hotstyle765 Linux - Software 0 11-03-2005 11:22 AM
RH 9.0, sendmail 8.13.1, mail queue stalls... taylodge Linux - Software 6 12-16-2004 06:07 AM
sendmail - mail stays in queue... E-Rick Linux - Networking 1 10-22-2004 12:51 AM
sendmail mail queue setup gdelaney Linux - Networking 2 06-18-2004 11:35 AM
squirellmail, Fatal error: Allowed memory size exhausted illtbagu Linux - Software 6 11-08-2003 06:46 PM


All times are GMT -5. The time now is 10:40 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration