On Jul 31, 2024, at 06:05, Jaroslaw Rafa via Postfix-users <postfix-users@postfix.org> wrote: > > Dnia 30.07.2024 o godz. 16:19:01 John Thorvald Wodder II via Postfix-users > pisze: >> The "access" file currently contains REJECT lines for both >> "spamgateway.nil" (no leading period) and ".spamgateway.nil" (leading >> period), and I did the postmap-and-restart dance after updating it, but >> the e-mails are still coming through. My understanding (see also Wietse's >> first response) is that adding "stupidspammers.example" won't accomplish >> anything, as that domain is only in the message headers and isn't the >> domain of the actual server the e-mails are coming from. > >> From what I see in your config, your "access" file is referred to via > check_sender_access, so it will work if - and only if - the *envelope > sender* of the message is "someth...@spamgateway.nil" or > "someth...@subdomain.spamgateway.nil". Do you see that sender address in > your logs?
No, I do not. > If it's only the *connecting client IP address* that resolves to > somehost.spamgateway.nil, and the sender's domain is different, then you > should use check_client_access, not check_sender_access. I see. I didn't deduce that from the documentation. That would explain why none of my attempts worked. If I never reply with any follow-up problems, assume this worked. -- John Wodder _______________________________________________ Postfix-users mailing list -- postfix-users@postfix.org To unsubscribe send an email to postfix-users-le...@postfix.org