check_mailq: adding nullmailer support

Adding nullmailer support to check_mailq submitted by Luca Corti

Closes: #740
Closes: #1189