To log Mail.app’s activity on a specific port, launch it from the Terminal. Use the option: -LogActivityOnPort ## where ## is the port number you want to watch. 25 is for smtp, 110 is for POP.