Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Results 1 to 6 of 6
  1. #1
    zex
    zex is offline
    Member zex's Avatar
    Join Date
    Aug 2001
    Posts
    99

    Default 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

  2. #2
    zex
    zex is offline
    Member zex's Avatar
    Join Date
    Aug 2001
    Posts
    99

    Default

    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

  3. #3
    Member
    Join Date
    Sep 2001
    Posts
    157

    Default

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

  4. #4
    Member
    Join Date
    Aug 2001
    Posts
    839

    Default

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

  5. #5
    zex
    zex is offline
    Member zex's Avatar
    Join Date
    Aug 2001
    Posts
    99

    Default

    -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

  6. #6
    zex
    zex is offline
    Member zex's Avatar
    Join Date
    Aug 2001
    Posts
    99

    Default

    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

Similar Threads & Tags
Similar threads

  1. Php scripts send mail as user@servername.com
    By cwalke32477 in forum New User Questions
    Replies: 3
    Last Post: 01-10-2011, 07:39 AM
  2. Urgent: smartd send me sending mail from server
    By its_joy in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 12-29-2007, 02:22 PM
  3. allow php scripts to send emails
    By ramil in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 11-10-2006, 12:30 PM
  4. php cannot send mail - unusual problem - urgent
    By shx in forum cPanel and WHM Discussions
    Replies: 5
    Last Post: 10-25-2006, 12:50 PM
  5. Where is the routine that looks for scripts that send mail.
    By jols in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 12-07-2005, 08:40 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube