Changes between Version 133 and Version 134 of InstallationGuidelines/Amazon
- Timestamp:
- 02/05/20 17:36:15 (5 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
InstallationGuidelines/Amazon
v133 v134 105 105 It 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. 106 106 107 *In your Amazon Console, navigate to SES (Services | Customer Engagement | Simple Email Service)108 *Verify your Outbound Email Sender107 1. In your Amazon Console, navigate to SES (Services | Customer Engagement | Simple Email Service) 108 2. Verify your Outbound Email Sender 109 109 * Domain, if possible: https://docs.aws.amazon.com/ses/latest/DeveloperGuide/verify-domains.html 110 110 * 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]. 111 111 * 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 112 3. Get SMTP Credentials (USERNAME & PASSWORD for the below config): https://docs.aws.amazon.com/ses/latest/DeveloperGuide/smtp-credentials.html 113 4. Lookup your SMTP endpoint for your AWS region: https://docs.aws.amazon.com/ses/latest/DeveloperGuide/smtp-connect.html 114 5. Configure your MTA, which we assume to be Exim4: 115 {{{ 116 cd /etc/exim4 117 # We start with the default upstream config rather than the Debian one 118 gunzip /usr/share/doc/exim4-base/examples/example.conf.gz 119 cp example.conf exim4.conf 120 # Configure guided by https://docs.aws.amazon.com/ses/latest/DeveloperGuide/send-email-exim.html 121 vi /etc/exim4/exim4.conf 122 primary_hostname = myhost.mydomain 123 # set options to empty value to avoid warnings 124 keep_environment = 125 tls_advertise_hosts = 126 begin routers 127 # Use SMTP endpoint for your region 128 send_via_ses: 129 driver = manualroute 130 domains = ! +local_domains 131 transport = ses_smtp 132 route_list = * email-smtp.us-west-2.amazonaws.com; 133 begin transports 134 ses_smtp: 135 driver = smtp 136 port = 587 137 hosts_require_auth = * 138 hosts_require_tls = * 139 begin authenticators 140 # Use your USERNAME & PASSWORD 141 ses_login: 142 driver = plaintext 143 public_name = LOGIN 144 client_send = : USERNAME: PASSWORD 145 146 # Test config: 147 exim -C /etc/exim4/exim4.conf -bV 148 service exim4 restart 149 # Test: 150 exim -v recipient@domain 151 From: me@myhost.mydomain 152 Subject: Testing SES CLI 153 Test 154 155 . 156 }}} 157 6. Request a Sending Limit Increase using the AWS Console (button in Sending Statistics) 113 158 == 3. Install & Configure Sahana == 114 159 This should happen automatically through the user-data.sh script that you used earlier. You can check the progress of this using: