
Learn how to navigate and use the course, access PDFs with commands and config, explore additional resources, ask questions in the Q&A, and adjust video resolution for clear code.
Learn to set up a mail server on a bare metal or VPS, verify port 25 and deliverability factors like domain on Namecheap and PTR records, and use multiple IPs.
Learn to connect to your VPS with Putty on Windows, using IP and password or SSH key, accept the host key, log in as root, and change the password.
Learn a Linux bash shell crash course covering essential commands (cd, ls, pwd), navigation, vim basics, root access, and file permissions to prepare your own mail server setup.
Create a non-root user with a home directory, set a password, and grant sudo. Log in via ssh to verify, then switch shell to bash with sudo visudo if needed.
Create and configure an ssh key for secure login as a non-root user, set up authorizedkeys, and prepare to disable password and root login for enhanced mail server security.
Secure your vps by disabling root ssh login and enforcing key-based access with ssh certificates. Update sshd_config, disable password auth, restart sshd, and verify login via private key.
Install postfix as your mail transfer agent on a VPS and configure a fully qualified domain name. Create DNS A and MX records and open port 25 for deliverability.
Learn to set up a secure Ubuntu mail server using Dovecot IMAP, Postfix, and Let's Encrypt TLS certificates, enabling submission on port 587 and client access via Thunderbird.
Install postfixadmin to simplify mail server administration via a web UI on your VPS. Learn step-by-step setup and configuration to run an easy, centralized mail admin interface.
Install and configure postfix admin to manage a mail server, host multiple domains, and create aliases and mailboxes, with MariaDB and dovecot integration.
Set up your mail server’s SPF by adding a DNS text record listing allowed IP addresses and MX hosts, install the Postfix SPF package, and enforce SPF checks in Postfix.
Learn to implement the DKIM protocol for your mail server by configuring OpenDKIM, generating keys, updating DNS TXT records, wiring Postfix via a Unix socket, and validating SPF and authentication.
Publish and validate DMARC records, configure SPF and DKIM alignment, and choose a policy (none, quarantine, reject) to protect your domain, monitor reports, and integrate Open Denmark with Postfix.
Congratulations, you now have your own mail server up and running on a VPS. Explore related services like scalable hosting, mail and web servers, AI applications, and service helper bots.
Want to take full control of your email by hosting it yourself? In this hands-on course, you'll learn how to set up and manage your own mail server on a Virtual Private Server (VPS). Whether you're a developer, sysadmin, or tech enthusiast, this course will walk you through every step—from purchasing a VPS and configuring DNS, to installing Postfix, Dovecot, and securing your server with SSL/TLS, spam protection, and more.
By the end of the course, you’ll have a fully functioning, secure, and private mail server capable of sending and receiving email just like any commercial service, but fully under your control.
You'll also gain a deeper understanding of how email works behind the scenes, including SMTP, IMAP, and DNS records. Plus, you'll learn best practices to improve deliverability and keep your messages out of spam folders. The course also includes optional lessons on integrating a webmail interface for administration.
What You'll Learn:
Choosing the right VPS provider and domain
DNS setup (MX, SPF, DKIM, DMARC)
Installing and configuring Postfix and Dovecot
SSL/TLS setup for secure connections
Tips for keeping your mail server out of the spam folder
Take ownership of your email infrastructure and gain valuable sysadmin skills in the process!