Use Amazon SES to send email via SMTP

Visits: 646

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

https://docs.aws.amazon.com/ses/latest/DeveloperGuide/request-production-access.html

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

https://aws.amazon.com/ses/extendedaccessrequest/

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

https://aws.amazon.com/forms/ec2-email-limit-rdns-request?catalog=true&isauthcode=true

 

This will help your emails avoid the SPAM Bin. Contact steve@charming.co.il 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:

http://charmingcloud.net/product-category/mail-server/

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 email-smtp.us-east-1.amazonaws.com 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

ie:

 

IAM User Name,Smtp Username,Smtp Password
“ses-smtp-user.20150412-19234234”,’YOUR-SES-USERNAME-RANDOM-CHARS,YOUR-SES-PASSWORD_THAT-is REALLY-LONG

To configure Roundcube to use SES:

Edit C:\inetpub\wwwroot\webmail\config\config.inc.php

$config[‘smtp_server’] = ‘tls://email-smtp.us-east-1.amazonaws.com:587’;

 

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

 

 

// ———————————-
// SMTP
// ———————————-
// 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://email-smtp.us-east-1.amazonaws.com:587’;

// 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’;