The best way would be to set up a mail server that s compliant with your logging needs and have discourse use that. A decent sysadmin should be able to do it in an hour or two (probably less time than a plugin will take) and it will be easier to maintain.