Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

ses-smtp-user.20200807-125501.

Settings in ansible_inventory

The credentials, stored in group_vars/vault, are named respectively:

smtp_username

smtp_password

Another variable, smtp_host, is stored in group_vars/kithe_staging. Its value is email-smtp.us-east-1.amazonaws.com .

See local_env.yml.jw to see these settings pulled into the digital collections local_env.yml settings fileTo get SMTP username and password, you use an AWS IAM credentials, but need to derive the password from the IAM secret key: https://docs.aws.amazon.com/ses/latest/dg/smtp-credentials.html#smtp-credentials-convert (ruby code: https://gist.github.com/damusix/c12400ee0ccb7e56351619ae2b19a303?permalink_comment_id=3077509 )

(There may be another way to get them from SES console… for some reason accessing AWS SES console it makes us set up from scratch including verifying our domain, when in fact SES is already working for us…. not sure what’s going on here).

Settings in scihist_digicoll code

...

ActionMailer::Base.mail(from: 'no-reply@sciencehistory.org', to: 'erubeiz@sciencehistory.org', subject: 'Test message from Eddie. Please ignore.', content_type: 'text/html', body: 'Testing').deliver_now

DKIM

We started using DKIM to prove our ownership of the sciencehistory.org email domain in March 2024.

See settings in AWS .

See settings in Terraform.