If you are setting up a new mail server, its better to test SMTP, IMAP and/or POP.

Following pages describes test procedure (including sample commands) for each protocol involved.