Difference between revisions of "SMTP"

From Dogtag
Jump to: navigation, search
m (Prerequisites)
m
Line 25: Line 25:
 
<pre>
 
<pre>
 
$ systemctl start postfix
 
$ systemctl start postfix
 +
</pre>
 +
 +
= Sending a Mail =
 +
 +
<pre>
 +
$ mail -s "Test" root < /dev/null
 
</pre>
 
</pre>

Revision as of 03:12, 31 August 2022

Prerequisites

$ dnf install prostfix mailx

Configuring Hostnames

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 < /dev/null