I have been struggling with this for days. I have scoured every post on this topic that is available. I have done everything as specified and it still doesn't work.
The Image: ami-2df6fb44
This is the second image I have brought up. It is clean. The only changes I have done:
edited the config_inc.php file to add my settings for smtp.
$g_phpMailer_method = PHPMAILER_METHOD_SMTP;
$g_smtp_host = 'email-smtp.us-east-1.amazonaws.com';
$g_smtp_connection_mode = 'tls';
$g_smtp_port = 587;
$g_smtp_username = 'MyAwsSesUsername';
$g_smtp_password = 'MyAwsSesPswd';
$g_administrator_email = 'MyApprovedSender';
$g_webmaster_email = 'MyApprovedSender';
$g_from_email = 'MyApprovedSender';
$g_return_path_email = 'MyApprovedSender';
$g_from_name = 'Mantis Bug Tracker';
$g_email_receive_own = OFF;
$g_email_send_using_cronjob = OFF;
$g_log_level = LOG_EMAIL | LOG_EMAIL_RECEIPIENT;
$g_log_destination = 'file:/tmp/mantis_log.log';
The credentials used are SES SMTP IAM username and Secret Key NOT my AWS credentials.
I have done nothing else to the AMI.
I get this error in the log every time:
2014-04-01 11:34 PDT mail Processing e-mail queue (5 messages)
2014-04-01 11:34 PDT mail Sending message #1 queued on 2014-04-01 11:11 PDT
2014-04-01 11:35 PDT mail ERROR: Message could not be sent - SMTP Error: Could not connect to SMTP host.
2014-04-01 11:35 PDT mail Server not responding for 5 seconds, aborting
I have done the test email from AWS SES and it works fine.
Can anyone tell me what I have missed here? Or has the AMI image changed since the last time this topic was discussed?