There are many people who want to send emails like ‘firstname.lastname@example.org’ or ‘email@example.com’. But there are few sources that explain how to make the necessary settings to do so, especially with Django Framework.
So I made this explanation for a simple reference for devs.
Make an account with Google Workspace here :
It will give you 14 days trial for free then you can use ‘Business Starter’ plan for 4,68 € / Month.
Now access to your account using Google Admin Console :
set your MX Records in your domain provider or your server using this configurations:
In this tutorial you will learn how to deploy your django (django channels) web app with daphne, postgresql and nginx on VPS
Django is python web framework.
Django Channels augments Django to bring WebSocket, long-poll HTTP, task offloading and other async support to your code
PostgreSQL, also known as Postgres, is a free and open-source relational database management system.
Nginx, is a web server that can also be used as a reverse proxy, load balancer, mail proxy and HTTP cache.
Daphne is a HTTP, HTTP2 and WebSocket protocol server for ASGI and ASGI-HTTP, developed to power Django Channels.