On 3/9/2015 7:02 AM, Kovács Albert wrote: > Hello, > > I'd like postscreen to have the ability to reject clients based on a > regex pattern based on their PTR records. > > I use both the pregreet and the dns block feature of postfix. > However it seems that still too many spamming hosts > manage to pass postscreen and thus overwhelming smtpd processes. > > So I'd like to apply a list of regex patterns to the detected PTR > record of the smtp client host, and reject the > connection (at the postscreen level) in case of a match. Then I may > apply such patterns, eg. > > /dialup-\d{1,3}-\d{1,3}-\d{1,3}\-\d{1,3}\-some.provider.net/ reject > > > Thanks in advance, > Albert > >
For performance reasons, postscreen does not do PTR lookups, nor will PTR lookups be added to postscreen in the foreseeable future. Either use one of the many RBLs that list dynamic clients, or put your PTR check in one of the smtpd_*_restrictions. -- Noel Jones