Hi,
Email from a particular domain is always rejected by postfix, correctly(?) as ubound can’t resolve it. So have tried to config postfix to allow it, but not suceeding
From postfix log…
Jan 5 17:19:24 localhost 6d9deaef8f29[872]: Jan 5 17:19:24 6d9deaef8f29 postfix/smtpd[1151]: NOQUEUE: reject: RCPT from cluster-b.mailcontrol.com[85.115.56.190]: 450 4.1.8 <player@national-lottery.co.uk>: Sender address rejected: Domain not found; from=<player@national-lottery.co.uk> to=<someone@mydomain.com> proto=ESMTP helo=<cluster-b.mailcontrol.com>
Ubound can’t resolve the sender domain…
root@mail01:/opt/mailcow-dockerized# docker compose exec unbound-mailcow dig mx national-lottery.co.uk
; <<>> DiG 9.18.27 <<>> mx national-lottery.co.uk
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 36516
;; flags: qr rd; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0
;; WARNING: recursion requested but not available
;; QUESTION SECTION:
;national-lottery.co.uk. IN MX
;; Query time: 3999 msec
;; SERVER: 127.0.0.11#53(127.0.0.11) (UDP)
;; WHEN: Sun Jan 05 18:38:26 GMT 2025
;; MSG SIZE rcvd: 40
root@mail01:/opt/mailcow-dockerized# docker compose exec unbound-mailcow dig a national-lottery.co.uk
; <<>> DiG 9.18.27 <<>> a national-lottery.co.uk
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 7649
;; flags: qr rd; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0
;; WARNING: recursion requested but not available
;; QUESTION SECTION:
;national-lottery.co.uk. IN A
;; Query time: 3999 msec
;; SERVER: 127.0.0.11#53(127.0.0.11) (UDP)
;; WHEN: Sun Jan 05 18:38:34 GMT 2025
;; MSG SIZE rcvd: 40
Have updated postfix’s smtpd_sender_restrictions in extra.cf…
smtpd_sender_restrictions = reject_authenticated_sender_login_mismatch,
permit_mynetworks,
permit_sasl_authenticated,
check_sender_access regexp:/opt/postfix/conf/sender_access,
reject_unlisted_sender,
reject_unknown_sender_domain
Added the domain to the sender_access file…
/[@.]national-lottery\.co\.uk$/ OK
And applied by running postmap and restarting the container.
I’ve tried various different of allowing the domain using regex or hash files, or even by just removing reject_unknown_sender_domain. Nothing has any impact, any pointers on what to look at would be much appreciated.
Thanks