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 [2015/11/04 18:18] juckinsgmail_as_a_relay_on_linux [2015/11/04 18:41] juckins
Line 1: Line 1:
 Directions [[http://mhawthorne.net/posts/postfix-configuring-gmail-as-relay.html|based on this page by Matthew Hawthorne]] worked: \\ Directions [[http://mhawthorne.net/posts/postfix-configuring-gmail-as-relay.html|based on this page by Matthew Hawthorne]] worked: \\
  
-1. Make a backup copy of /etc/postfix/main.cf+1A. Make sure /etc/ssmtp/ssmtp.conf is the distro version (no changes) 
 + 
 +1B. Make a backup copy of /etc/postfix/main.cf
  
 2. Edit /etc/postfix/main.cf to have these settings: 2. Edit /etc/postfix/main.cf to have these settings:
Line 62: Line 64:
 7. Send a test message: \\ 7. Send a test message: \\
 <code> <code>
-echo 'It works' | mailx -s 'Test message' recipient@domain.com+echo 'It works' | mailx -s 'Test message' RECIPIENT@DOMAIN.COM
 </code> </code>
  
Line 68: Line 70:
  
 <code> <code>
-set sendmail="/usr/sbin/ssmtp" 
 #set from = $USER@$HOSTNAME #set from = $USER@$HOSTNAME
 #set from = username@HOSTNAME_OR_ALIAS.domain #set from = username@HOSTNAME_OR_ALIAS.domain
-set realname="juckins@lightning"+#set realname="juckins@lightning" 
 +set realname=$USER@$HOSTNAME
 </code> </code>
  
gmail_as_a_relay_on_linux.txt · Last modified: 2024/01/01 12:40 by juckins