| 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) |