Guest User

Untitled

a guest
Nov 6th, 2018
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  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
Add Comment
Please, Sign In to add comment