Skip to content

Instantly share code, notes, and snippets.

@cpragadeesh
Created March 30, 2017 20:30
Show Gist options
  • Save cpragadeesh/bf7e6d3e25ebc0f0ae0b03a8c94c49e4 to your computer and use it in GitHub Desktop.
Save cpragadeesh/bf7e6d3e25ebc0f0ae0b03a8c94c49e4 to your computer and use it in GitHub Desktop.
...
elseif dmarc_policy == 'reject' then
if not pct or pct == 100 or (math.random(100) <= pct) then
task:insert_result(dmarc_symbols['reject'], res, lookup_domain .. ' : ' .. reason_str, dmarc_policy)
disposition = "reject"
end
else
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment