daily pastebin goal
35%
SHARE
TWEET

Untitled

a guest Nov 6th, 2018 102 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/bin/bash
  2.  
  3. myHostName="$HOSTNAME"
  4. read -sp "Please paste your Gmail proxy email address (due to pasting, no verfication needed): " gmail_proxy_email_address  && echo
  5. read -sp "Please paste your Gmail proxy email password (due to pasting, no verfication needed):" gmail_proxy_email_password && echo
  6.  
  7. cat <<-EOF > /etc/ssmtp/ssmtp.conf
  8.     root=${gmail_proxy_email_address}
  9.     AuthUser=${gmail_proxy_email_address}
  10.     AuthPass=${gmail_proxy_email_password}
  11.     hostname=${myHostName}
  12.     mailhub=smtp.gmail.com:587
  13.     rewriteDomain=gmail.com
  14.     FromLineOverride=YES
  15.     UseTLS=YES
  16.     UseSTARTTLS=YES
  17. EOF
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top