How to Relay Emails to Gmail: Difference between revisions

From DISI
Jump to navigation Jump to search
(Created page with "== 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....")
 
No edit summary
Line 16: Line 16:
rpm -q sendmail (Check for package)
rpm -q sendmail (Check for package)
systemctl disbale sendmail --now (Disable package)
systemctl disbale sendmail --now (Disable package)
</source>
# Enable smtp in firewall
#* <source>
firewall-cmd --permanent --add-service=smtp
</source>
# Install Postfix and other dependencies
#* <source>
yum install postfix mailx cyrus-sasl cyrus-sasl-plain -y
</source>
</source>

Revision as of 19:44, 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

Reference Tutorial

  1. Create a gmail account OR Ask Khanh for docking.email@gmail.com for credentials.
  2. Disable pre-installed 'sendmail' package
    • rpm -q sendmail (Check for package)
      systemctl disbale sendmail --now (Disable package)
  3. Enable smtp in firewall
    • firewall-cmd --permanent --add-service=smtp
  4. Install Postfix and other dependencies
    • yum install postfix mailx cyrus-sasl cyrus-sasl-plain -y