How to Self-Host Email the Right Way (to avoid the spam folder) @TonyTeachesTech
How to Self-Host Email the Right Way (to avoid the spam folder)  @TonyTeachesTech
Uploaded November 2025 | Updated November 2026, 6 minutes ago
Learn how to self-host your own email server using mailcow, an open-source suite of Docker containers. This step-by-step tutorial shows you how to set up an full-featured email server on a cloud server, so you can get private email on your custom domain and stay in full control of your data and privacy.

This guide covers everything from server setup to configuring the critical DNS records (SPF, DKIM, and DMARC) required to avoid the spam folder and achieve a perfect mail deliverability score.

πŸ”— Get a server with Verpex (Allows PTR Records): https://ttt.do/VerpexMailcow
The above link is an affiliate link. I may earn a commission if you sign up, at no extra cost to you!
πŸ”— Code snippets and all links πŸ‘‰ https://tonyteaches.tech/mailcow-self-hosted-email-server

What You’ll Learn
βœ… How to set up a mail server with mailcow & Docker
βœ… How to configure all critical email DNS records (A, MX, CNAME, and PTR)
βœ… How to set up email authentication (SPF, DKIM, DMARC)
βœ… How to test and ensure your self-hosted email avoids the spam folder

What You’ll Get
βœ… A private, secure, self-hosted email server
βœ… Unlimited email addresses for your custom domains
βœ… A perfect (or near perfect) mail deliverability score
βœ… Full control over your data and digital privacy

⏱️ Chapters
00:00 Why Self-Host Your Own Email
00:40 Server & DNS Requirements
01:48 Initial DNS Records (A, MX, CNAME)
04:26 PTR Record (Reverse DNS)
05:25 Server Setup & Docker Install
08:36 Install & Configure mailcow
12:20 Access mailcow as Admin
13:41 Add an Email Domain
14:22 Add an Email Address
15:08 Final DNS Records (SPF, DKIM, DMARC)
20:32 Email Deliverability Tests
23:10 Email Server Maintenance
How to Self-Host Email the Right Way (to avoid the spam folder)5 Ways to Download All of Your Google Contacts (vCard, CSV, PDF)How to Batch Download Images with a Simple Shell ScriptHow to Filter Pandas Dataframe (subset rows and columns by value)Most People Still Don’t Know What HTTPS Actually Does πŸ”’How to Make a Free Website with Tiiny HostHow to Download your Google Maps Location HistoryHow to Run a Windows XP Virtual Machine (VirtualBox ISO)How to Remote Desktop from Mac to WindowsHow to Make an SSH Proxy TunnelExposing the Domain Privacy ScamHow to Make a Website on AWS Lightsail (WordPress setup tutorial)
Tony Teaches Tech |

How to Self-Host Email the Right Way (to avoid the spam folder)

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER