Ask Question Forum:
Model Library:2025-02-08:A.I. model is online auto reply
C
O
M
P
U
T
E
R
2
8
Show
#
ASK
RECENT
←
- Underline
- Bold
- Italic
- Indent
- Step
- Bullet
- Quote
- Cut
- Copy
- Paste
- Table
- Spelling
- Find & Replace
- Undo
- Redo
- Link
- Attach
- Clear
- Code
Below area will not be traslated by Google,you can input code or other languages
Hint:If find spelling error, You need to correct it,1 by 1 or ignore it (code area won't be checked).
X-position of the mouse cursor
Y-position of the mouse cursor
Y-position of the mouse cursor
Testcursor
caretPos
Attachment:===
Asked by philevans114
at 2024-08-03 04:01:29
Point:500 Replies:3 POST_ID:828680USER_ID:11495
Topic:
Web Servers;;
Hi
I have a Linux Centos 5.9 LAMP using EXIM for mail. Some of the web PHP script uses PEAR Mail() to send mail. The script has stopped working and now I get a logged error :-
pear mail() returned failure code=0 mode=return
I don't know how to debug PEAR mail() to find out the reason for the error. I have searched logs (Exim maillog, messages etc) but cannot find any info.
I noted that /usr/sbin/sendmail has been removed. I am not sure after much googling how to reinstall it. It seems that I do not have sendmail installed. However it seems looking at Exim maillog that it uses /usr/sbin/sendmail. More in hope than expectation I copied sendmail from another location on the server. However PEAR mail() still produces the same error.
Any help is much appreciated.
Regards
Phil
I have a Linux Centos 5.9 LAMP using EXIM for mail. Some of the web PHP script uses PEAR Mail() to send mail. The script has stopped working and now I get a logged error :-
pear mail() returned failure code=0 mode=return
I don't know how to debug PEAR mail() to find out the reason for the error. I have searched logs (Exim maillog, messages etc) but cannot find any info.
I noted that /usr/sbin/sendmail has been removed. I am not sure after much googling how to reinstall it. It seems that I do not have sendmail installed. However it seems looking at Exim maillog that it uses /usr/sbin/sendmail. More in hope than expectation I copied sendmail from another location on the server. However PEAR mail() still produces the same error.
Any help is much appreciated.
Regards
Phil
Author: philevans114 replied at 2024-08-17 10:47:22
good pointer
Author: philevans114 replied at 2024-08-05 09:50:04
Hi Duncan
I have thanks. I had setup a test script to send a simple e-mail format message via PHP mail(). What I have found is that it fails to send via the browser, but if I login to ssh as root it will send. In fact if I login to ssh as the default user in httpd.conf it also fails. So it must be a permissions problem.
/usr/sbin/sendmail is owned an grouped as root and permissions are :-
-rwxr-xr-x 1 root root 8500 Aug 3 11:23 sendmail*
So others can read and execute which seems fine.
Its a bit of a puzzle! Are any other permissions involved?
I have thanks. I had setup a test script to send a simple e-mail format message via PHP mail(). What I have found is that it fails to send via the browser, but if I login to ssh as root it will send. In fact if I login to ssh as the default user in httpd.conf it also fails. So it must be a permissions problem.
/usr/sbin/sendmail is owned an grouped as root and permissions are :-
-rwxr-xr-x 1 root root 8500 Aug 3 11:23 sendmail*
So others can read and execute which seems fine.
Its a bit of a puzzle! Are any other permissions involved?
Accepted Solution
Expert: duncanb7 replied at 2024-08-03 05:36:32
500 points GOOD