If your instance is not configured to send out email, you have several options to choose from. One option is to use a service called SendGrid. You can sign up on their site and obtain an API key. To start using with WordPress, you simply install a plugin called WP Mail SMTP and supply the API key on the plugin and off you go. I use Contact Form 7 to send out email from a form. There are no issues using Contact Form 7 and SendGrid. In addition to SendGrid, the plugin also works with other email providers such as AWS, Gmail, Outlook, Zoho, Mailgun to name just a few.
I recently moved my website hosting from Linode to AWS LightSail. Part of the move was working with Route 53 for DNS, as well as setting up my domain’s email, e.g. the MX record. I’m using ProtonMail for email and they require that I add multiple TXT records. Part of the problem is Route 53 will not allow duplicate TXT records. After a few searches, I learned that you can enter in multiple values in the TXT record as long as you place them on multiple lines. That solved the problem for me.
I ran into several issues with the Roundcube installation on Ubuntu. Roundcube is a browser-based IMAP client that you can install on your server. It’s available from the Ubuntu repository to install. You run this command from the Terminal to install.
sudo apt-get install roundcube roundcube-mysql
However, I ran into some issues. The two Roundcube configuration files are main.inc.php and debian.db.php. Both are located in the /etc/roundcube directory. If you have problems receiving or sending mails, it’s worth to take a look at your IMAP and SMTP settings on your /etc/roundcube/main.inc.php file.
Edit the /etc/roundcube/main.inc.php file. Use your own server settings.
sudo nano /etc/roundcube/main.inc.php
IMAP and SMTP Settings
// IMAP server $rcmail_config['default_host'] = array("ssl://imap.yourmailserver.com"); // TCP port used for IMAP connections $rcmail_config['default_port'] = 993; // SMTP server $rcmail_config['smtp_server'] = 'ssl://smtp.yourmailserver.com'; // SMTP port $rcmail_config['smtp_port'] = 465; // SMTP username (if required) use %u as the username $rcmail_config['smtp_user'] = '%u'; // SMTP password (if required) use %p as the password $rcmail_config['smtp_pass'] = '%p';
Use %u and %p if you have multiple accounts.
Make sure your database credentials are correct.
$dbuser='your_username'; $dbpass='your_password'; $basepath=''; $dbname='roundcube'; $dbserver=''; $dbport=''; $dbtype='mysql';
Finally, reboot the Apache server for good measure.
sudo service apache2 restart