#1 (permalink)  
Old 12-29-2001, 10:18 AM
zex's Avatar
zex zex is offline
Registered User
 
Join Date: Aug 2001
Posts: 99
zex
Php scripts does not send e-mail (This is *URGENT*)

I have one urgent problem and I willbe gratefull to all people who helps me with this one:
Problem is next: Php scripts does not send e-mail, they dont report any error so i suspect that the problem is somwhere in connection of exim and php scripts becouse i found in exim_mainlog this error (2001-12-29 12:03:19 16KHGp-0006Xy-00 <= www-data@ns.promo-grupa.com U=www-data P=local S=438) and after that (2001-12-29 16:55:06 SMTP command timeout on connection from localhost [127.0.0.1])

does somebody have some idea how to debug this problem and find what excatly caused this error to ocure.
Tnx.
__________________
Signed,
Dzevad Hadzic
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 12-29-2001, 09:06 PM
zex's Avatar
zex zex is offline
Registered User
 
Join Date: Aug 2001
Posts: 99
zex
Litle update to this..
after few hours of tracing and playing and changing php.ini i find out that if I run sample script from shell, everything works fine mail is sended, but if i run that script trough apache by calling it from web no mail....
__________________
Signed,
Dzevad Hadzic
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 12-29-2001, 11:08 PM
Registered User
 
Join Date: Sep 2001
Posts: 157
xnull
We had this problem for 2 weeks, where sendmail and smtp would not send mail from anything on the server, including perl/php scripts.

I\'m not sure what fixed the problem, but Burst finally did something to resolve it. Then suddenly tons of I guess backlogged emails sent out to people and we received a lot of old ones too (probably not all of them though).
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 12-30-2001, 12:16 AM
Registered User
 
Join Date: Aug 2001
Posts: 839
feanor
Howz the permissions on the sendmail binary? (/usr/sbin/sendmail).....

SUID included any longer? You\'ll need that for the functionality you are talking about, it might have fallen apart briefly.
__________________
..............................


http://www.fastservers.net/

travis@fastservers.net
..............................
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 12-30-2001, 08:14 AM
zex's Avatar
zex zex is offline
Registered User
 
Join Date: Aug 2001
Posts: 99
zex
-rwsr-xr-x 1 root root 13967 Dec 22 17:15 /usr/sbin/sendmail*

sendmail binary is suid, in /usr/local/lib/php.ini is defined sendmail_path = /usr/sbin/sendmail -t -i
So i\'m out of ideas what may be wrong with this.
__________________
Signed,
Dzevad Hadzic
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 12-30-2001, 07:49 PM
zex's Avatar
zex zex is offline
Registered User
 
Join Date: Aug 2001
Posts: 99
zex
Solution:
Somehow i have file /usr/sbin/sendmail wich is NOT symlink on /usr/sbin/exim. Is some other binary wich call\'s /usr/sbin/exim.
I remove it and create symlink to /usr/sbin/exim and everything works fine now.
__________________
Signed,
Dzevad Hadzic
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 10:52 PM.


Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
© cPanel Inc