SMTP

From Dogtag
Revision as of 04:09, 31 August 2022 by Edewata (talk | contribs) (Configuring Hostnames)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Prerequisites

$ dnf install -y postfix mailx

Configuring Hostnames

Edit /etc/hosts:

127.0.0.1 example.com

Configuring Postfix

Edit /etc/postfix/main.cf:

inet_interfaces = localhost

inet_protocols = all

Start Postfix

$ systemctl start postfix

Sending a Mail

$ mail -s "Test" root@fedora.localdomain < /dev/null