Guest User

Untitled

a guest
Feb 11th, 2019
358
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. #!/bin/bash
  2. set -eu
  3.  
  4. read -p "Please paste your Gmail proxy email address: "
  5. gmail_proxy_email_address
  6. read -sp "Please paste your Gmail proxy email password:"
  7. gmail_proxy_email_password && echo
  8.  
  9. cat <<-EOF > /etc/ssmtp/ssmtp.conf
  10. root=${gmail_proxy_email_address}
  11. AuthUser=${gmail_proxy_email_address}
  12. AuthPass=${gmail_proxy_email_password}
  13. hostname=${HOSTNAME:-$(hostname)}
  14. mailhub=smtp.gmail.com:587
  15. rewriteDomain=gmail.com
  16. FromLineOverride=YES
  17. UseTLS=YES
  18. UseSTARTTLS=YES
  19. EOF
Add Comment
Please, Sign In to add comment