title: Sending mail through Command line RHEL 7
body: <p>I ‘m having difficulty sending mail.</p>
  
  <p>My mail.rc is below </p>
  
  <pre><code>account gmail {
  set smtp-use-starttls
  set ssl-verify=ignore
  set smtp-auth=login
  set smtp=smtp://smtp.gmail.com:587
  set from=”email@gmail.com”
  set smtp-auth-user=uname
  set smtp-auth-password=***********
  set ssl-verify=ignore
  set nss-config-dir=/etc/pki/nssdb/
  }
  </code></pre>
  
  <p>But I’m getting error</p>
  
  <pre><code>[root@localhost ~]# echo -e “Mail body text” | mailx -A gmail    -s“Mail       subject” uname.example.com
  
  [root@localhost ~]# Error in certificate: Peer’s certificate issuer is   not recognized.
  smtp-server: 534-5.7.14 Please log in via your web browser and
  smtp-server: 534-5.7.14 then try again.
  smtp-server: 534-5.7.14 Learn more at
  smtp-server: 534 5.7.14 https://support.google.com/mail/answer/78754  205sm11220769pfy.32 – gsmtp
  “/root/dead.letter” 11/337
  . . . message not sent.
  </code></pre>
  
  <p>I think I’m having a certificate issue. I used the firefox certificates also. Still same issue.</p>
  
  <p>I’m using RHEL7 .</p>
  
  <p>Could you please help me</p>