I am getting the error message User arn:aws:iam:blabla:user/blabla is not authorized to preform ses:SendRawEmail on resource arn:aws:ses:locationLblabla:identity/[domain-of-the-to-address].com my DevOps informs me that [domain-of-the-to-address] should me a specific/our domain. The only way I can find to manipulate that is changing the to address. How do i properly set that? I have tried that following
// services.php
return [
'ses' => [
'key' => '...',
'secret' => '...',
'region' => '...',
'options' => [
'SourceARN' => 'arn:aws:ses:locationLblabla:identity/[correct-domain].com'
'Source' => 'test@[correct-domain].com'
],
]
];
and
// MyMailable.php
$this->withSwiftMessage(function (Swift_Message $message) {
$message->getHeaders()->addTextHeader('X-SES-SOURCE-ARN', 'arn:aws:ses:locationLblabla:identity/[correct-domain].com');
});
Edit: In other words. I DO have the ses:SendRawEmail permission. I'm sending an email like:
to: joe-bob@gmail.com
from: do-not-reply@my-comp.com
but some how laravel driver or aws sdk is getting it backwards setting my identity as arn:aws:ses:locationLblabla:identity/gmail.com not arn:aws:ses:locationLblabla:identity/my-comp.com and we don't and wouldn't have an identity setup in out aws for ever single email domain with the ses:SendRawEmail so it won't work.