How to monitor MailCleaner with SNMP

MailCleaner comes in with a dedicated MIB that can be accessed at https://[your mailcleaner]/admin/downloads/MAILCLEANER-MIB.txt

This SNMP MIB gives access to daily counts and statistics as long as system status such as spool level, processes status, versions, etc…

[Deprecated] Old configuration (pre 2012)

First, you'll need to open the system firewall in order to let your monitoring system to access the snmp daemon.
Go to the administration interface, under ConfigurationExternal Access.
Then add the ip address or network of your monitoring system in the “SNMP access” field (multiple ip addresses or networks should be separated with ”:”, do not include spaces !).

Actually a known bug prevent the system to add the hosts in the snmpd configuration, so wou'll have to open it manually like this:

echo "USE mc_config; UPDATE snmpd_config SET allowed_ip='0.0.0.0';" | /usr/mailcleaner/bin/mc_mysql -m
/usr/mailcleaner/etc/init.d/snmpd stop; sleep 2
/usr/mailcleaner/etc/init.d/snmpd start
    

Then configure your snmp client to get informations. Here are the few more traps provided by MailCleaner: