i have a big problem.
Please help me (i am noob).
I use Odoo ERP, and this system need privileges to send e-mail from [email protected], on behalf of any e-mail address in the domain zone (like [email protected]). Now my postfix server say:
postfix/smtps/smtpd[1]: NOQUEUE: reject: RCPT from 1.1.1.1.a.domain.com[1.1.1.1]: 553 5.7.1 <[email protected]>: Sender address rejected: not owned by user [email protected]; from=<[email protected]> to=<[email protected]> proto=ESMTP helo=<eupp133.odoo.com>
In my main.cf file have:
smtpd_sender_restrictions = permit_mynetworks, reject_authenticated_sender_login_mismatch, permit_sasl_authenticated, warn_if_reject reject_non_fqdn_sender, reject_unknown_sender_domain, reject_unauth_pipelining, permit
smtpd_relay_restrictions = reject_unauth_pipelining, permit_mynetworks, permit_sasl_authenticated, reject_non_fqdn_recipient, reject_unknown_recipient_domain, reject_unauth_destination, check_policy_service inet:127.0.0.1:10023, permit
Thank You!
I tried to found solution in Odoo docs, and asked my server owner (this is a rented server). The solution is not widespread in my country, so he also don't know.
I found solution, so now works: in my postfix config i need to modify main.cf
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128 34.34.157.xxx (this ip is my Odoo.sh ip)smtpd_sender_restrictions = permit_mynetworks, reject_unlisted_sender, permit_sasl_authenticated, reject_authenticated_sender_login_mismatch, reject_unauthenticated_sender_login_mismatch, warn_if_reject reject_non_fqdn_sender, reject_unknown_sender_domain, reject_unauth_pipelining, permit