From Fedora Project Wiki
(noMTA note) |
(added tip for ending the message using mailx and fixed typo) |
||
(One intermediate revision by one other user not shown) | |||
Line 1: | Line 1: | ||
{{QA/Test_Case | {{QA/Test_Case | ||
|description=This test case tests if the default MTA Sendmail is enabled by default and able to send emails. | |description=This test case tests if the default MTA Sendmail is enabled by default and able to send emails. | ||
{{admon/note | Default MTA? | | {{admon/note | Default MTA? | The current default MTA is Sendmail but this may change in the future see: [[Features/NoMTA]].}} | ||
|setup= | |setup= | ||
# Ensure that {{package|sendmail}} package is installed. | # Ensure that {{package|sendmail}} package is installed. | ||
Line 11: | Line 11: | ||
<li> Install '''mail''' utility: {{command|yum install mailx}}</li> | <li> Install '''mail''' utility: {{command|yum install mailx}}</li> | ||
<li> Try to send email to root user: | <li> Try to send email to root user: | ||
{{admon/tip | Ending the Message | EOT is inserted into the terminal after ending the message with ctrl+D}} | |||
<pre> | <pre> | ||
# mail root@localhost | # mail root@localhost |
Latest revision as of 23:07, 2 August 2011
Description
This test case tests if the default MTA Sendmail is enabled by default and able to send emails.
Setup
- Ensure that
package is installed.sendmail
- Ensure that other MTAs like:
andpostfix
are not running.exim
How to test
- Switch to root user:
su -
- 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:
mail
- Sendmail must be running and active at boot, the output of
systemctl
should 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
should be like:# 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" &