LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   sendmail: fatal: not allowed to queue mail (https://www.linuxquestions.org/questions/linux-newbie-8/sendmail-fatal-not-allowed-to-queue-mail-473903/)

tooparam 08-14-2006 09:15 PM

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

gilead 08-15-2006 03:51 AM

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...

tooparam 08-15-2006 04:11 AM

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

tooparam 08-15-2006 04:17 AM

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

benjithegreat98 08-15-2006 09:32 AM

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.


All times are GMT -5. The time now is 02:27 AM.