Reply
 
Thread Tools Display Modes
  #1  
Old 01-23-08, 01:44 PM
wardmundy wardmundy is offline
Nerd Uno
 
Join Date: Oct 2007
Posts: 3,881
Install Comcast As SendMail SMTP Gateway on Port 587
True to form, Comcast has recently taken to screwing its customers by shutting down port 25 on your cable modem. This means you not only can't run your own SMTP server on a box such as PBX in a Flash, but you can't even connect through a mail client to Comcast's SMTP server to send mail on port 25. To find out whether they've done it to you, issue the following command. If it times out, you lose. Otherwise, you're still OK. Type quit to exit.

telnet cutedgesystems.com 25


Configuring SendMail to handle the change was painful so I thought I'd document the steps for those of you that get screwed next. When you complete the following steps, outbound emails (including voicemails that have been configured for delivery by email in FreePBX) will be sent from your PBX in a Flash server through SendMail to Comcast's secure server on port 587. You will need your Comcast username and password to complete this install.

This tutorial is for PBX in a Flash systems only and assumes you already have performed the email fixup steps outlined in this Nerd Vittles tutorial. If not, do that first. Then log into your server as root and issue the following commands in order:
Code:
cd /etc/mail
hostname -f > genericsdomain
touch genericstable
makemap -r hash genericstable.db < genericstable
mv sendmail.mc sendmail.mc.orig
wget http://pbxinaflash.net/source/sendmail/sendmail.mc.comcast
mv sendmail.mc.comcast sendmail.mc
mkdir -p auth
chmod 700 auth
cd auth
echo AuthInfo:smtp.comcast.net "U:smmsp" "I:user_id" "P:password" "M:PLAIN" > client-info
echo AuthInfo:smtp.comcast.net:587 "U:smmsp" "I:user_id" "P:password" "M:PLAIN" >> client-info
# Stop here and edit client-info (nano -w client-info) in both lines.
# Replace  user_id with your Comcast account name
# Replace password with your real password
# Be sure to replace the double-quotes shown above if they don't appear in the file!!!# Save your changes (Ctrl-X, Y, then Enter)
chmod 600 client-info
makemap -r hash client-info.db < client-info
cd ..
make
service sendmail restart
Now you should be back in business. The process is similar to use Gmail as your outbound SMTP server, and I'll document that for everyone... soon. Special thanks to Linux Home Automation for all the helpful information.

WARNING: This design has not been tested with direct exposure of SendMail to the Internet and should NOT be used without a firewall blocking inbound port 25 and 587 traffic. If you don't heed this advice, you may risk turning your server into an Internet mail relay host in which case you'll probably lose (what's left of) your Comcast account for aiding and abetting the proliferation of...

Last edited by wardmundy : 05-04-08 at 09:00 AM.
Reply With Quote
  #2  
Old 01-23-08, 03:04 PM
jroper jroper is offline
Guru
 
Join Date: Oct 2007
Posts: 3,333
Hi

Note that port 25 and port 587 are closed by default on PiaF in IPtables, but an firewall rarely hurts.

Joe
Reply With Quote
  #3  
Old 01-27-08, 11:20 AM
marc1 marc1 is offline
Junior Member
 
Join Date: Nov 2007
Posts: 11
Originally Posted by wardmundy View Post
The process is similar to use Gmail as your outbound SMTP server, and I'll document that for everyone... soon.
Great info here Ward.

Although Gmail is a great service, there are many other providers. It might be helpful if you kept these instructions generic.

Also, noticed another user accomplished the same thing PostFix.

Last edited by marc1 : 02-06-08 at 05:47 PM.
Reply With Quote
  #4  
Old 02-06-08, 07:23 PM
marc1 marc1 is offline
Junior Member
 
Join Date: Nov 2007
Posts: 11
Originally Posted by wardmundy View Post
Code:
wget http://pbxinaflash.com/source/sendmail/sendmail.mc.comcast
should be

Code:
wget http://pbxinaflash.net/source/sendmail/sendmail.mc.comcast

Last edited by marc1 : 02-06-08 at 07:34 PM.
Reply With Quote
  #5  
Old 02-11-08, 08:39 AM
wardmundy wardmundy is offline
Nerd Uno
 
Join Date: Oct 2007
Posts: 3,881
Thanks. Fixed it. Sorry.
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 08:58 PM.


Design by Vjacheslav Trushkin, color scheme by ColorizeIt!.
Powered by vBulletin®
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Copyright ©2007-2008, Ward Mundy & Associates