ifelse(SECTION, `ACLS_ADDITIONAL', `dnl acl_greylist_relays: # acl_c2 - время жизни записи в минутах # acl_m1 - причина занесения в серый список accept condition = ${if eq{$acl_c2}{0}{yes}{no}} condition = ${if eq{\ ${perl{dbm_save}{confGREYLIST_DBM_RELAYS}\ {$sender_host_address}\ {\ create_time=$tod_epoch \ expire_time=0 \ reason="$acl_m1"\ }}\ }{}{yes}{yes}} warn set acl_m2 = ${lookup{$sender_host_address}dbm{confGREYLIST_DBM_RELAYS}} condition = ${if or{\ {eq{$acl_m2}{}}\ {<{${extract{expire_time}{$acl_m2}}}{${eval:$tod_epoch+$acl_c2*60}}}\ }{yes}{no}} condition = ${if eq{\ ${perl{dbm_save}{confGREYLIST_DBM_RELAYS}\ {$sender_host_address}\ {\ create_time=$tod_epoch \ expire_time=${eval:$tod_epoch+$acl_c2*60} \ reason="$acl_m1"\ }}\ }{}{yes}{yes}} accept ') ifelse(SECTION, `ACL_CHECK_RCPT', `dnl warn set acl_c2 = ${lookup{$sender_host_address}dbm{confGREYLIST_DBM_RELAYS}{$value}{}} condition = ${if eq{$acl_c2}{}{no}{yes}} condition = ${if or{\ {eq{${extract{expire_time}{$acl_c2}}}{0}}\ {>{${extract{expire_time}{$acl_c2}}}{$tod_epoch}}\ }{yes}{no}} set acl_c8 = scores=${eval:${extract{scores}{$acl_c8}}+confGREYLIST_DBM_BLOCKED_OPTIONAL} \ log_message="${extract{log_message}{$acl_c8}} ${extract{reason}{$acl_c2}};" set acl_m15 = ${acl_m15}\t\ greylist scores=confGREYLIST_DBM_BLOCKED_OPTIONAL\t\ ${extract{reason}{$acl_c2}}\n ')