blocking outgoing mail only to cpanel servers?

Post Reply
MACscr
Junior Member
Posts: 46
Joined: 12 Jan 2007, 20:43

blocking outgoing mail only to cpanel servers?

Post by MACscr »

OK, so I recently uninstall Configservers mailscanner solution as my email scanning is now external. Incoming email is working perfectly, though i do have port 25 disabled for incoming connections except for connections from my anti-spam gateway. Outgoing 25 is open though. For some reason I have no problem emailing anyone on any other servers (even my zimbra servers), but i cant seem to be able to send emails to my other cpanel servers. The mail just since in the mail queue on my cpanel server and the connection times out to the other cpanel server im trying to email. As soon as I disable the csf firewall, the queue will empty and I can email fine. Here are my TCP/UDP configs:

# Allow incoming TCP ports
TCP_IN = "20,21,53,80,110,143,443,465,587,953,993,995,2096"

# Allow outgoing TCP ports
TCP_OUT = "20,21,22,25,37,43,53,80,110,113,443,465,587,873,953,2087,2089,2703,3306,5334,5514,49152,65534"

# Allow incoming UDP ports
UDP_IN = "20,21,53,953,3306,33434:33500"

# Allow outgoing UDP ports
# To allow outgoing traceroute add 33434:33523 to this list
UDP_OUT = "20,21,53,113,123,873,953,6277,33434:33523"

Any ideas? Any help is appreciated.

EDIT: I just noticed that i cant telnet remotecpanelserver 25 when the firewall is enabled either. Grrr. Why oh why if i have port 25 open for outgoing connections?
Sergio
Junior Member
Posts: 1687
Joined: 12 Dec 2006, 14:56

Re: blocking outgoing mail only to cpanel servers?

Post by Sergio »

You need to have port 25 open IN and OUT in TCP and UDP.
MACscr
Junior Member
Posts: 46
Joined: 12 Jan 2007, 20:43

Re: blocking outgoing mail only to cpanel servers?

Post by MACscr »

Why would i need port 25 open for incoming connections? Im not accepting incoming smtp connections except from anti spam gateway. LOL, UDP is definitely not involved here, at least not on 25.
Post Reply