I can't seem to figure out what is the issue and am hoping someone can help me. I have set up a postfix mail server that can send and receive mail. But if I try to telnet mydomain.com 25 from a different public ip it does not connect. Though if I ssh to the box and telnet mydomain.com 25 I connect. I am not using a firewall currently just to eliminate that as an issue. My thoughts are that the problem is with the mynetworks = in postfix. But that is set right
(not my real ip but I use 66.244.243.26/29 as public ip and 66.244.243.27/29 as mail server)
I can connect from this public ip for imap but smtp will not connect. Basically I only want this other public IP to be allowed to use this mail server to send. I have used squirrelmail to send mail so the smtp is working for localhost. I just don't know is there any settings on freebsd that you need to open to allow to connect to smtp (port 25)? Because I would think that telnet mydomain.com 25 would work. Because as I said there is no firewall on. I have tried enabling inetd in rc.conf and uncommenting the telnet part thinking that was this issue. Still the same result. Any suggestions on where else I can look to figure out where it is getting blocked? The maillog is not showing any attempt of a connection.
Code:
mynetworks = 66.244.243.24/29, 127.0.0.0/8
(not my real ip but I use 66.244.243.26/29 as public ip and 66.244.243.27/29 as mail server)
I can connect from this public ip for imap but smtp will not connect. Basically I only want this other public IP to be allowed to use this mail server to send. I have used squirrelmail to send mail so the smtp is working for localhost. I just don't know is there any settings on freebsd that you need to open to allow to connect to smtp (port 25)? Because I would think that telnet mydomain.com 25 would work. Because as I said there is no firewall on. I have tried enabling inetd in rc.conf and uncommenting the telnet part thinking that was this issue. Still the same result. Any suggestions on where else I can look to figure out where it is getting blocked? The maillog is not showing any attempt of a connection.