I run postfix-relay as a side container into kubernetes (dev environment).
So I have 4lvl domain name, like the test.site.example.com
I try send message to my email address and I got error Relay access denied
220 test.site.example.com ESMTP Postfix (Debian/GNU)
HELO test.site.example.com
250 test.site.example.com
mail from: no-replay@test.site.example.com
250 2.1.0 Ok
rcpt to: my@email.com
454 4.7.1 <my@email.com>: Relay access denied
Problem at mynetworks = 0.0.0.0/0
Connect from sidecar use ipv6, but mynetworks allows only ipv4.
I'm add env POSTFIX_mynetworks with value 0.0.0.0/0, [::]/0 and it fix my problem
I run postfix-relay as a side container into kubernetes (dev environment). So I have 4lvl domain name, like the test.site.example.com I try send message to my email address and I got error
Relay access denied
in logs:
main.cf