A few months ago, I setup fail2ban on a gentoo container running courier-mta.
# fail2ban-server --version Fail2Ban v0.11.1 # courier --version Courier 1.0.14