ikn3
1
Using RHEL 5.5
New to using 'mailx'
Was trying to check if mailx is configured.
mailx command gives a list of unread mails.
Now I tried to send mail using this command to a local or on network machine using
mailx -s "Test2" "root@<servername>"
But did not receive any message.
Yoda
2
Try to send with an email body:-
echo "This is mail body" | mailx -s "Test2" root@servername
---------- Post updated at 11:57 ---------- Previous update was at 11:51 ----------
Or without an email body:-
mailx -s "Test2" root@servername < /dev/null
ikn3
3
Action: failed
Status: 5.1.2
Remote-MTA: DNS; <servername>.<localdomain>
Diagnostic-Code: SMTP; 550 Host unknown
ikn3
5
As far as I can see the /etc/hosts file has the servername and IP mentioned and the local domain is mentioned in the /etc/resolv.conf
Is there usually a Relay Server in between.
Not sure how this architecture is designed.
It might be the the name resolution on the server end, I would make sure your client's hostname is in DNS.
1 Like
ikn3
7
Thanks, The Mail Server info was incorrectly entered.