On Mon, Jun 15, 2020 at 12:46 AM Revant Nandgaonkar revant.one@gmail.com wrote:
On Thu, Jun 11, 2020 at 6:48 PM Nachiketa Sadhu sadhun@gmail.com wrote:
Hi,
I recently moved from Mumbai to Kolkata, where I have a fiber network connection who provided me with a private IP address for my machine. My local IP is 172.17.177.88 and the public IP is 45.250.245.79. My desktop is connected to a Wi-fi router with a DHCP host, which provides a IP to my desktop 192.168.1.46.
Public IP should be static. Generally costs extra. Check with your ISP. If it is not static and you can't get one then you may have to use some dynamic dns service.
Totally agree. About 5 years back, the cost of a static IP was about INR 2000/year. The OP can also create a CNAME record e.g. www.example.com pointing the Dyn DNS hostname. This should work for Webhosting with a cron shell script, updating the Dyn DNS hostname each time the "public" IP changes.
For the email server, it is a different ball game (see below).
I think mail server setup will be difficult then. I haven't tried setting up a mail server with dynamic dns service.
IMO, it is a *bad* idea hosting your own SMTP server, unless your objective is to become a subject matter expert in SMTP. Most ISP's IP pools are blacklisted in some email RBL, so outbound emails would be rejected -- you will have to constantly contact the RBL list admin to get unblocked. Besides, for incoming messages, you have to make sure your server is not an open relay, monitor spam filters to ensure there are no false positives, watch for DDoS attacks ... In the early 2000s I tried hosting my own email server for about 8 months and concluded to outsource the email aspect to a vendor that specializes in email hosting.
An alternate solution for outright email hosting -- (a) for inbound messages find a "Backup" MX service providers and poll their servers to "download" inbound messages (b) for outbound messages use a service provider like SendGrid or similar. Also read up on SPF, DMARC, DKIM DNS records, and ensure the information therein is aligned with each other.
--Arun Khan