My solution to port 25 being blocked
So I’ve spent the last 2 days straight trying to get a full scale mail server running on my development Ubuntu server. I had heard it wasn’t going to be easy, but it needed to happen. The plan was to go all out (Postfix + Courier IMAP + Amavisd-new + SpamAssassin + ClamAV + SASL + TLS + SquirrelMail + Postgrey). At around 7:00pm today, when I was completely defeated as to why it wasn’t working it hit me: I bet my ISP has port 25 blocked. A quick search on Google proved me right.
Depressed and annoyed I turned off my laptop, went to the library and then to the gym. While reading Data Mining slides it hit me, I have my main dedicated server at GoDaddy (not to say they haven’t done me wrong in the past). I was considering using some relay host, but I thought of something better: I’ll write a PHP script, which will reside on the main server, and will send mail the standard way (sendmail). The PHP script (lets call it phpPostFix) will be accessed as a URL, and its parameters will be simply:
- To:
- From:
- Subject:
- Body:
On the development server any time I have:
<?php
file_get_contents("http://www.xxxxxx.com/phpPostFix.php?to=[email protected]&from=.....");
?>
Then the email will be sent. Simple as that. I’ll post the script when its done.
Have a second? Check out this great Canadian Health & Living Store based in Toronto

