User Tools

Site Tools


install_postfix_on_fedora_server_29

This is an old revision of the document!


Install Postfix on Fedora Server 29

Install the package with:

dnf install postfix

Edit /etc/postfix/main.cf. Consult http://www.postfix.org/BASIC_CONFIGURATION_README.html for the set of basic options.

systemctl start postfix
firewall-cmd --permanent --add-service=smtp
firewall-cmd --reload

After setting up proper MX and SPF records on your DNS server, you should now be able to send and receive emails. Emails will be stored under /var/spool/mail. You can also use the /var/mail symlink to access it.

For simplicity I installed mailx to send and receive emails on the machine.

dnf install mailx
mailx

To check Postfix logs: (remove f to not follow)

journalctl -fu postfix

To enable Postfix on next boot:

systemctl enable postfix

Log Analysis

dnf install postfix-perl-scripts
pflogsumm -d today /var/log/maillog --problems-first --rej-add-from --verbose-msg-detail

Spam Control

install_postfix_on_fedora_server_29.1548282411.txt.gz · Last modified: 2019/01/23 22:26 by root