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

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
gmail_as_a_relay_on_linux_centos7 [2022/03/18 14:18] โ€“ juckinsgmail_as_a_relay_on_linux_centos7 [2022/03/18 14:23] โ€“ 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 |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.txt ยท Last modified: 2022/03/18 14:23 by juckins