[SOLVED] Postfix - can't send e-mail

grzech1991

New Member
Mar 11, 2023
12
0
1
Hi

I have a problem, after running postfix, emails are sending but with an error

<g.abc@abc.pl>: host xyz.nazwa.pl[1.2.3.4] said: 553
5.7.1 <root@node2.pve>: Sender address rejected: not owned by user
it@xyz.nazwa.pl (in reply to RCPT TO command)

Code:
echo "Test mail from postfix" | mail -s "Test Postfix" g.abc@abc.pl

As I use the command:

Code:
echo "test mail from proxmox" | mail -r it@abc.pl -s test g.abc@abc.pl

works without any problem
 
This means that the mail recipient is rejecting your email, because it can't verify it's origin, which is a very common behavior.
If it@abc.pl works for you, you can set that as the sender address at Datacenter > Options > E-Mail from address
 
1698399039158.png

if i use mail for notification about backup

1698399101207.png

it's ok, but after this command:

Code:
echo "Test mail from postfix" | mail -s "Test Postfix" destination@destination.pl

Still don't work.
 
Proxmox just sets this value for itself, not for the whole system. If you want to have a custom from address for the mail command by default, you can set that in ~/.mailrc like so set from=foo@bar.baz. Note that this in turn doesn't affect PVE.
 

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!