On Mon, Nov 22, 2010 at 1:00 PM, Rich Shepard <rshep...@appl-ecosys.com> wrote: > Carlos, > > I use a badaddr file that lists domains from whom I will not accept > messages. The content looks like these: > > hostforreal.com 550 Rejected domain D23 > nasty-mailings.com 550 Rejected domain D24
I've done the same and mine looks simular: [r...@mail postfix]# cat client_access bluehornet.com REJECT Rejected Domain But my confusion with Postfix has always been where to add then map check under which specific smtpd_*_restriction(s). According to "The Book of Postfix" I am still very confused: - smtpd_client_restrictions = applies to the client's IP address or its hostname or both. - smtpd_recipient_restrictions = applies to the envelope recipient(s), the envelope sender, the HELO/EHLO argument, and client IP / hostname or both. - smtpd_sender_restrictions = This is the 1st trigger set that restricts parts of the envelope. Postfix applies to the envelope sender, the HELO/EHLO argument, and the client. So with that defined above, how am I to understand or determine where I would add my 'client_access' check in my main.cf? According to the definitions above, the 'smtpd_recipient_restirctions' looks like it runs the specific map against every aspect of the sender rather than the other two. It seems like the logical choice, no? I apologize if I'm just dumb when it comes to Postfix but I'm really putting time and effort in to trying to understand this so I wont have to annoy most with my ignorance. > In the UCE section of /etc/postfix/main.cf I have this line: > > check_client_access hash:/etc/postfix/badaddr, > > and it kicks back messages from the listed domains. > > Also, I use a badip file for specific IP addresses and address blocks. Where do you have those listed under in your main.cf? smtpd_recipient_restrictions = check_badaddr hash:/etc/postfix/badaddr ?