Published by admin on 22 Dec 2008
Postfix, SASL and Comcast…
![]()
I’ve been wanting to set up outbound mail server for quite some time for alerting, spoofing and other fun activities. Unfortunately, my ISP (Comcast) blocks outbound SMTP over port 25. After a little searching around I found some articles showing Comcast end users how to set up their mail clients and noticed there wasn’t much support for people who wanted to run their own mail servers. Well, in a round about way I found enough information to get my test server bouncing mail through the Comcast server and I want to share how it works.
The first thing I noted through trial and error was that in my postfix logs I was getting a message stating that my external IP had been blocked from sending mail and had been reported to spamhaus. Upon further investigation, I found out that due to the levels of spam that been sent via Comcast IP’s they have now moved to allowing Comcast customers to relay smtp traffic through smtp.comcast.net over TCP port 587.
So I then told my email server (postfix) to relay my outgoing mail to comcasts smtp server (smtp.comcast.net) over TCP port 587 by editing “/etc/postfix/main.cf”.
I then cycled the postfix daemon (sudo /etc/init.d/postfix reload) only to find that it wouldn’t allow me to send email without first authenticating using Simple Authentication and Security Layer (SASL). This was a little discouraging; however I can still encrypt the contents of any email I send so why not! After a little more digging and figured out how to configure postfix to authenticate to Comcast.
Add SASL Parameters to /etc/postfix/main.cf
smtp_sasl_security_options =
smtp_sasl_password_maps = hash:/etc/postfix/sasl_password
Create /etc/postfix/sasl_password with the following. Your username and password are the same as what you use for your Comcast email account. I didn’t have one of these yet, but a simple call to Comcast support and they’ll setup it up no problem.
Once you’ve got /etc/postfix/sasl_password you’ll need to change the permissions of the file and postmap the executable to generate a db file.
postmap /etc/postfix/sasl_password
The next step is just a little praying and reload of the postfix daemon and you’ll be sending email like a champ. Some of the side effects I’ve found by sending through this relay agent was that my emails are much less likely to get caught in my webmail spam filter.
Anyone else have their ISP doing this? It seems like a decent way of preventing or at least compartmentalizing it for better manageability.










