There are many people who want to send emails like ‘’ or ‘’. 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.

Initialize Google Workspace account

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.

We will…

Okba Boularaoui

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store