Use the Static IP from my root Server to send Mails from my dynamic IP

1

Here i have the following scenario. I would like to maintain my own mail server due to data integrity and security risks. Also for easy backup etc. The problem is, that my ISP here in switzerland only provide dynamic IPs. E-Mails which are comming from SMTPs with a dynamic IP Adress will be rejected by nearly all big Mail providers. Therefore i had the following idea:

I have an root server somewhere else which has its own static public IP address. Now is there a way, i can use this IP Adress for all the traffic of my own server at home?

woudl this be possible with an IP2SEC Tunnel between those two servers?

Thank you for your answers :)

Regards Claudio

C. Hediger

Posted 2016-05-20T05:46:31.997

Reputation: 145

Where does the term 'root server' come from, anyway? As opposed to just 'server', I mean. – user1686 – 2016-05-20T06:08:52.663

1@grawity Root server means dedicated server, as opposed to managed server or virtual (private) server. AFAIK it’s mostly used in Germany. – Daniel B – 2016-05-20T06:22:06.093

Im sorry, i meant a vServer with root access and not a managed server where i only have the possibility to upload some html files. – C. Hediger – 2016-05-20T07:27:50.727

Answers

0

A tunnel or VPN between the two can be useful but is not necessary – you can just use standard SMTP relay mechanisms.

  • On the remote server, set up a TLS certificate and enable STARTTLS.
  • Configure it to permit relaying for authenticated clients – you could use either regular username/password authentication, or TLS "client certificate" auth, depending on what the SMTP software supports. (In Postfix it'd be permit_sasl_authenticated or permit_tls_clientcerts.)
  • Configure the local server to use your remote server as a "smarthost" or "relay host". There are plenty of Gmail-oriented tutorials, but they work just the same with any server.

user1686

Posted 2016-05-20T05:46:31.997

Reputation: 283 655

Great! thank you for your answer. i will try it this way. – C. Hediger – 2016-05-20T07:29:51.087