Koozali.org: home of the SME Server

Changing port of SMTP

howardk

Changing port of SMTP
« on: September 21, 2005, 03:42:10 PM »
In my network I have 2 web servers connected to a firewall. Like this.

...::::::::.:::.- Webserver2(sme 6) https
Firewall  
:..::.::.:...:.:.- Webserver1(suse 9.x) http

But my problem is that I need to use SMTP port 25 on both servers.
So how do I set up SME to use another port than 25?

Offline treyh

  • ****
  • 116
  • +0/-0
    • http://www.wilnet1.com
interesting
« Reply #1 on: September 21, 2005, 06:58:09 PM »
I do not know how to change the smtp port for SME but you shouldn't need to do that.

You didn't give a lot of description but here is what I can assume.

You put your https:// section of the site on the outside of the firewall because it's secure.

You put your http:// section of the site on the insode of the firewall because it's not secure.

I assume that you want to do the same thing with email. Have secure mail on the sme box and unsecure mail on the suse box.

If you're going to be using pop/smtp, which it appears that you want to, then simply setup SME as your email server. I'm not a big fan of mixing ssl with pop/smtp. If you're wanting to use webmail with http:// and https://, SME can do both at the same time.

Hope this answers your questions, if not, explain with more detail.
Trey - Network Specialist......

howardk

all my servers are behind the firewall
« Reply #2 on: September 22, 2005, 12:25:04 AM »
Sorry my drawing is a little bad; all my servers are behind the firewall.
One runs on port 80(http) the other on port 443(https). The reason for this is that I have all my archives and groupware on the https server, and I came up with this simple solution for running 2 servers on 1 ip.

Offline treyh

  • ****
  • 116
  • +0/-0
    • http://www.wilnet1.com
hmmm
« Reply #3 on: September 22, 2005, 04:58:57 AM »
explain to me how you're running 2 servers on 1 ip address.
Trey - Network Specialist......

howardk

Changing port of SMTP
« Reply #4 on: September 22, 2005, 02:30:41 PM »
Like I said I have the https and the http server behind my firewall.
Port 80 is forwarded to 192.168.1.161 and port 443 to 192.168.1.190.

Offline treyh

  • ****
  • 116
  • +0/-0
    • http://www.wilnet1.com
solution
« Reply #5 on: September 22, 2005, 02:50:25 PM »
Quote from: "howardk"
Like I said I have the https and the http server behind my firewall.
Port 80 is forwarded to 192.168.1.161 and port 443 to 192.168.1.190.


Here is what you can do on your firewall to accomplish your goal.

Port Forward 25 (outside)<-->25 (inside) suse
Port Forward 26 (outside)<-->25 (inside) SME

If you do it this way, all traffic on port 26 will be routed to port 25 on your SME box via ip, this way you don't have to change the smtp port.
Trey - Network Specialist......

howardk

server-manager/ Port Forwarding
« Reply #6 on: September 22, 2005, 03:34:12 PM »
Like this in sme server-manager/ Port Forwarding?
Protocol Source Port(s) Destination Host IP Address Destination Port(s)
TCP-.-.-.-.-.-.- 26 -.-.-.-.-.-.-.- 127.0.0.1 -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 25
UDP-.-.-.-.-.-.- 26 -.-.-.-.-.-.-.- 127.0.0.1 -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 25

Offline treyh

  • ****
  • 116
  • +0/-0
    • http://www.wilnet1.com
Re: server-manager/ Port Forwarding
« Reply #7 on: September 22, 2005, 11:29:56 PM »
Quote from: "howardk"
Like this in sme server-manager/ Port Forwarding?
Protocol Source Port(s) Destination Host IP Address Destination Port(s)
TCP-.-.-.-.-.-.- 26 -.-.-.-.-.-.-.- 127.0.0.1 -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 25
UDP-.-.-.-.-.-.- 26 -.-.-.-.-.-.-.- 127.0.0.1 -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 25


Yes and no, it's more like this. It would also be done on the router, not your SME box.

tcp port 26 (outside)-->forward to IP of SME (inside) on port 25

Make sense?
Trey - Network Specialist......

howardk

Changing port of SMTP
« Reply #8 on: September 23, 2005, 12:49:34 AM »
Of course; I have already opened port 26 on the firewall. I tried to send a mail with horde webmail but I don’t receive anything.

Offline treyh

  • ****
  • 116
  • +0/-0
    • http://www.wilnet1.com
..
« Reply #9 on: September 23, 2005, 02:24:21 PM »
I have some more questions.

1. are you using 1 domain for suse email and 1 domain for sme email?

2. do you only have 1 domain

3. do you want email, from a single domain, to be on both servers?
Trey - Network Specialist......