Use Amazon SES to send email via SMTP

Visits: 661

Setup Roundcube to use Amazon AWS SES


Setting up any client to use SES is a bit complicated. Amazon invests into keeping SES a good service. This starts with usernames and Passwords that are very complicated  so that neither can be guessed. Even the domain is pretty long. The passwords often have  punctuation in the middle. When you try to  copy and paste them with double click the punctuation confuses the mouse. So be careful when copying these.


We now have pre-installed Cloud Servers on Windows with roundcube and Hmailserver Click Here to Subscribe at AWS

You need to request from AWS to allow you to send email via SES:


This URL discusses SES Service

This Link is the request form to ask that you be allowed out of the SAndbox so you can actually send emails

IN case you want to use your Ec2 instance to send emails instead of SES then click here to request that sending limits be llifted, as well as your really needing reverse DNS for domain authority


This will help your emails avoid the SPAM Bin. Contact if you have more questions.

You can install an Email Server to receive Email @YourDomain and send the email via SES. Here are links to different choices for different sized organizations:

We are offering free trials for our Charming Small Business Server on  Linux Server that

You need to first create SES IAM SMTP credentials

  • I am always assigned as the Amazon SMTP server, but if you get a different one replace it below
  • In SMTP User name put the assigned username, it is pretty long string of random chrachters
  • The SMTP Password if a VERY long Random string of characters, that often include a slash
  • If using the downloaded credentials.csv file you can tell where the username ends and password begins by finding the comma



IAM User Name,Smtp Username,Smtp Password

To configure Roundcube to use SES:

Edit C:\inetpub\wwwroot\webmail\config\

$config[‘smtp_server’] = ‘tls://’;


$config[‘smtp_user’] = ‘YOUR-SES-USERNAME-RANDOM-CHARS’;
$config[‘smtp_pass’] = ‘YOUR-SES-PASSWORD_THAT-is REALLY-LONG’;



// ———————————-
// ———————————-
// SMTP server host (for sending mails).
// To use SSL/TLS connection, enter hostname with prefix ssl:// or tls://
// If left blank, the PHP mail() function is used
// Supported replacement variables:
// %h – user’s IMAP hostname
// %n – hostname ($_SERVER[‘SERVER_NAME’])
// %t – hostname without the first part
// %d – domain (http hostname $_SERVER[‘HTTP_HOST’] without the first part)
// %z – IMAP domain (IMAP hostname without the first part)
// For example %n = mail.domain.tld, %t = domain.tld
$config[‘smtp_server’] = ‘tls://’;

// SMTP username (if required) if you use %u as the username

// will use the current username for login
$config[‘smtp_user’] = ‘YOUR-SES-USERNAME-RANDOM-CHARS’;

// SMTP password (if required) if you use %p as the password Roundcube
// will use the current user’s password for login
$config[‘smtp_pass’] = ‘YOUR-SES-PASSWORD_THAT-is REALLY-LONG’;