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
set smtp=mailrouter.wmd.edu
set from=marcopolo.wmd.edu

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 10.18.51.109
109.51.18.10.in-addr.arpa domain name pointer marcopolo.wmd.edu.
[root@marcopolo etc]# host marcopolo.wmd.edu.
marcopolo.wmd.edu has address 10.18.51.109

Next, the test.

[root@marcopolo etc]# mailx -v -s "test" duszyk@chop.edu<<EOF
> test
> EOF
Resolving host mailrouter.chop.edu . . . done.
Connecting to 10.20.134.33 . . . connected.
220 xxxxxxxxx.wmd.edu Microsoft ESMTP MAIL Service, Version: 8.5.9600.16384 ready at  Thu, 3 Nov 2016 10:26:55 -0400
>>> HELO marcopolo.wmd.edu
250 xxxxxx.wmd.edu Hello [10.20.134.1]
>>> MAIL FROM:<marcopolo.wmd.edu>
250 2.1.0 marcopolo.wmd.edu@xxxxxxxxx.wmd.edu....Sender OK
>>> RCPT TO:<duszyk@wmd.edu>
250 2.1.5 duszyk@wmd.edu
>>> DATA
354 Start mail input; end with <CRLF>.<CRLF>
>>> .
250 2.6.0 <xxxxxxxxxJnagT4Nfjs000045e8@xxxxxxxxx.wmd.edu> Queued mail for delivery
>>> QUIT
221 2.0.0 xxxxxxxxx.wmd.edu 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.