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 [2016/04/13 21:08] juckinsgmail_as_a_relay_on_linux [2016/10/27 08:17] juckins
Line 8: Line 8:
   * postfix (tested version 2:2.10.1-6.el7)   * postfix (tested version 2:2.10.1-6.el7)
   * ca-certificates.noarch (tested version 2015.2.4-70.0.el7_1)   * ca-certificates.noarch (tested version 2015.2.4-70.0.el7_1)
 +  * cyrus-sasl-plain (tested version 2.1.26-20.el7_2)
 +  * cyrus-sasl-lib (tested version 2.1.26-20.el7_2)
  
 Other CentOS 7 Notes: Other CentOS 7 Notes:
Line 14: Line 16:
 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)+1. If installed, make sure /etc/ssmtp/ssmtp.conf is the distro version (no changes, and it is not needed on CentOS 7)
  
 2. Make a backup copy of /etc/postfix/main.cf 2. Make a backup copy of /etc/postfix/main.cf
Line 67: Line 69:
  
 8. Restart postfix: \\ 8. Restart postfix: \\
 +<code>
 +# /bin/systemctl restart postfix.service
 +</code>
 +or
 <code> <code>
 # /etc/init.d/postfix reload # /etc/init.d/postfix reload
Line 80: Line 86:
 #set from = $USER@$HOSTNAME #set from = $USER@$HOSTNAME
 #set from = username@HOSTNAME_OR_ALIAS.domain #set from = username@HOSTNAME_OR_ALIAS.domain
-#set realname=$USER@$HOSTNAME - doesn't get the hostname (?) +#set realname="juckins@lightning" 
-set realname="juckins@lightning"+set realname="$USER@$HOSTNAME(works in CENTOS7, mutt-1.5.21-26.el7.x86_64 but *not* via cron sending)
  
 </code> </code>
gmail_as_a_relay_on_linux.txt · Last modified: 2024/01/01 12:40 by juckins