wrapper for running mail server