-
-
Notifications
You must be signed in to change notification settings - Fork 2
Linux Mail Servers
Mattscreative edited this page Dec 5, 2025
·
2 revisions
Complete beginner-friendly guide to mail servers on Linux, covering Arch Linux, CachyOS, and other distributions including Postfix, Dovecot, and mail server configuration.
Install Postfix:
# Arch/CachyOS
sudo pacman -S postfix
# Enable service
sudo systemctl enable --now postfix.serviceDebian/Ubuntu:
sudo apt install postfixFedora:
sudo dnf install postfixEdit config:
# Edit main config
sudo vim /etc/postfix/main.cfSettings:
myhostname = mail.example.com
mydomain = example.com
myorigin = $mydomain
inet_interfaces = all
mydestination = $myhostname, localhost.$mydomain, $mydomain
Install Dovecot:
# Arch/CachyOS
sudo pacman -S dovecot
# Enable service
sudo systemctl enable --now dovecot.serviceDebian/Ubuntu:
sudo apt install dovecot-core dovecot-imapdFedora:
sudo dnf install dovecotEdit config:
# Edit config
sudo vim /etc/dovecot/dovecot.confTest sending:
# Send test email
echo "Test" | mail -s "Test Subject" user@example.comCheck logs:
# Postfix logs
journalctl -u postfix
# Dovecot logs
journalctl -u dovecotThis guide covered mail servers for Arch Linux, CachyOS, and other distributions, including Postfix and Dovecot.
- Networking - Network setup
- Security Configuration - Security
- ArchWiki Postfix: https://wiki.archlinux.org/title/Postfix
This guide covers Arch Linux, CachyOS, and other Linux distributions. For distribution-specific details, refer to your distribution's documentation.