Mail server configuration on RHEL using gmail
Copy Code yum -y install postfix cyrus-sasl-plain mailx vi /etc/postfix/main.cf # Add below detail in bottom of main.cf file relayhost = [smtp.gmail.com]:587 smtp_use_tls = yes smtp_sasl_auth_enable = yes smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd smtp_sasl_security_options = noanonymous vi /etc/postfix/sasl_passwd [smtp.gmail.com]:587 alertmailacc@gmail.com:app_password < How to Generate App Password > chmod 600 /etc/postfix/sasl_passwd postmap /etc/postfix/sasl_passwd systemctl restart postfix