-
-
Notifications
You must be signed in to change notification settings - Fork 2
Arch Linux Mail Servers
Mattscreative edited this page Dec 5, 2025
·
2 revisions
Complete beginner-friendly guide to mail servers on Arch Linux, including Postfix, Dovecot, and mail server configuration.
Install Postfix:
# Install Postfix
sudo pacman -S postfix
# Enable service
sudo systemctl enable postfix
sudo systemctl start 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:
# Install Dovecot
sudo pacman -S dovecot
# Enable service
sudo systemctl enable dovecot
sudo systemctl start dovecotEdit config:
# Edit config
sudo vim /etc/dovecot/dovecot.confTest:
# Send test email
echo "Test" | mail -s "Test" user@example.com
# Check mail queue
postqueue -pCheck logs:
# Check Postfix logs
sudo journalctl -u postfix
# Check mail queue
postqueue -pThis guide covered Postfix, Dovecot, mail server configuration, and troubleshooting.
- Arch Linux Networking - Network setup
- Arch Linux Security Configuration - Security
- ArchWiki Mail Server: https://wiki.archlinux.org/title/Postfix
This guide is based on the ArchWiki. For the most up-to-date information, always refer to the official ArchWiki.