Koozali.org: home of the SME Server

SME Server - Multiple domains, multiple gateways

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: SME Server - Multiple domains, multiple gateways
« Reply #15 on: July 12, 2012, 10:39:13 PM »
I bound the ethernet card to a 2nd ip address using
Code: [Select]
ifconfig eth0:0 192.168.1.31 broadcast 192.168.1.255 netmask 255.255.255.0then tried to route it through the 2nd router by using
Code: [Select]
ip route add 192.168.1.31 via 192.168.1.2 dev eth0:0

This makes no sense at all. The routing table entry you add is not used, because 192.168.1.31 is a local IP address, so there is no need to route at all.

WIth multiple IP addresses configured on your NIC, you can do what you want, but you need to set up "policy routing" rules.

http://lartc.org/howto/lartc.rpdb.multiple-links.html

Without multiple IP addresses, I don't think it is possible.

Your simplest solution by far is just to use a single IP address. Many, many, many SME server users operate multiple domains on one server.

Offline janet

  • *****
  • 4,812
  • +0/-0
Re: SME Server - Multiple domains, multiple gateways
« Reply #16 on: July 13, 2012, 01:38:35 AM »
TrevorNWatson

Quote
So if we switch back to a single IP address for all domains, we may not be able to send email out to all of our clients.   I wonder if we even deal with the people that were giving that grief anymore

The issue most likely behind that problem (if still existing) may be resolved by configuring your sme server to send mail via your ISP's smtp server, there is a section in sme server manager panel for that. The credentials of your ISP will then be tested/checked by other mail servers (rather than the credentials of your sme server), and I assume they will be reliable. End users will not know any difference compared to sending direct to other email servers.
If what you want was easily achievable with sme server, then Charlie or Gordon R would have implemented that ages ago. I suggest you follow Charlies advice, he is probably the worlds leading expert on sme server (with apologies to Gordon R). Just use one external IP to host multiple domains on your sme server and get your ISP & Domain/DNS Registrar to tweak rdns & spf & whatever else records as necessary.
« Last Edit: July 13, 2012, 01:44:05 AM by mary »
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.