From Fedora Project Wiki
This test case tests if the default MTA Sendmail is enabled by default and able to send emails.
- Ensure that
sendmailpackage is installed.
- Ensure that other MTAs like:
eximare not running.
How to test
- Switch to root user:
- Check if sendmail service is running and enabled at boot:
systemctl status sendmail.service
- Install mail utility:
yum install mailx
- Try to send email to root user:
# mail root@localhost Subject: test test EOT
- Check if root has received the test email:
- Sendmail must be running and active at boot, the output of
systemctlshould be like:
# systemctl status sendmail.service sendmail.service - LSB: start and stop sendmail Loaded: loaded (/etc/rc.d/init.d/sendmail) Active: active (running) since Sat, 02 Jul 2011 12:39:41 +0100; 10s ago Process: 3244 ExecStart=/etc/rc.d/init.d/sendmail start (code=exited, status=0/SUCCESS) Main PID: 3257 (sendmail) CGroup: name=systemd:/system/sendmail.service ├ 3257 sendmail: accepting connections └ 3266 sendmail: Queue runner@01:00:00 for /var/spool/cli...
- root user should receive the test email and the output of
# mail Heirloom Mail version 12.5 7/5/10. Type ? for help. "/var/spool/mail/root": 1 message 1 new >N 1 root Sat Jul 2 12:46 20/766 "test" &