A user reported problems with email deliveries this morning, but when I checked the outgoing mail queue with the mailq command on the CentOS 7 server running sendmail, the queue was empty.
# mailq /var/spool/mqueue is empty Total requests: 0 #
I tried sending a test message from the mail sever to an
external email account with the mailx command. For the body of the message, I put some text into a file
test.txt and used the
< character to
provide the contents of the
file as input to mailx for the body of the message. I didn't receive
any error message and I didn't see any messages stuck in the mail queue
when I checked it after I sent the message. But the message was not received
at the destination email account.
# mailx -s "Testing" firstname.lastname@example.org <test.txt # mailq /var/spool/mqueue is empty Total requests: 0 #
So I then used the sendmail command, instead, to send a test message to see if it would provide me with any information that I could use for troubleshooting the problem. I created a file with the following contents to send as a test message.
# cat temp.txt Subject: Sendmail test This is a test. This is only a test.
You can send a test message whose contents are contained in a text file
from a command line interface using a
sendmail command in
sendmail recipient_email_address <
input_file. But when I did that, I saw a "Connection
refused by [127.0.0.1]" message.
[ More Info ]