Postfix config

Mrt12

Well-Known Member
May 19, 2019
144
11
58
44
CH
Hi,
I messed up my postfix configuration I think.
I am absolutely NO postfix expert, so I had no idea which option I should have selected when I was running the Proxmox installation.
Anyways, my postfix is now somewhat messed up.

What I actually want to do:
I have a Hosted Exchange Server and on that one, I made an user account "root@mydomain.com". Now I want Proxmox (and the underlying Debian system) to use this Email address to send notification emails. How shall I proceed?
I already messed around with the postfix "main.cf" file but so far I was unable to send any emails using

echo "This is a test email." | mail -s "Test email" root@mydomain.com

How can I fix this?
I also tried to add my Exchange server under "Datacenter/Notifications" in the Proxmox Web GUI, but with no success; sending the test email aborts with the error:

1701604484856.png

Thanks very much for any hints!
 
Hello!

Just to avoid any confusion, the 'SMTP' target in 'Datacenter -> Notifications' does not involve Postfix at all. For these notification targets we directly talk SMTP to the configured server.

You have two options if you want to send mails via your Exchange Server: Either you can configure Postfix correctly and use/setup a notification target of type 'Sendmail' (this uses Postfix under the hood), or you can setup up a target of type 'SMTP'.
The first variant has the benefit that sending emails on the CLI via 'mail' will work. If you only configure a SMTP target, this will not work, we do however forward emails that were sent to the local root user into the notification system.

If you want to configure Postfix, you can take a look at this thread.
If you want to set up the SMTP target, please share your /etc/pve/notifications.cfg, so that I can take a look.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!