Christopher Juckins

SysAdmin Tips, Tricks and other Software Tools

User Tools

Site Tools


gmail_as_a_relay_on_linux

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
gmail_as_a_relay_on_linux [2023/06/23 10:29] juckinsgmail_as_a_relay_on_linux [2024/01/01 12:40] (current) juckins
Line 1: Line 1:
-===== Using Gmail as a Relay on CentOS Linux =====+===== Using Gmail as a Relay on RedHat Distro Linux ===== 
 + 
 +RockyLinux 9 Notes: 
 +  * (Nothing special noted) 
 + 
 +CentOS 8 Notes: 
 +  * (Nothing special noted)
  
 Required packages if CentOS7 7.2.1511: \\ Required packages if CentOS7 7.2.1511: \\
Line 14: Line 20:
     * As root, run 'nmtui' to set network parameters     * As root, run 'nmtui' to set network parameters
   * If trouble sending after install, may need to consult [[http://unix.stackexchange.com/questions/109473/after-updating-ssmtp-to-version-2-61-i-cannot-send-mail-via-gmail|this link]]   * If trouble sending after install, may need to consult [[http://unix.stackexchange.com/questions/109473/after-updating-ssmtp-to-version-2-61-i-cannot-send-mail-via-gmail|this link]]
- 
-CentOS 8 Notes: 
-  * (Nothing special noted) 
- 
-RockyLinux 9 Notes: 
-  * ? 
  
 Directions [[http://mhawthorne.net/posts/postfix-configuring-gmail-as-relay.html|based on this page by Matthew Hawthorne]]: \\ Directions [[http://mhawthorne.net/posts/postfix-configuring-gmail-as-relay.html|based on this page by Matthew Hawthorne]]: \\
Line 51: Line 51:
 smtp_sasl_security_options = smtp_sasl_security_options =
  
-# Modify debugging+# Modify debugging (make sure to comment pre-existing entries)
 debug_peer_list=smtp.gmail.com debug_peer_list=smtp.gmail.com
 debug_peer_level=3 debug_peer_level=3
 </code> </code>
  
-4. Add your own Gmail credentials to /etc/postfix/sasl_passwd \\+4. Add your own Gmail credentials to /etc/postfix/sasl_passwd (the password needs to be a Google App-Specific password to get around the 2FA requirement \\
 <code> <code>
-[smtp.gmail.com]:587  username:password+[smtp.gmail.com]:587  [email protected]:GMAIL_APP_PASSWORD
 </code> </code>
  
gmail_as_a_relay_on_linux.1687530550.txt.gz · Last modified: 2023/06/23 10:29 by juckins