Results 1 to 7 of 7
Thread: fsock
-
03-14-2008, 08:57 PM #1Web Hosting Master
- 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
-
03-14-2008, 09:17 PM #2Web Hosting Master
- 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
-
03-14-2008, 10:24 PM #3Web Hosting Master
- 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?
-
03-15-2008, 12:14 AM #4Web Hosting Master
- 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
-
03-15-2008, 05:29 AM #5Web Hosting Master
- Join Date
- Oct 2004
- Location
- Kerala, India
- Posts
- 4,771
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
-
03-15-2008, 05:44 AM #6Junior Guru Wannabe
- Join Date
- Oct 2006
- Posts
- 34
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
-
03-17-2008, 08:42 AM #7WHT Addict
- Join Date
- Mar 2008
- Location
- kolkata, India
- Posts
- 102