trigggl wrote:Ok, I've come back to this. I'm trying to receive mail (from outside the network) on port 587. What do I have to do for the system to accept that? Is that a postmap setting? I don't have port 25 open and would prefer to keep it closed, but I guess I could open it if I had to. How do I even test port 587, or should telnet work (it doesn't)?
Should this setup just send if it weren't blocked by the ISP or is there something else I need to do? Am I confined to pop mail with my email provider? I'm using a dynamic DNS with Comcast as my ISP.
trouble is, external mail systems aren't going to know to connect to your mail server on a port other than 25
you can configure your postfix system to send to alternate ports much as you like, but far as receiving mail goes, if you're not able to be connected to on 25 (as in, inbound to your port 25), you may send mail fine, but you wont be receiving much if any. Some external hosts may automatically try 587, many will not. They should, but they don't.
having said that, if you want to try it, all you need is this in master.cf
that will enable the listener on port 587. Add that, restart postfix.
And yes, this setup should just flat-out send. If you want to see if any ports are blocked, telnet to my server on port 25 (renee.whitehathouston.com)
If it connects (you'll get a 554 error, but that's expected on a dynamic IP) then your connections to other hosts on port 25 aren't blocked. If it doesn't, then Comcast is blocking you (unless, of course, you have some other firewall that you control that might be blocking you)
Now, as far as sending to others whose systems are listening on 587, you'd want to set up transport_maps, meaning, you'd have to do it on a per-domain basis. Which is annoying, but no other way around it.
Ultimately if you cant accept inbound connections on 25, you're not going to receive much mail, and if you're unable to make outbound connections to remote hosts on 25, you aren't going to be sending much mail either.
Best of luck either way, hope that's somewhat helpful!