Hi all,
I am trying to grasp the concept between the 3 entity above.
I understand that mailx - MUA
I also understand that sendmail = MTA
1) If I have a centralized mail server (which might not be sendmail), can I just set mailhost in "/etc/hosts" to point to that mailserver and use mailx to send out the email ?
Does sendmail need to be involved in the process above ?
or
2) I need to have a sendmail running locally on the server, and have mailx send the mail to the sendmail, before sendmail send out to the "centralized mail server" ?
=================================
If mailx is using the local sendmail to send out mail, what should set at the "mailhost" parameter in /etc/hosts ?
if mailhost parameter meant for mailx or sendmail ?
=========================
It seems that mailx does not work, if i did not turn on my sendmail service, and mailx -v shows that it is connecting locally to 127.0.0.1.
However, whichever email address i send to , it seems that mailx is always sending to 127.0.0.1 even thought i have set "mailhost" in /etc/hosts to point to another server.
is mailhost here being referred to at all ? or sendmail will use it to relay the mail ?
Hope some gurus can shed some light on this.
Thanks!
Regards,
Noob