This blog is NOFOLLOW Free!
Written by Bradford
Posted @ 12:33 pm

My wife’s parents are in town and they have signed up for Charter cable’s high speed internet access while they are up from Florida. Charter blocks port 25 except when relaying through their SMTP server. Right now they are using my webserver’s SMTP server to send mail, and we really didn’t feel like changing that since they will be switching back when they head back down. In order to circumvent this and make it so that they wouldn’t have to change their mailserver settings on their laptop again, I decided to open up a second port for SMTP.

Choosing A Port

First you want to decide on a port. Many use port 26 as the alternate SMTP port and CPanel recommends it, but several ISPs who do port 25 filtering also filter port 26, so it really isn’t a great choice. I personally recommend conforming (at least partially) to the RFC’s, so I decided to go with port 587 based on RFC4409.

Setting Up Exim To Listen On Your Chosen Port

Login to your Web Host Manager ( http://whatever.yourserver.com/whm ) and navigate to Service Configuration -> Service Manager. Scroll to the bottom and you will see an option for “Exim on another port”. Check this box and set it to the chosen port (in my case 587).

Hmm…Firewall?

I’m assuming you are running a firewall of some sort (I hope!), likely APF. To open the port in APF run a…

locate conf.apf

Assuming the file is located in /etc/apf/ you need to…

cd /etc/apf
nano conf.apf

Find the line…

# Common ingress (inbound) TCP ports
IG_TCP_CPORTS="20,21,22,25,53,80,110,143,443,465,993,995,2082,2083,2084,2086,2087,2095,2096,3306,6666,7786,9000"

and add port 587 to it…

# Common ingress (inbound) TCP ports
IG_TCP_CPORTS="20,21,22,25,53,80,110,143,443,465,587,993,995,2082,2083,2084,2086,2087,2095,2096,3306,6666,7786,9000"

Viola!

There you have it! Pretty painless for the most part and easy enough for anyone who has WHM and SSH access to a CPanel server. Questions? Suggestions for another walkthrough? As always, ask away!


Bookmark and Share

Rate this post:
1 Star - So-so...2 Stars3 Stars4 Stars5 Stars6 Stars7 Stars8 Stars9 Stars10 Stars - GREAT! (12 votes, average: 9.25 out of 10)
Loading ... Loading ...



Related Posts


Comments Off   ∫  


Categories:   CPanel   •   Control Panels   •   Linux   •   Server Administration

Tags:     •     •  






RSS feed

Comments

No comments yet.

Sorry, the comment form is closed at this time.

 
Subscribe to
The Webmaster's Edge RSS

Subscribe by
E-Mail Subscription


Recent Posts Title
Recent Posts NoDisplay
Categories Title
Categories NoDisplay
Comments Title
Tag Cloud Title
Tag Cloud NoDisplay
Archives Title
Archives NoDisplay
Commentators
  • No commentators.
Shop Cloud Title
Shop Cloud