A Quick Question - Email from Address

MrHumpty

Renowned Member
Jul 26, 2014
8
1
68
Sussex Coast. GB
Hi Folks,
I've changed the 'from' address of my prox node, (v7,14 - yes, I know... on the wish list!)
what service do i need to restart for the change to apply as it's still using the old address pve@pve-xx.local - which mail servers are complaining about

Many thank
Mr H.
 
The "from" address on PVE 7.x comes from two places, and you probably need to fix both. First, check what you set in the GUI under Datacenter > Options > "Email from address" (that's stored in /etc/pve/datacenter.cfg as email_from).

But here's the thing - even if you changed that, postfix is likely still using your node's hostname as the sender domain in the SMTP envelope.

Check what postfix thinks it's doing:
postconf myorigin myhostname mydomain

If you see pve-xx.local in there, edit /etc/postfix/main.cf and set a proper FQDN:

myhostname = pve-xx.yourdomain.com
myorigin = yourdomain.com

Then restart both:
systemctl restart postfix
systemctl restart pvedaemon

postfix is the mail transport, pvedaemon reads the datacenter config where the from address lives.

Quick test afterwards:
echo "Test from PVE" | mail -s "Test" you@example.com

Check /var/log/mail.log to make sure the from address looks right in the outgoing SMTP conversation.
Fix that, restart postfix and pvedaemon, you're sorted.
 
  • Like
Reactions: MrHumpty and UdoB