echo test | mail root
tail /var/log/maillog