MikroTik: блокирование спама

В терминале переходим в firewall:
/ip firewall filter
И добавляем два правила:
add chain=forward protocol=tcp src-address=!192.168.xxx.xxx dst-port=25 src-address-list=spammer action=drop comment="BLOCK SPAMMERS OR INFECTED USERS"
add chain=forward protocol=tcp dst-port=25 connection-limit=30,32 limit=50,5 action=add-src-to-address-list address-list=spammer address-list-timeout=1d comment="SMTP virus or spammers"
Правило src-address=!192.168.xxx.xxx исключает ip адрес почтового сервера из проверки.