概要
Amazon Lightsail上に立てたOmeka Sからメールを送るには、メールの送信設定が必要なようです。今回は、Amazon SESを使用する方法を紹介します。
クラウド E メール送信サービス - Amazon Simple Email Service - AWS
Amazon Simple Email Service (SES) は、デベロッパーが任意のアプリケーションで E メールを送信できるようにする、費用対効果の高い、柔軟でスケーラブルな E メールサービスプロバイダーです。
以下のフォーラムでのやりとりが参考になりました。

Configuring sendmail or SMTP for Omeka S on Amazon Lightsail
Hello everyone, I’m new here and have recently integrated Omeka S into our institution using an Amazon Lightsail LAMP instance. While I’ve had success with the installation, I’ve faced challenges setting up the Guest and Guest API modules due to its need for outbound email sending configurations for new user email confirmations. Despite attempts with sendmail and manual SMTP configurations in local.config.php, I haven’t been successful. Though, with sendmail installed, the website indicates the...
Amazon SESの設定
以下のサイトなどを参考にして、Amazon SESの設定を行います。

Lightsailを作ってみる②~ Amazon SESの設定 - Qiita
はじめに 前回以下の記事でLightsailの構築をしましたが、今回はその作成したLightsail内のWordPressの管理画面からメールが送付したいというとこからになります。 WordPressにメールの送信設定をしないといけないとのことで、今回はWordPress...
Omeka Sの設定
Omeka S の local.config.php ファイルを以下のように編集します。
<?php
return [
'logger' => [
// ログ設定(必要に応じて)
],
'mail' => [
'transport' => [
'type' => 'smtp', // SMTP を使用
'options' => [
'name' => 'ses-smtp-user', // 任意の名前
'host' => 'email-smtp.us-east-1.amazonaws.com', // SES SMTP サーバーエンドポイント
'port' => 587, // SES がサポートするポート(例: 587)
'connection_class' => 'plain', // 認証タイプ
'connection_config' => [
'username' => 'your-ses-smtp-username', // SES SMTP ユーザー名
'password' => 'your-ses-smtp-password', // SES SMTP パスワード
'ssl' => 'tls', // SSL タイプ('tls' 推奨)
'use_complete_quit' => true,
],
],
],
],
// その他の設定...
];
hostには、使用している AWS リージョンに応じた Amazon SES SMTP サーバーのエンドポイントを指定してください。例ではus-east-1リージョンのエンドポイントを使用していますが、必要に応じて変更してください。usernameとpasswordは、Amazon SES で生成した SMTP クレデンシャルを使用してください。
まとめ
Amazon Lightsailを用いたOmeka Sの利用にあたり、参考になりましたら幸いです。




コメント
…