SQLgrey is a postfix policy service implementing a greylisting policy. It is written in Perl and uses DBI to access an SQL database. Its goal is reducing the SPAM reaching user mailboxes.