Wednesday, September 1, 2010

using the mail command

To test postfix mail routing, use the mail command.

make sure mailutils is already installed

to send a message type:
mail -s (enter)
someone@home.com (enter)
(enter)
this is a test (enter)
control-d to send message
or
control-c twice to cancel message

Example:
mail -s testing
To: someone@home.com
CC:
This is a test of my postfix install/routing
^d

No comments: