Skip to content


 Zabbix
 Grafana
 Prometheus
 Threejs and TypeScript
 SocketIO and TypeScript
 Blender Topological Earth
 Sweet Home 3D
 Design Patterns Python
 Design Patterns TypeScript
   
 Course Coupon Codes
Three.js and TypeScript
Kindle Edition
$9.99 $14.99 Paperback 
$29.99 $34.99




Design Patterns in TypeScript
Kindle Edition
$9.99 $14.99 Paperback
$19.99 $24.99




Design Patterns in Python
Kindle Edition
$9.99 $14.99 Paperback
$19.99 $24.99




Install Send Only SMTP Server

Video Lecture

Install Send Only SMTP Server Install Send Only SMTP Server Install Send Only SMTP Server

Description

We will configure the alert manager to use a local SMTP server for sending email alerts.

In this lecture, we create a very quick and simple local SMTP server which can only send emails from localhost.

The commands are

1
sudo apt install mailutils

A postfix config screen should appear,

Choose internet site from the choices

enter the mail servers name, I will use my existing Prometheus domain i've already setup.

Then configure postfix by calling

1
sudo nano /etc/postfix/main.cf

scroll to the bottom, and set

1
2
inet_interfaces = loopback-only
inet_protocols = ipv4

restart postfix

1
sudo systemctl restart postfix

try sending an email from the command line,

1
echo "This is the body" | mail -s "This is the subject" -a "FROM:root@your-domain.tld" your@email-address

Check your SPAM folder.

Troubleshooting

If you have trouble receiving emails at your email provider, then please see my SMTP Troubleshooting page in my Zabbix course at https://sbcode.net/zabbix/setup-smtp/#troubleshooting