Change smtp server

Airw0lf

Member
Apr 11, 2021
62
3
13
60
it-visibility.net
Team,

The mail-log /var/log/mail.log is full with messages like:
"postfix/smtp[282864]: CE97B7803B2: host mail.it-visibility.net[188.68.47.56]"
"postfix/smtp[282864]: CE97B7803B2: to=<alerts@it-visibility.net>, relay=mx2f38.netcup.net"

However, these two don't show up in the postfix-config known as /etc/postfix/main.cf.

Any pointers as to where this part of the config is located?


Cheers - Will
 
Last edited:
Hey,

is this maybe the email address you've entered during the installation of Proxmox? I'd check /etc/pve/user.cfg. Alternatively go to Datacenter -> Permissions -> User -> root.

The address you enter during installation will be assigned to the root@pam user, and PVE will occasionally try to send mails to this address.
 
Hey,

is this maybe the email address you've entered during the installation of Proxmox? I'd check /etc/pve/user.cfg. Alternatively go to Datacenter -> Permissions -> User -> root.

The address you enter during installation will be assigned to the root@pam user, and PVE will occasionally try to send mails to this address.

Neither one:
- There is no such thing as /etc/pve/user.cfg
- The root user has no e-mail attached to it.

As a friendly reminder:
The question whas about the two smtp-servers in the logs (i.e. mail.it-visibility.net and mx2f38.netcup.net).
Where are they coming from? Knowing that notifications are not getting through?
 
Last edited:
The question whas about the two smtp-servers in the logs (i.e. mail.it-visibility.net and mx2f38.netcup.net).
Where are they coming from? Knowing that notifications are not getting through?
They come from the MX records of the it-visibility.net domain.

Code:
$ dig MX it-visibility.net

-------   SNIP ---------

;; ANSWER SECTION:
it-visibility.net.    300    IN    MX    50 mx2f38.netcup.net.
it-visibility.net.    300    IN    MX    10 mail.it-visibility.net.

-------   SNIP ---------

Postfix is trying to send an email to the configured address, looks up the MX records of the domain and tries to talk to those mail servers.

Neither one:
- There is no such thing as /etc/pve/user.cfg

Are you sure? This file should be present in every PVE installation and should contain at least the root@pam user. One thing worth mentioning is that /etc/pve is not a normal directory but a mount point - so make sure you are trying to access user.cfg in a PVE instance that is actually running.
 

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!