title: Setup Mailx command in linux
body: <p>Set up for mailx command in Linux to send mail is done by using following code snippet in /etc/mail.rc</p>
  
  <pre><code>`
      set smtp=XXX.XXX.XXX.XXX
      set from=XXX@xxx.com
      set password=XXXXXXXX
  `
  </code></pre>
  
  <p>So I can send mail successfully but the problem is I can not receive any mails from outside of the linux environment.</p>
  
  <p>Help me to setup mailx for receiving mails also.
  I am new to mailx so if I am wrong at any point then please correct me !</p>