Mail module porting