The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

PHP mail() function NOT functional

Discussion in 'E-mail Discussions' started by kcdworks, Jun 23, 2003.

  1. kcdworks

    kcdworks Well-Known Member

    Joined:
    Jul 28, 2002
    Messages:
    186
    Likes Received:
    0
    Trophy Points:
    16
    Running:

    WHM 7.0.0
    Cpanel 7.0.2-E8
    RedHat 7.2

    Apache Core 1.3.27
    PHP 4.3.2

    After the upgrade to WHM/CPanel 7, the php mail() function STOPS working completely. Restarting apache temporarily fixes the problem.

    I think this has something to do with the Exim upgrade.

    I know others are experiencing this problem - how do we take care of it?

    cPanel.net Support Ticket Number:
     
  2. Stephen

    Stephen Active Member

    Joined:
    Aug 14, 2001
    Messages:
    39
    Likes Received:
    1
    Trophy Points:
    8
    For our servers, mail() did work for direct email accounts, but if we configured an email address that is forwarded to another email address then it didn't work.

    Our temporary fix was to downgrade back to exim3, by just running /scripts/exim3

    cPanel.net Support Ticket Number:
     
  3. cPanelNick

    cPanelNick Administrator
    Staff Member

    Joined:
    Mar 9, 2015
    Messages:
    3,426
    Likes Received:
    2
    Trophy Points:
    38
    cPanel Access Level:
    DataCenter Provider
    Check your apache log. You may be out of file descriptors.

    cPanel.net Support Ticket Number:
     
  4. Stephen

    Stephen Active Member

    Joined:
    Aug 14, 2001
    Messages:
    39
    Likes Received:
    1
    Trophy Points:
    8
    Right. I noticed that and just rebuilt apache. Thanks bro.

    cPanel.net Support Ticket Number:
     
  5. kcdworks

    kcdworks Well-Known Member

    Joined:
    Jul 28, 2002
    Messages:
    186
    Likes Received:
    0
    Trophy Points:
    16
    That is exactly the error message that is appearing. Apache is compiled with the Raise FD_SETSIZE option, yet the problem returns every 12 hours or so.

    Downgrading to Exim 3 seems to keep it from happening. Any suggestions?

    cPanel.net Support Ticket Number:
     
  6. haze

    haze Well-Known Member

    Joined:
    Dec 21, 2001
    Messages:
    1,550
    Likes Received:
    3
    Trophy Points:
    38
    Having the same problem here on all servers.

    cPanel.net Support Ticket Number: 16621
     
  7. cPanelNick

    cPanelNick Administrator
    Staff Member

    Joined:
    Mar 9, 2015
    Messages:
    3,426
    Likes Received:
    2
    Trophy Points:
    38
    cPanel Access Level:
    DataCenter Provider
    ls /proc/`ps uxaww |grep httpd | grep ^root | awk '{print $2}' | head -1`/fd |wc -l

    Anyone having this problem, please post the results of the above command.

    cPanel.net Support Ticket Number:
     
  8. cPanelNick

    cPanelNick Administrator
    Staff Member

    Joined:
    Mar 9, 2015
    Messages:
    3,426
    Likes Received:
    2
    Trophy Points:
    38
    cPanel Access Level:
    DataCenter Provider
    It looks like exim4 sets RLIMIT_NOFILE to 1000 reguardless. It really should be setting this to FD_SETSIZE. We should have a patched rpm out shortly.

    cPanel.net Support Ticket Number:
     
  9. cPanelNick

    cPanelNick Administrator
    Staff Member

    Joined:
    Mar 9, 2015
    Messages:
    3,426
    Likes Received:
    2
    Trophy Points:
    38
    cPanel Access Level:
    DataCenter Provider
    New exim4 rpms are now avalible. You do not need to upgrade unless your server has more then 500 virtual hosts in httpd.conf (ie > 1000 log files)

    Update Procedure:
    /scripts/updatenow
    /scripts/exim4


    iminteractive: thanks for posting the ticket number. it made it a lot easier to track down.

    cPanel.net Support Ticket Number:
     
  10. cyon

    cyon Well-Known Member
    PartnerNOC

    Joined:
    Jan 15, 2003
    Messages:
    320
    Likes Received:
    0
    Trophy Points:
    16
    once more: cpanel is realy great!!

    thx for fixing this!

    cPanel.net Support Ticket Number:
     
  11. Website Rob

    Website Rob Well-Known Member

    Joined:
    Mar 23, 2002
    Messages:
    1,506
    Likes Received:
    0
    Trophy Points:
    36
    Location:
    Alberta, Canada
    cPanel Access Level:
    Root Administrator
    Correct me if I'm wrong, but does not Cpanel v7.x automatically upgrade to Exim v4.x -- and if it does, has the problem been corrected so someone upgrading to v7.x will not have any Exim problems -- as related to the problem mentioned in this thread?

    cPanel.net Support Ticket Number:
     
  12. haze

    haze Well-Known Member

    Joined:
    Dec 21, 2001
    Messages:
    1,550
    Likes Received:
    3
    Trophy Points:
    38
    It looks like the new exim has been bundled with edge build 20.. so anyone upgrading to 7 should indeed have the patched exim.

    cPanel.net Support Ticket Number:
     
  13. Website Rob

    Website Rob Well-Known Member

    Joined:
    Mar 23, 2002
    Messages:
    1,506
    Likes Received:
    0
    Trophy Points:
    36
    Location:
    Alberta, Canada
    cPanel Access Level:
    Root Administrator
    Thanks for the info.

    Would be safe to say that you are running build 20 and not having any problems?

    cPanel.net Support Ticket Number:
     
  14. cyon

    cyon Well-Known Member
    PartnerNOC

    Joined:
    Jan 15, 2003
    Messages:
    320
    Likes Received:
    0
    Trophy Points:
    16
    which linux are you running?

    cPanel.net Support Ticket Number:
     
  15. kcdworks

    kcdworks Well-Known Member

    Joined:
    Jul 28, 2002
    Messages:
    186
    Likes Received:
    0
    Trophy Points:
    16
    Thanks, Nick!

    cPanel.net Support Ticket Number:
     
  16. haze

    haze Well-Known Member

    Joined:
    Dec 21, 2001
    Messages:
    1,550
    Likes Received:
    3
    Trophy Points:
    38
    I simply used the method that Nick suggested rather that upcp.

    cPanel.net Support Ticket Number:
     
  17. sexy_guy

    sexy_guy Well-Known Member

    Joined:
    Mar 19, 2003
    Messages:
    848
    Likes Received:
    0
    Trophy Points:
    16
    The E20 upgrade and Exim4 does not work properly. It has a duplicate email problem when posting to Mailling lists and displays errors and posts duplicated msgs to the forums as well. We remove all Exim4 and magically everthing is back to working order.

    cPanel.net Support Ticket Number:
     
  18. Christleo

    Christleo Well-Known Member

    Joined:
    Mar 13, 2003
    Messages:
    64
    Likes Received:
    0
    Trophy Points:
    6
    I Fellow and do it, the mail() seem still not working! i need it fix asap..

    WHM 7.1.0 cPanel 7.1.8-R45
    RedHat 8.0

    cPanel.net Support Ticket Number:
     
  19. Christleo

    Christleo Well-Known Member

    Joined:
    Mar 13, 2003
    Messages:
    64
    Likes Received:
    0
    Trophy Points:
    6
    mail ( )

    root [/etc]# sendmail
    2003-07-08 21:00:44 Exim configuration error in line 51:
    main option "sender_verify" unknown


    i hope that people can send me exim.conf the exim3 version... i reinstall the exim3 they sendmail have this problem

    cPanel.net Support Ticket Number:
     
  20. tAzMaNiAc

    tAzMaNiAc Well-Known Member

    Joined:
    Feb 16, 2003
    Messages:
    559
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Sachse, TX
    try going to the exim.conf (/etc/exim.conf) and searching for that option (sender_verify) and commenting it out or deleting it.. then restart exim.

    I do not have the option sender_verify in my exim.conf..

    Brenden

    cPanel.net Support Ticket Number:
     
Loading...

Share This Page