Daemon-Byte
Hi, I don’t know if you found a solution, but I was having similar problems with a domain that was giving me the error “Sender address rejected: Domain not found”. After much searching and testing I got it to work as follows:
In master.cf add into the option smtpd_sender_restrictions regexp:/opt/postfix/conf/sender_whitelist… in my case it looked like this:
smtpd_sender_restrictions=permit_mynetworks,**regexp:/opt/postfix/conf/sender_whitelist**,reject_unlisted_sender,reject_unknown_sender_domain
And the sender_whitelist file looks like this:
/[@.]example\.com$/ OK
That’s it, obviously you should run postmap -v sender_whitelist
and docker compose restart postfix-mailcow
to apply the changes.
Regards, Bernardo.