[Drupal] How to Install sendmail system on Amazon AWS setup using bitnami Ubuntu AMI?

| | 1 min read

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.

  1. Install sendmail on the server,
    $ sudo apt-get install sendmail
  2. 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>

  3. Restart Apache,
    $ sudo /etc/init.d/apache2 restart
    $ sudo /opt/bitnami/ctlscript.sh restart apache2 
  4. For testing whether the mail system is working or not,
    $ echo "This is a test mail." | mail -s Testing [email protected]

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.