Dhcp lease check

Hi guys,

I have from Mikrotik wiki script which collect to adress list spammers (ip firewall address-list)

https://wiki.mikrotik.com/wiki/How_to_autodetect_infected_or_spammer_users_and_temporary_block_the_SMTP_output


How do I take IP from list (ip firewall address-list ) and compare with DHCP lease (/ip dhcp-server lease). You which will be in DHCP lease same dump together with mac adress to log or log file.