Now, let’s test to see if we can send an email to our mailbox via telnet:
Once connected, enter the following line by line:
If everything works out, you sould see a comfirmation message resemables this:
It is guaranteed that this email will end up in the spam box if you use Gmail. So take a look at your spam inbox to see if you received the test mail (it may take a minute to show up).
If you recevied the test email, then it means postfix is working properly. Now, let’s config Django to send email via postfix.
First, I added the following line to my settings.py file: