Change smtp server

Airw0lf

Active Member
Apr 11, 2021
83
5
28
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.