Link to home
Start Free TrialLog in
Avatar of michaelzhou23
michaelzhou23

asked on

How do I unblock the port 25 in my mac firewall?

How do i unblock the port 25 in my mac firewall? I cannot use my mail client such Mail or Entourage. I did
telnet mailserver 25 and got "connection refused".
On the other hand, I can receive mail because the incoming mail port 993 is opened, I did
telnet mailserver 993 and was able to get through.
I can use Outlook on my Windows to send mail.
So I reckon the port 25 must have been blocked by my mac.
Thanks!
Avatar of Jascot
Jascot
Flag of United States of America image

This isn't a Mac answer for you, but you may wish to check with your ISP, especially if you are using a mail server other than your ISP's mail server. Many ISPs are now blocking outgoing connections to port 25 as a way to try to cut down on spam being sent by virused Windows PCs. If you are not using your ISP's mail server, then see if your mail server supports sending via port 587 or port 465 with SSL. Those are alternate ports which many mail servers allow for sending emails.
can you double check the outgoing server settings in your outlook since you are able to send out email there? which outgoing server is using? which port is using?

hope it helps.
Avatar of michaelzhou23
michaelzhou23

ASKER

No, my ISP is not blocking port 25. I just phoned them. Additionally, I can use outlook to send mails on my Windows, so port 25 must be open at least in ISP.
I used exactly the same setting as the one I am using for Outlook on Windows.
about leopard firewall settings, heres a few tips:

open terminal;

to add a port:
sudo ipfw add allow [udp or tcp] from [port] to [port]
So, if you want allow port 25 with tcp youd type sudo ipfw add allow tcp from 25 to 25

to see your rules:
sudo ipfw list

to delete an open port:
first type sudo ipfw list, youll get something like this

65535 allow ip from any to any

take the number proceeding the rule you want to delete and type sudo ipfw deletem [rule number], so if I wanted to delete the rule 33500 allow tcp from 0.0.0.80 to 0.0.0.803 Id just type
sudo ipfw delete 65535


And using 587 or 465 with SSL does not work either. Anyhow, down to my initial question, is it possible that my Mac firewall blocks port 25?

Thanks!
thanks i will try adding the port!
Hi,
  I tried adding the port as "sudo ipfw add allow tcp from 25 to 25" but still no luck.
  I did notice one thing though: when i telnet mailserver 25, after a short while it displays:
telnet: connect to address 74.85.6.10: Connection refused
telnet: Unable to connect to remote host
  However, if I telnet other meaningless ports such telnet mailserver 888, it is trying to connect infinitely.
  So I guess either the system must know something special about port 25?
  Thanks!
ASKER CERTIFIED SOLUTION
Avatar of kanlue
kanlue
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Hi kanule,
  I think we may get closer.
  I tried telneting to gmail smtp and got rejected as well:
********************
telnet smtp.gmail.com 25
Trying 209.85.201.109...
telnet: connect to address 209.85.201.109: Connection refused
Trying 209.85.201.111...
telnet: connect to address 209.85.201.111: Connection refused
telnet: Unable to connect to remote host
**********************
  On the other hand, I can telnet to port 25 on any mail server from my windows machine, in the same network.
  So logically, I don't see any other reason than that Mac is blocking port 25.
  Thanks!
Hi kanlue,
  I've managed to send mails finally. The ISP blocked the port 25 and I asked them to turn it on for me so I get through now.
  However, one thing confuses me infinitely though, even before they turn it on for me, why was I able to send mails on my Outlook on Windows platform? I have been doing that for 2 years! Only until the last week that i bought my Mac. Does the ISP even know which operating system you are using? That's a wicked phenomenon.
  Thanks!
hi michaelzhou23, do you need to connect to vpn before you open the outlook?
and also who is your ISP? just curiosity.

thanks for the update, and glad that you have it fixed.
No, I did not need to VPN when I was using Outlook on Windows, the time when the smtp port (25) was blocked by my ISP. I'm using Australia's optus.