# Greylisting warn domains = +local_domains : +relay_domains ! hosts = +whitelist_hosts set acl_m1 = ${readsocket{/var/spool/exim/exim_sockd.sock}{GREYLIST ${lc:$sender_address} ${lc:$local_part@$domain} $sender_host_address}{3s}{\n}{0}} message = X-Greylisting-Test: $acl_m1 defer domains = +local_domains : +relay_domains ! hosts = +whitelist_hosts ! recipients = dbm;DBM/recipients_spamadmin condition = ${if eq {$acl_m1}{0}{0}{1}} message = Greylisted for ${if >{$acl_m1}{119}{${eval:$acl_m1/60} minutes}{$acl_m1 seconds}}.\nYour mail system should automatically try again later. log_message = Greylisted $acl_m1