LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 07-18-2009, 10:11 AM   #1
SentralOrigin
Member
 
Registered: Jul 2005
Distribution: Gentoo, Ubuntu
Posts: 318

Rep: Reputation: 30
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.)
 
Old 07-18-2009, 11:08 AM   #2
conraid
Member
 
Registered: Feb 2008
Location: Leghorn, Tuscany, Italy
Distribution: Slackware
Posts: 122

Rep: Reputation: 38
Set the port in an smtpd entry in the master.cf file.
For example

225 inet n - n - - smtpd
 
Old 07-18-2009, 11:47 AM   #3
SentralOrigin
Member
 
Registered: Jul 2005
Distribution: Gentoo, Ubuntu
Posts: 318

Original Poster
Rep: Reputation: 30
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?
 
Old 07-18-2009, 05:00 PM   #4
conraid
Member
 
Registered: Feb 2008
Location: Leghorn, Tuscany, Italy
Distribution: Slackware
Posts: 122

Rep: Reputation: 38
some use port 2525, or 465 as for ssl, but I do not think that solves your "problem"

otherwise there are service like
h_t_t_p://www.smtpport.com/
 
Old 07-18-2009, 05:15 PM   #5
SentralOrigin
Member
 
Registered: Jul 2005
Distribution: Gentoo, Ubuntu
Posts: 318

Original Poster
Rep: Reputation: 30
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.
 
Old 07-18-2009, 06:07 PM   #6
scottro11
Member
 
Registered: Jun 2009
Location: NYC
Posts: 263

Rep: Reputation: 59
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.
 
Old 07-18-2009, 06:10 PM   #7
SentralOrigin
Member
 
Registered: Jul 2005
Distribution: Gentoo, Ubuntu
Posts: 318

Original Poster
Rep: Reputation: 30
I believe DynDNS's mailhop service costs money
 
Old 07-18-2009, 08:52 PM   #8
scottro11
Member
 
Registered: Jun 2009
Location: NYC
Posts: 263

Rep: Reputation: 59
Hrrm, it used to be free. (I think)

However, I see you are quite correct.
 
Old 10-11-2009, 10:53 PM   #9
djuhl30
Member
 
Registered: Dec 2005
Location: IRAQ (BACK @ FT HOOD NOW)
Distribution: GENTOO now
Posts: 98

Rep: Reputation: 16
Does MX records have anything to do with this?

I don't understand it completely..

Dave
 
Old 10-11-2009, 11:19 PM   #10
scottro11
Member
 
Registered: Jun 2009
Location: NYC
Posts: 263

Rep: Reputation: 59
It's not simple, seriously. An MX record is the where the mail goes for a domain.

See if this explanation makes sense.

http://bobcares.com/blog/?p=29
 
  


Reply



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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Cannot Open Mail Server Ports 25, 110, and 220. Other Ports will open. Binxter Linux - Newbie 9 11-29-2007 02:03 AM
Crontab: How to change the default notification E-mail address? rignes Linux - Software 4 04-04-2007 02:21 PM
how do i change my default bit-torrent ports jasonmcneil0 Linux - Software 0 08-17-2004 08:13 PM
how do i change ports for ftp server Kertais909 Linux - Networking 3 07-21-2004 04:18 AM
how to change the default mail delivery location mnisski Linux - General 3 10-21-2003 08:59 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 11:26 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration