I am running Proxmox 6.1-5. I use a Smarthost to relay e-mails, and my postfix configuration seems to be set up correctly as I can send a test e-mail like this:
echo "body of your email" | mail -s "This is a Subject" -a "From: validaccount@mydomain.com" root
and I receive the e-mail.
However when the proxmox system sends e-mails to root, and they forward to the e-mail set for the root user, they end up bouncing back from my Smarthost because they are being sent as root@hostname.local.domain, and I need them to be send as validaccount@mydomain.com.
From what I understand, this is the purpose of the email_from setting in the datacenter.cfg. I have entered the e-mail here validaccount@mydomain.com but it does not seem to be working.
What do I need to do, in order for e-mails that forward to the root e-mail account be sent out as validaccount@mydomain.com?
echo "body of your email" | mail -s "This is a Subject" -a "From: validaccount@mydomain.com" root
and I receive the e-mail.
However when the proxmox system sends e-mails to root, and they forward to the e-mail set for the root user, they end up bouncing back from my Smarthost because they are being sent as root@hostname.local.domain, and I need them to be send as validaccount@mydomain.com.
From what I understand, this is the purpose of the email_from setting in the datacenter.cfg. I have entered the e-mail here validaccount@mydomain.com but it does not seem to be working.
What do I need to do, in order for e-mails that forward to the root e-mail account be sent out as validaccount@mydomain.com?