Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- apt-get install apache2
- apt-get install php5
- apt-get install mysql-server
- sudo apt-get install ssmtp
- gksu gedit /etc/ssmtp/ssmtp.conf
- # Config file for sSMTP sendmail
- #
- # The person who gets all mail for userids < 1000
- # Make this empty to disable rewriting.
- #root=postmaster
- root=****@gmail.com
- # The place where the mail goes. The actual machine name is required no
- # MX records are consulted. Commonly mailhosts are named mail.domain.com
- #mailhub=mail
- mailhub=smtp.gmail.com:587
- AuthUser=****@gmail.com
- AuthPass=****
- UseTLS=YES
- UseSTARTTLS=YES
- # Where will the mail seem to come from?
- #rewriteDomain=
- rewriteDomain=gmail.com
- # The full hostname
- #hostname=MyMediaServer.home
- hostname=****@gmail.com
- # Are users allowed to set their own From: address?
- # YES - Allow the user to specify their own From: address
- # NO - Use the system generated From: address
- FromLineOverride=YES
- ~$ sudo apt-get install msmtp ca-certificates
- ~$ sudo gedit /etc/msmtprc
- defaults
- tls on
- tls_starttls on
- tls_trust_file /etc/ssl/certs/ca-certificates.crt
- account default
- host smtp.gmail.com
- port 587
- auth on
- user MY_GMAIL_ID@gmail.com
- password MY_GMAIL_PASSSWORD
- from MY_GMAIL_ID@gmail.com
- logfile /var/log/msmtp.log
- ~$ sudo touch /var/log/msmtp.log
- ~$ sudo chmod 0644 /etc/msmtprc
- ~$ sudo chmod 0777 /var/log/msmtp.log
- ~$ echo -e "Subject: Test MailrnrnThis is my first test email." |msmtp --debug --from=default -t MY_GMAIL_ID@gmail.com
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement