Skip to content

mailx stopped working……

No email stopped working. No notifications from cron executed jobs, no emails from command line, no emails at all. I also noticed that the “-v” option stopped working no more “verbose” Well, it used to work before.

I added the following two lines to the file /etc/mail.rc:

[root@marcopolo etc]# tail -4 mail.rc
#### WMDUSZYK 11/3/16

The first line defines our mail server and the second one the host with broken mail aka “marcopolo”…. Editing this file make sure that there are no spaces around the = character. Also, verify name resolution of the host.

[root@marcopolo etc]#  host domain name pointer
[root@marcopolo etc]# host has address

Next, the test.

[root@marcopolo etc]# mailx -v -s "test"<<EOF
> test
Resolving host . . . done.
Connecting to . . . connected.
220 Microsoft ESMTP MAIL Service, Version: 8.5.9600.16384 ready at  Thu, 3 Nov 2016 10:26:55 -0400
>>> HELO
250 Hello []
>>> MAIL FROM:<>
250 2.1.0 OK
>>> RCPT TO:<>
250 2.1.5
>>> DATA
354 Start mail input; end with <CRLF>.<CRLF>
>>> .
250 2.6.0 <> Queued mail for delivery
>>> QUIT
221 2.0.0 Service closing transmission channel

We are back in business.

Posted in LINUX.

Tagged with , .

0 Responses

Stay in touch with the conversation, subscribe to the RSS feed for comments on this post.

Some HTML is OK

or, reply to this post via trackback.

WordPress Anti Spam by WP-SpamShield

Copyright © 2016 - 2017 Waldemar Mark Duszyk. All Rights Reserved. Created by Blog Copyright.