• Skip to main content

Uly.me

cloud engineer

  • Home
  • About
  • Archives

smtp

SendGrid with WordPress

November 18, 2020

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.

Filed Under: Linux Tagged With: contact form 7, email, form, sendgrid, smtp, wordpress, wp mail smtp

Roundcube Install Errors

November 30, 2014

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.

Roundcube Install

sudo apt-get install roundcube roundcube-mysql

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

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';

// 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.

Database Settings

Make sure your database credentials are correct.

$dbuser='your_username';
$dbpass='your_password';
$basepath='';
$dbname='roundcube';
$dbserver='';
$dbport='';
$dbtype='mysql';

$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

sudo service apache2 restart

Filed Under: Linux Tagged With: email, imap, roundcube, smtp

  • Home
  • About
  • Archives

Copyright © 2023