On 12 June 2017 at 10:04, pat G <patgsios...@gmail.com> wrote: > hello, > > i use postfix since years, there was no problem, but since some weeks, we > receive mails from bad domains. > > i don' t find solution in postfix. i use "sender_access" to reject some > domains, but domains are always coming even if i postmap sender_access and > i restart postfix. what can be the solution ? i use : check_sender_access > hash:/etc/postfix/sender_access > > here my postconf -n : <http://paste.debian.net/970772/> > http://paste.debian.net/971113/ >
​Maybe you trying to reject based on the domain in the 'From' header not the domain in the envelope sender. sender_access works off the envelope sender only, if you want to reject based on the address in the 'From' header you need to use header_checks <http://www.postfix.org/header_checks.5.html>.