Monday 15 March 2021

Enable and configure mailx in Linux

 To start sending mails from Linux machine we need to install mailx:

dnf install mailx 


Configure the sender information in /etc/mail.rc:

Add below at the end of /etc/mail.rc file:


set smtp=smtps://smtp.gmail.com:465

set smtp-auth=login

set smtp-auth-user=mygmailuser@gmail.COM

set smtp-auth-password=mypassword

set ssl-verify=ignore

set nss-config-dir=/etc/pki/nssdb/


No comments:

Post a Comment

Number of Visitors