Black list a country code

good day. i just installt mail in a box and I was wondering if it is possible to block people from other countries who are trying to use the domain (trying to access it) for security reasons.

thanks in advance

I’m not aware of a way to do this with MIAB (absent changes you might make to Postfix).

Using a filtering service such as MxGuardDog in front of MIAB would be an alternative. Their service allows filtering by country.

A source of IP address blocks by country can be found at www.ipdeny.com which you might block at the firewall ufw