Christopher Juckins

SysAdmin Tips, Tricks and other Software Tools

User Tools

Site Tools


gmail_as_a_relay_on_linux_centos7

Differences

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

Link to this comparison view

Next revision
Previous revision
gmail_as_a_relay_on_linux_centos7 [2022/03/18 14:16] โ€“ created juckinsgmail_as_a_relay_on_linux_centos7 [2022/03/18 14:23] (current) โ€“ juckins
Line 6: Line 6:
  
 Follow instructions at https://golb.hplar.ch/2018/06/send-only-email.html  Follow instructions at https://golb.hplar.ch/2018/06/send-only-email.html 
-  * See the PDF "Sending_Emails_From_Your_Linux_Server.pdf"+  * See {{ ::sending_emails_from_your_linux_server.pdf|Sending_Emails_From_Your_Linux_Server.pdf}}
  
 To get desired sender (username@hostname) when using mutt to send, add this line to /etc/ssmtp/ssmtp.conf: To get desired sender (username@hostname) when using mutt to send, add this line to /etc/ssmtp/ssmtp.conf:
   FromLineOverride=YES   FromLineOverride=YES
  
-Add these lines to the global /etc/Muttrc.local or each userโ€™s .muttrc:+Add these lines to the global /etc/Muttrc.local (easier than adding it to each user'$HOME/.muttrc):
  
   set from = "`whoami`@`hostname`"   set from = "`whoami`@`hostname`"
Line 20: Line 20:
  
 Successful test via crontab: Successful test via crontab:
-  * * * * * /path/to/bin/mutt_test.bash > /path/to/logs/mutt_test.log+  \* * * * * /path/to/bin/mutt_test.bash > /path/to/logs/mutt_test.log
  
 The mutt_test.bash test script has this for content: The mutt_test.bash test script has this for content:
gmail_as_a_relay_on_linux_centos7.1647627397.txt.gz ยท Last modified: 2022/03/18 14:16 by juckins