How do I change all the default ports for a mail server?
Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
How do I change all the default ports for a mail server?
I just set up a mail server but it doesn't work because my ISP blocks all the ports used for a web server and also mail server on their end (my modem does not have a router built-in). How do I not use the default ports like 25, 110, etc. for all my mail server programs so I can change the ports they use? I followed this guide on Ubuntu: http://flurdy.com/docs/postfix/
Also, if I do change these ports, will it affect my mail users? On Apache, I was able to change the default port 80 in the config to port 8080 and my website worked when someone else went to my domain address. If a user goes to my website and logs in to their e-mail (SquirrelMail) and sends an e-mail to someone like @gmail, will using different ports matter? (I run my own SMTP server.)
I got that, but now I can't receive e-mails because other e-mail services do not know to send e-mails to me @ port 225. Is there any other default SMTP port besides 25 that all e-mail services know to send to? Like most browsers know to check port 8080 as well as 80 for http servers (which is how I got my website working since my ISP blocks port 80. I just used port 8080 for my Apache web server and now everyone can see my website). So when other people send e-mails to my server, since port 25 is blocked, what other ports will they be trying to send through to?
That costs money though and I don't have any of that. I've set up everything so far for free (I even got the server for free) but for this mail thing, I have to purchase a relaying service? I have about 100 people using my mail server but they can't receive e-mails.
Note that firstly, you're violating your ISP's terms of service (TOS) and this *can* get you into trouble.
With this in mind, Dyndns.com has a free mailhop service designed to circumvent TOS.
It will reroute mail to whatever port you choose.
There is, however, the other issue that many places will block a mail server in an ISP's address block, because it's so often used for spam. For example, my own ISP has a somewhat nebulous TOS, where it's not specifically prohibited, but one is not supposed to use excessive bandwidth. So, I can more or less run a mail/web server as long as it's not used much.
However, many places will block it because it's in a dynamic ISP block.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.