This replace the antiquated openerp_mailgate script. This version only supports mail.alias, direct model support is deprecated. Error handling is based on exit status code which will cause a bounced mail to be generated by the mail server, that bounced mail will containt a nicely formatted traceback to help debugging.