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
Next revisionBoth sides next revision
gmail_as_a_relay_on_linux [2020/09/30 16:15] juckinsgmail_as_a_relay_on_linux [2020/09/30 16:29] juckins
Line 18: Line 18:
     * 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)
  
 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]]: \\
  
-1. If installed, make sure /etc/ssmtp/ssmtp.conf is the distro version (no changes, is not needed on CentOS 7 and not existent on CentOS8)+1. If it exists, make sure /etc/ssmtp/ssmtp.conf is the distro version with no changes
  
 2. Make a backup copy of /etc/postfix/main.cf 2. Make a backup copy of /etc/postfix/main.cf
Line 40: Line 43:
 smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
  
-# This section SHOULD be configured properly in CentOS8 by default+NOTE: This section *should* be configured properly in CentOS8 by default
 # list of CAs to trust when verifying server certificate # list of CAs to trust when verifying server certificate
 #smtp_tls_CAfile = /etc/ssl/certs/ca-certificates.crt #smtp_tls_CAfile = /etc/ssl/certs/ca-certificates.crt
Line 101: Line 104:
 mutt -s "Test1" [email protected] </dev/null mutt -s "Test1" [email protected] </dev/null
 </code> </code>
-or to send a message without using a separate file:+or to send a message without using a separate file but note mailx is probably not looking at .muttrc:
 <code> <code>
 echo 'It works' | mailx -s 'Test message' [email protected] echo 'It works' | mailx -s 'Test message' [email protected]
gmail_as_a_relay_on_linux.txt · Last modified: 2024/01/01 12:40 by juckins