I have a question about the returning message of the mailx command.
if I run a mailx command, how can I know if the email has been sent to the email address? If the email address doesn't exist, is there any error message returned? If yes, how can I get the error message?
You can check the log of your Message Transfer Agent (MTA) like sendmail, postfix or mailman etc.. Usually they write their log into /var/log/mail.log or something similar on Linux. Other OS can have different logfiles or directories for that.