i am trying to use mailx utility on red hat. I am unsuccessful in doing it. kindly see below for the steps i am doing :-
1) mailx -s "testing" user@ipaddress
2) when i check my /var/mail/ folder
there is no file being generated by the name user, instead there is a file being generated by the name of aap.
3) as per me, my syntax is correct. but i am unable to find why the file is not being generated by the name of user
I'm having the same issue even after trying with the suggested method. It is creating the filename with os user in the source system instead of receipient user in /usr/mail folder and I'm not getting mail at user@domain address.
The mail file on the source system should be in text format and readable with say "cat" or of course with "mailx". Is the content or the file the mail you sent, or a bounce?
Any clues in your mail log?
Is this a new installation which does not work, or is the problem confined to certain email addresses?
Assuming that your sendmail has been configured to allow external mail and is basically working, certain ISPs will attempt a reverse DNS lookup of your server and ignore you if the lookup fails. You may need a "DM" record for a valid external domain in /etc/mail/sendmail.cf for example.
What is in /etc/resolv.conf ?
Does "nslookup" (or "dig") work for external addresses?
It would appear that whatever is at <mymail_ipaddress> is not a nameserver. It can't even look it's own name up. In fact, what is it and where is it?
I assume that the "<" and ">" character are not in the record and that the line looks roughly like this:
nameserver 10.10.10.10
What is in this file:
/etc/mail/service.switch
Let's get some more context.
Is this one computer of many on a corporate network or say a single home computer? You can often read the settings values from another working computer or if it is a single home computer get the settings from advice on your ISP's website.