Unbantu mail delivery for LXC container under PVE is not successful

Will Smith

Member
Mar 21, 2022
11
1
8
36
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: