Blocking Port 25

So, for the first time this weekend, I’m on a network where outgoing mail on port 25 is blocked. How annoying.

I use a number of mail servers in a number of different ways. Typically, when on one of my Linux boxes (zeus or athena) I’ll send mail directly from those servers by using a localhost Postfix installation, and no smart or relay hosts. I don’t really see a need for my ISP to see my mail, and doing it this way is the default setup for most Linux distros that I’m aware of.

If I’m someplace that doesn’t have a mail server (ie the powerbook, creusa, or the mac mini, hermes), I use athena as a mail host, on which I have installed SASL authentication. Athena is set up to accept mail in a couple cases:

1. Mail from local network. This includes all the IPs in my block on Sagonet.
2. SASL Authenticated users: This users password authentication against the local mail database to check users who can login to the server to send mail.

As such, the server is protected against being an open relay (so long as I don’t get a spammer on the local machine, but I don’t think that’s going to be the case), and I like having it there as a backup for when other mail servers fail me. wedu’s mail uses POP before SMTP for authentication, which is all well and good, but can be a pain since the logs are reset at :45 past the hour, and if you try and send mail right after that, you get a nice “Relay denied” message.

In any case, I tried to send mail this morning via crschmidt.net… and got a timeout. Tried getting there from here, no go. Panicked a bit, since this is my main mail server, and if it’s down, that’s a bad thing. Tested it from zeus: no problems. Tested it locally: no problems. Tried going to another port 25… problems. So it’s on the Ameritech end. Great.

Set up an ssh tunnel: ssh -L 25:localhost:25 crschmidt@crschmidt.net. Set up a server in Mail.app as localhost port 25. Forward my mail. Sigh at Ameritech. Bitch in weblog. And the circle of life continues.

4 Responses to “Blocking Port 25”

  1. nikkiana Says:

    Oh my god. I can’t even begin to describe how annoying networks where port 25 for outgoing mail are. I always forget when I’m on my laptop that I need to login to my webmail in order to send out shit when I’m not at home because everyone I freaking know is on an ISP that has port 25 blocked. Bleeeeeeeeh.

  2. Ramesh Says:

    You got any solution to ort 25 problem? I am having the same problem.

  3. Christopher Schmidt Says:

    Ramesh: Several. One I already mentioned in the post (set up an SSH tunnel to a different host, and use localhost as an SMTP relay via ssh). An alternative is to just use a host which supports sending mail on ports other than 25. If you’re interested, I could set you up with an email account which offers this possibility, for a fee. If you’re interested, drop me an email to crschmidt at crschmidt dot net.

  4. Ramesh Says:

    Please can you give me your contact information.
    I will call you today eveninf I am in New York.
    I would like to get a solution from you.
    I am using my own SMTP server to sent ot mass emmails.
    Thanks,
    Ramesh Annam