Drupal Technical
[Drupal] How to Install sendmail system on Amazon AWS setup using bitnami Ubuntu AMI?
If you want to send out mails from your Drupal website hosted on an Amazon AWS you would want to install a mail server on the AWS instance. Sendmail is an easy mail server to install and set up. Read on for knowing how to install sendmail on your Amazon AWS if it was set up using a Bitnami AMI based on Ubuntu.
- Install sendmail on the server,
$ sudo apt-get install sendmail
- If you have a webserver running on your Ubuntu installation and you want to send mails from PHP, you need to make some changes to the php.ini file,
$ sudo vi opt/bitnami/php/etc/php.ini
sendmail_path = /usr/sbin/sendmail -t -i -f root@<yourdomain.ext>
- Restart Apache,
$ sudo /etc/init.d/apache2 restart $ sudo /opt/bitnami/ctlscript.sh restart apache2
- For testing whether the mail system is working or not,
$ echo "This is a test mail." | mail -s Testing someone@example.com
Now your sendmail system configuration on your Amazon AWS instance is done successfully.
We offer support and maintenance of Drupal sites on VPS servers, Cloud servers like Amazon or Rackspace and dedicated servers. Contact us to know more.