0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Google WorkspacesとAWS SESと

Last updated at Posted at 2025-11-04

Google WorkspacesのアカウントをAWS Simple Email Systemを設定してEC2からメール送信できるようにします。

まだ描きかけのため、色々省略しています。必要な情報が見つからなかったら、メッセージください。

Google Workpacesでやること

特になし。
新しいアカウント名を使いたい場合は、Google Workspaces上で「予備のアカウント名」を設定してください。

SESでやること

Google Workspacesで設定したメールをEC2とSESでメール送信できるようにします。

SESでメール送信できるようにします。

SESでメール認証

hoge@your.domainのメールを送信できるようにます。
私のドメインはRoute53でなくonamae.comだから、そちらで設定します。

メールアドレス認証は、SESが確認メールをyour.domainに送って認証する方式だから、hostmaster@your.domainなりroot@your.domainなりでメールを受信できるようにします。

メールが届いたら「許可する」なりをクリックします。

メールサーバ

Postfixなりをサクッと設定して、メールを送受信できるようにします。
.forwardに転送するメールアドレスを追記します。
設定後、ターミナルでEC2にログインして、テストメールを送信します。

\hoge
foo@gmail.com
ls -al | mail -s "test" hoge@your.domain

メールが届いたら設定終了です。

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?