PVE 5: mail forward failed: user 'root@pam' does not have a email address

klauskurz

Renowned Member
Mar 8, 2013
12
4
68
Hi!

I get the following error when sending mail to root:

echo "Test" | mail -s Test root

in syslog:

mail forward failed: user 'root@pam' does not have a email address


There is an email in /etc/pve/user.cfg

cat /etc/pve/user.cfg
user:root@pam:1:0:::target@target.domain.com:::


In pve version 4 it was working correctly.

Thank you for help
Klaus


proxmox-ve: 5.0-15 (running kernel: 4.10.15-1-pve)
pve-manager: 5.0-23 (running version: 5.0-23/af4267bf)
pve-kernel-4.10.15-1-pve: 4.10.15-15
libpve-http-server-perl: 2.0-5
lvm2: 2.02.168-pve2
corosync: 2.4.2-pve3
libqb0: 1.0.1-1
pve-cluster: 5.0-10
qemu-server: 5.0-12
pve-firmware: 2.0-2
libpve-common-perl: 5.0-16
libpve-guest-common-perl: 2.0-11
libpve-access-control: 5.0-5
libpve-storage-perl: 5.0-12
pve-libspice-server1: 0.12.8-3
vncterm: 1.5-2
pve-docs: 5.0-6
pve-qemu-kvm: 2.9.0-2
pve-container: 2.0-14
pve-firewall: 3.0-1
pve-ha-manager: 2.0-2
ksm-control-daemon: 1.2-2
glusterfs-client: 3.8.8-1
lxc-pve: 2.0.8-3
lxcfs: 2.0.7-pve2
criu: 2.11.1-1~bpo90
novnc-pve: 0.6-4
smartmontools: 6.5+svn4324-1
zfsutils-linux: 0.6.5.9-pve16~bpo90
 
  • Like
Reactions: chrone
this is a bug and will be fixed with the next update

in the meantime set the setgid bit of the /usr/bin/pvemailforward binary

Code:
chmod g+s /usr/bin/pvemailforward
 
I see in log
Code:
Nov 26 12:38:18 agro-host pvemailforward[16304]: mail forward failed: user 'root@pam' does not have a email address
I change in Datacenter -> Options -> Email from address: mymail@domain.com
and sended test mail: sendmail newmymail@newdomain.com ENTER test ENTER . ENTER

in log not changing from root@pam :(

postfix service restarted

the address has not changed
 
Last edited:
mail forward failed: user 'root@pam' does not have a email address
you have to enter an email in the user portion of the webui. datacenter -> users -> root@pam -> email
 
This problem host installed from version 4.3 and upgraded to 5.x

other host without problem, webui. datacenter -> users -> root@pam -> email is clear
 

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!