dennis trabjerg cggcintetnetdk mouss wrote dennis trabjerg wrote hi run companys mailserver would like able implement greylisting selected mailaccounts users able choose greylisting option per username basically need postfix quick lookup mysql table see username opted greylisting yes greylist mail via either postgrey sqlgrey would guys possible reasonable go implementing solution thanks dennis smtpd_recipient_restrictions reject_unauth_destination check_recipient_access mysqldirper_recipient_greylistcf per_recipient_greylistcf returns check_policy_service recipient wants greylisting either returns dunno match recipient doesnt want greylisting something like query select check_policy_service user greylistyes thank competent answer seems working intended implemented etcpostfixper_recipient_greylistcf following hosts mymysqlserver user postfix_mysql_username password postfix_mysql_password dbname postfix_database table postfix_usernames select_field policy_service where_field email_address modified postfix_usernames table contain column policy_service containing either check_service enable greylisting ok bypass greylisting added restriction class called check_greylist smtpd_restriction_classes check_greylist check_greylist check_policy_service inet12700160000 added per_recipient_greylistcf recipient restrictions maincf im wondering happen mysql query returns something else ok check_greylist also curious try approach userpreferencebased amavisdnew policyd services comments issue implemented solution lowvolume backupmx tailing logs moment concers using setup production enviroment thanks dennis wed 06 aug 2008 025738 0100 selective greylisting based user preference