diff --git a/lib/mail.pm b/lib/mail.pm index e9d6ba8..858e147 100644 --- a/lib/mail.pm +++ b/lib/mail.pm @@ -399,6 +399,13 @@ sub mail_update { } # postfix RBL if(/ postfix\/smtpd\[\d+\]: NOQUEUE: reject: RCPT from /) { + # postgrey + if(lc($mail->{greylist}) eq "postgrey") { + if(/ Recipient address rejected: Greylisted, /) { + $gl_greylisted++; + next; + } + } $rbl++; } # postgrey