How to Relay Emails to Gmail: Difference between revisions
Jump to navigation
Jump to search
Jgutierrez6 (talk | contribs) No edit summary |
Jgutierrez6 (talk | contribs) No edit summary |
||
Line 10: | Line 10: | ||
== Instructions == | == Instructions == | ||
'''[https://www.golinuxcloud.com/gmail-smtp-relay-server-postfix/#Error-1_SASL_authentication_failure_No_worthy_mechs_found Reference Tutorial]''' | '''[https://www.golinuxcloud.com/gmail-smtp-relay-server-postfix/#Error-1_SASL_authentication_failure_No_worthy_mechs_found Reference Tutorial]''' | ||
#* <source> | |||
</source> | |||
# Create a gmail account OR Ask Khanh for docking.email@gmail.com for credentials. | # Create a gmail account OR Ask Khanh for docking.email@gmail.com for credentials. | ||
Line 24: | Line 28: | ||
#* <source> | #* <source> | ||
yum install postfix mailx cyrus-sasl cyrus-sasl-plain -y | yum install postfix mailx cyrus-sasl cyrus-sasl-plain -y | ||
</source> | |||
# Configure Postfix | |||
#* <source> | |||
</source> | </source> |
Revision as of 19:56, 1 September 2022
Introduction
This tutorial applies to RHEL 8 based operating systems (CentOS, Rocky Linux)
Two machines that send emails are:
- vav.combpio.ucsf.edu
- bksmailman.compbio.ucsf.edu
Relaying emails through gmail will make it more secure and trustworthy.
Instructions
- Create a gmail account OR Ask Khanh for docking.email@gmail.com for credentials.
- Disable pre-installed 'sendmail' package
rpm -q sendmail (Check for package) systemctl disbale sendmail --now (Disable package)
- Enable smtp in firewall
firewall-cmd --permanent --add-service=smtp
- Install Postfix and other dependencies
yum install postfix mailx cyrus-sasl cyrus-sasl-plain -y
- Configure Postfix