Changes between Version 133 and Version 134 of InstallationGuidelines/Amazon


Ignore:
Timestamp:
02/05/20 17:36:15 (2 years ago)
Author:
Fran Boon
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • InstallationGuidelines/Amazon

    v133 v134  
    105105It is suggested that you use a Smart Hose such as [https://sendgrid.com SendGrid] or Amazon's own [https://aws.amazon.com/ses/ Simple Email Service (SES)]. We go through the latter process here since it is free for the 1st 62,000 mails/month which is sufficient for most of our use cases.
    106106
    107 * In your Amazon Console, navigate to SES (Services | Customer Engagement | Simple Email Service)
    108 * Verify your Outbound Email Sender
     1071. In your Amazon Console, navigate to SES (Services | Customer Engagement | Simple Email Service)
     1082. Verify your Outbound Email Sender
    109109 * Domain, if possible: https://docs.aws.amazon.com/ses/latest/DeveloperGuide/verify-domains.html
    110110  * NB If you have control of the Domain, then it is suggested to improve deliverability by setting up proper Authentication via [https://docs.aws.amazon.com/ses/latest/DeveloperGuide/send-email-authentication-spf.html SPF], [https://docs.aws.amazon.com/ses/latest/DeveloperGuide/send-email-authentication-dkim.html DKIM] & [https://docs.aws.amazon.com/ses/latest/DeveloperGuide/send-email-authentication-dmarc.html DMARC].
    111111 * Email Address, otherwise: https://docs.aws.amazon.com/ses/latest/DeveloperGuide/verify-email-addresses.html
    112 * Get SMTP Credentials (USERNAME & PASSWORD for the below config): https://docs.aws.amazon.com/ses/latest/DeveloperGuide/smtp-credentials.html
     1123. Get SMTP Credentials (USERNAME & PASSWORD for the below config): https://docs.aws.amazon.com/ses/latest/DeveloperGuide/smtp-credentials.html
     1134. Lookup your SMTP endpoint for your AWS region: https://docs.aws.amazon.com/ses/latest/DeveloperGuide/smtp-connect.html
     1145. Configure your MTA, which we assume to be Exim4:
     115{{{
     116cd /etc/exim4
     117# We start with the default upstream config rather than the Debian one
     118gunzip /usr/share/doc/exim4-base/examples/example.conf.gz
     119cp example.conf exim4.conf
     120# Configure guided by https://docs.aws.amazon.com/ses/latest/DeveloperGuide/send-email-exim.html
     121vi /etc/exim4/exim4.conf
     122primary_hostname = myhost.mydomain
     123# set options to empty value to avoid warnings
     124keep_environment =
     125tls_advertise_hosts =
     126begin routers
     127# Use SMTP endpoint for your region
     128send_via_ses:
     129  driver = manualroute
     130  domains = ! +local_domains
     131  transport = ses_smtp
     132  route_list = * email-smtp.us-west-2.amazonaws.com;
     133begin transports
     134ses_smtp:
     135  driver = smtp
     136  port = 587
     137  hosts_require_auth = *
     138  hosts_require_tls = *
     139begin authenticators
     140# Use your USERNAME & PASSWORD
     141ses_login:
     142  driver = plaintext
     143  public_name = LOGIN
     144  client_send = : USERNAME: PASSWORD
     145
     146# Test config:
     147exim -C /etc/exim4/exim4.conf -bV
     148service exim4 restart
     149# Test:
     150exim -v recipient@domain
     151From: me@myhost.mydomain
     152Subject: Testing SES CLI
     153Test
     154
     155.
     156}}}
     1576. Request a Sending Limit Increase using the AWS Console (button in Sending Statistics)
    113158== 3. Install & Configure Sahana ==
    114159This should happen automatically through the user-data.sh script that you used earlier. You can check the progress of this using: