Created
June 15, 2016 06:44
-
-
Save bajpangosh/0bdbe449d3af82f478faaba77cf2d62b to your computer and use it in GitHub Desktop.
Install and Test Sendmail on Ubuntu VPS
This file contains 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
sudo apt-get install php-pear | |
sudo pear install mail | |
sudo pear install Net_SMTP | |
sudo pear install Auth_SASL | |
sudo pear install mail_mime | |
sudo apt-get install postfix | |
## It'll shows a dialog box and select "Internet site" next, type "localhost" ok. | |
## Reboot apache | |
sudo service apache restart | |
##Finally test an sample mail via Terminal. | |
echo "Subject: sendmail test" | sendmail -v [email protected] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Where Is Sendmail And Its Configuration Files Located?
which sendmail
it'll shows "/usr/sbin/sendmail"
if the path is wrong fix it.
edit
sudo vi /etc/php5/apache2/php.ini
set sendmail path to
/usr/sbin/sendmail -t -i