6 Replies Latest reply: Jul 3, 2013 6:27 PM by d00dbro
d00dbro Level 1 Level 1 (40 points)

Incoming mail is working great on our server. Our ISP, Verizon, blocks port 25 outgoing supposedly to prevent viruses from sending spam. This throws a huge wrench in my otherwise clean plan to get a mail server going so I don't have to worry about space limitations. Macs can't get viruses, at least not yet >:(

 

I've heard that there are 3 standard ports: 25, 465, and 587 for SMTP. Verizon recommended that everyone switch their ports to 465 or 587 for Gmail, Yahoo, etc, so it seems like all the commercial email hosts work with ports 465 and 587. Of course, I can't send on just ANY port because it has to match an SMTP port the other mail server accepts. Will ports 465 or 587 work, and how do I switch my server over to those ports (I know how to port forward already)?

  • 1. Re: How do I change the outgoing SMTP port?
    erict43 Level 2 Level 2 (160 points)

    That should be a setting on your mail server software...and then you'll have to configure your mail clients that will receive mail to use the same port.  You should be able to choose just about any open port you want.

  • 2. Re: How do I change the outgoing SMTP port?
    d00dbro Level 1 Level 1 (40 points)

    I'm using the built-in mail host in Mac OS X Snow Leopard server. I don't see any option for outgoing SMTP ports in Server Admin's mail section.

  • 3. Re: How do I change the outgoing SMTP port?
    erict43 Level 2 Level 2 (160 points)

    You know, now that I think more about it, I think you'd need to have an SMTP relay service outside of your network.  Since your server is sending mail to any other mail server, it will have to use 25, because that's where mail servers listen for incoming mail.

     

    The other problem you're going to have is that a lot of servers will reject anything coming from a residential IP address, so a lot of your outgoing mail is going to get flagged as spam, or blocked outright, by the receiving server.

     

    Your other alternative is to upgrade your internet connection to business class, then they won't block your ports.  They don't block it to prevent spam getting to you, they block it to prevent spam going out from their IP's, which prevents their business customers from getting blacklisted by the spam blocking services.

  • 4. Re: How do I change the outgoing SMTP port?
    d00dbro Level 1 Level 1 (40 points)

    So there's no way to send with other ports? You HAVE to use port 25? If that's the case, oh well. I already have a different email service, but I kinda wanted a local one.

  • 5. Re: How do I change the outgoing SMTP port?
    Camelot Level 8 Level 8 (45,790 points)

    So there's no way to send with other ports? You HAVE to use port 25?

     

    Sure there is - talk to every mail administrator of every domain you might ever want to send mail to and have them reconfigure their mail servers to listen on some arbitrary port number that you define. Wait for them to do it (it shouldn't take them too long), and then you're done.

     

    Oh, no, hang on a minute... none of them are going to do that, are they?

     

    But that's what you're asking for - you're asking for them to accept mail on some non-standard port number just so you can get around Verizon's mail blocking.

     

    There is a reason why standard port numbers (defined by IANA) exists - just so that everyone's talking on the same page (or at least in the same chapter of the same book). You can't arbitrarily pick a port number and expect it to work unless both sides of the connection know to use it. You know port 25 works for SMTP because that's the standard. You can use any port number you like for your own mail because you can configure your own mail client to use a non-standard port, but you can't convince the rest of the world to follow suit (at least not without good reason).

     

    In this case your options are to relay your mail through Verizon's servers, upgrade to their business plan (which supports hosting your own mail server and doesn't break the user agreement), or setup another mail server somewhere else that you can relay your mail through.

  • 6. Re: How do I change the outgoing SMTP port?
    d00dbro Level 1 Level 1 (40 points)

    OK. I was just thinking that there was more than one standard port that everyone used, not just port 25. I guess I was wrong.