Last active
July 8, 2019 14:37
-
-
Save harmandeep-singh/995dc263c266a580e6c774c71322dab9 to your computer and use it in GitHub Desktop.
Setup php mail Ubuntu digital ocean
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//login to your droplet. | |
//1. output the hostname | |
hostname | |
//2. modify the hosts | |
nano /etc/host | |
//3. the first line in this file, should use the hostname on the end. For example: "Harman" | |
127.0.0.1 localhost localhost.domainname Lee | |
//4. install mail | |
sudo apt-get install sendmail | |
//5. configure the mail, answer yes to everything: | |
sudo sendmailconfig | |
//6. Restart apache2 / nginx | |
sudo service apache2 restart |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment