Portal Home > Knowledgebase > Articles Database > issue with csf and port 465
issue with csf and port 465
Posted by blogt, 11-20-2012, 08:55 AM |
Hello to all
please help me
I have use smtp gmail server to send my emails in my server linux Centos
I have installed and enabled CSF after my emails isn't sent
allow_url_fopen is on
openssl s_client -connect smtp.gmail.com:465 (is correct)
port 465 is open
465 is added to TCP_OUT
I have this message:
SMTP Error: Could not connect to SMTP host. Message was not sent.Mailer error: SMTP Error: Could not connect to SMTP host.
disable CSF and it is working.
what is issue? sorry for bad english
|
Posted by MikeDVB, 11-20-2012, 09:06 AM |
If you didn't restart CSF after adding 465 to tcp_out, that's your issue. You didn't say "465 is added to TCP_OUT and we restarted CSF to load the new rules." so I would assume you didn't.
|
Posted by blogt, 11-20-2012, 09:23 AM |
restart CSF after new rules csf -r it isn't my issue
|
Posted by MikeDVB, 11-20-2012, 09:26 AM |
All CSF really is, is a front-end to IPTables. I'd check your TCP_OUT line for typos/errors.
|
Posted by blogt, 11-20-2012, 10:02 AM |
what should i do now? thanks
|
Posted by blogt, 11-20-2012, 10:34 AM |
Allow incoming TCP ports
TCP_IN = "20,21,22,25,53,80,110,143,443,465,587,993,995,2222"
# Allow outgoing TCP ports
TCP_OUT = "20,21,22,25,53,80,110,113,443,465,2222"
# Allow incoming UDP ports
UDP_IN = "20,21,53"
# Allow outgoing UDP ports
# To allow outgoing traceroute add 33434:33523 to this list
UDP_OUT = "20,21,53,113,123,465"
|
Posted by anuja9991, 11-20-2012, 11:31 AM |
You can try following.
1. Try to whitelist Ip's of smtp.gmail.com in csf.
2. Try to telnet 465 port from your server and make sure if it works.
|
Posted by blogt, 11-20-2012, 12:07 PM |
1- How?
2- telnet I get a connection timeout
|
Posted by blogt, 11-20-2012, 12:18 PM |
netstat -lan | grep 465
tcp 0 0 0.0.0.0:465 0.0.0.0:* LISTEN
tcp 0 0 :::465 :::* LISTEN
use windows cmd
telnet ip 465 it is connected
|
Posted by DewlanceHosting, 11-20-2012, 04:54 PM |
What is output of this command
and
Try to Flush CSF Blocked IP and remove temporary blocked ip address
|
Posted by blogt, 11-21-2012, 01:50 PM |
1- FATAL: Module test not found.
2- Can't open perl script "test.pl": No such file or directory
|
Posted by DewlanceHosting, 11-21-2012, 02:06 PM |
Maybe your SMTP server is not configured properly? Port 25 is working properly?(you can send/receive email from port 25?)
|
Posted by blogt, 11-21-2012, 04:42 PM |
Dear when CSF is disable all things is correct
|
Posted by ralfmaxxx, 12-19-2012, 10:50 AM |
add to csf.conf
TCP6_OUT = "22,25,53,80,110,113,443,465,587"
and restart.
Be happy.
|
Posted by eyugcom, 08-19-2013, 06:49 AM |
Thanks a ton.. it worked..
|
Add to Favourites Print this Article
Also Read
OVH Bandwidth (Views: 850)
if isset (Views: 763)
EZPZ of late (Views: 813)