Unbantu mail delivery for LXC container under PVE is not successful

Will Smith

Member
Mar 21, 2022
11
1
8
35
Unbantu mail delivery for LXC container under PVE is not successful
My requirement is simple, I just need to be able to send emails, using a third-party mail server, such as Gmail, but Unbantu's PVE seems to come with Postfix
After I installed Mailx and configured mail.rc, I can't send emails successfully.

Send mail command
Code:
echo “test” | mailx -v  -s “test” will@gmail.com

Then you receive the following message
Code:
send-mail: warning: /etc/postfix/main.cf, line 26: overriding earlier entry: relayhost=
postdrop: warning: /etc/postfix/main.cf, line 26: overriding earlier entry: relayhost=
Mail Delivery Status Report will be mailed to <will@gmail.com>.

I can't understand, I i what I am using mailx, but the final call is postfix
Do I need to change the default MTA program so that when he sends mail, it does not use postfix
I'm confused, there is no mail log under /etc/log, I don't know if it's because of the LXC container template

I don't know what to do anymore
 
Last edited:

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!