Results 1 to 7 of 7

Thread: fsock

  1. #1
    Join Date
    Jan 2007
    Posts
    688

    fsock

    Cannot send mail via php mail send


    Warning: fsockopen() [function.fsockopen]: unable to connect to localhost:25 in /home/user/public_html/smtpmail/class.smtp.php on line 105



    How do I correct this? I'm using Cpanel with php 4.4.8, apache 2.2, mod suphp

  2. #2
    Join Date
    Jan 2007
    Posts
    688
    I'm also getting error code -12263 on another domain

    Apache error logs shows

    [Fri Mar 14 20:16:45 2008] [error] [client 65.19.80.73] Invalid method in request \x16\x03\x01

  3. #3
    Join Date
    Apr 2000
    Location
    California
    Posts
    3,051
    Make sure you allow connections on port 25, that local SMTP is allowed and it's running. Also, make sure you have this enabled for PHP (check php.ini or phpinfo()'s output to see).

    The "Invalid method in request" error is likely unrelated to the SMTP issue, are you reporting two different issues for two different sites?

  4. #4
    Join Date
    Jan 2007
    Posts
    688
    [Fri Mar 14 23:13:30 2008] [error] [client 65.19.80.73] Invalid method in request \x16\x03\x01

    Thats for another domain

  5. #5
    Join Date
    Oct 2004
    Location
    Kerala, India
    Posts
    4,743
    If you have installed any firewall program such as apf/csf make sure the smtp related settings are done properly.
    David | www.cliffsupport.com
    Affordable Server Management Solutions sales AT cliffsupport DOT com
    CliffWebManager | Access WHM from iPhone and Android

  6. #6
    Apf configuration is at /etc/apf/conf.apf

    Look for IG_TCP_CPORTS in the file and make sure port 25 is listed in it.

    check if exim is running or not with
    service exim status
    UltraUnix Internet Services
    Quality service since 2000!
    Reliability . Simplicity . Affordability

  7. #7
    Join Date
    Mar 2008
    Location
    kolkata, India
    Posts
    102
    After restart apf you can try the following:

    Stop EXIM
    kill all exim process running on top
    kill all imap process running on top
    start EXIM
    Sysfirm
    So you think your server is secure?
    Try our security Service
    With SysFirm

  8. Newsletters

    Subscribe Now & Get The WHT Quick Start Guide!

Related Posts from theWHIR.com

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •