accept hosts = :
accept authenticated = *
- # Secondly, there's _absolutely_ no point in greylisting mail from
- # hosts which are known to resend their mail. Just accept it.
- accept condition = ${lookup sqlite {GREYDB SELECT host from resenders \
+ # There's _absolutely_ no point in greylisting mail from hosts which are
+ # known to resend their email. Clear the 'acl_m_greylistreasons' variable
+ # so that the mail isn't treated as suspicious.
+ warn condition = ${lookup sqlite {GREYDB SELECT host from resenders \
WHERE helo='${quote_sqlite:$sender_helo_name}' \
AND host='$sender_host_address';} {1}}
+ set acl_m_greylistreasons =
# Generate a hashed 'identity' for the mail, as described above.
warn set acl_m_greyident = ${hash{20}{62}{$sender_address$recipients$h_message-id:}}
WHERE id='${quote_sqlite:$acl_m_greyident}';}{$value}}
- # If there's absolutely nothing suspicious about the email, accept it. BUT...
+ # If there's absolutely nothing suspicious about the email (or if it came from
+ # a known resender so we wiped the reasons), accept it. BUT...
accept condition = ${if eq {$acl_m_greylistreasons}{} {1}}
condition = ${if eq {$acl_m_greyexpiry}{} {1}}