{"id":17223691,"url":"https://github.com/sebastiaanklippert/lambda-ses-forwarder","last_synced_at":"2025-04-14T00:24:40.497Z","repository":{"id":64302841,"uuid":"159871740","full_name":"SebastiaanKlippert/lambda-ses-forwarder","owner":"SebastiaanKlippert","description":"AWS SES Email forwarder Lambda function","archived":false,"fork":false,"pushed_at":"2024-12-19T21:02:28.000Z","size":407,"stargazers_count":13,"open_issues_count":0,"forks_count":4,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-13T15:46:22.304Z","etag":null,"topics":["aws","aws-lambda","aws-ses","email","forwarder","go","golang"],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SebastiaanKlippert.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-11-30T19:50:43.000Z","updated_at":"2024-12-19T21:02:32.000Z","dependencies_parsed_at":"2023-01-15T09:45:47.062Z","dependency_job_id":null,"html_url":"https://github.com/SebastiaanKlippert/lambda-ses-forwarder","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SebastiaanKlippert%2Flambda-ses-forwarder","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SebastiaanKlippert%2Flambda-ses-forwarder/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SebastiaanKlippert%2Flambda-ses-forwarder/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SebastiaanKlippert%2Flambda-ses-forwarder/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SebastiaanKlippert","download_url":"https://codeload.github.com/SebastiaanKlippert/lambda-ses-forwarder/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248800091,"owners_count":21163404,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["aws","aws-lambda","aws-ses","email","forwarder","go","golang"],"created_at":"2024-10-15T04:09:02.021Z","updated_at":"2025-04-14T00:24:40.470Z","avatar_url":"https://github.com/SebastiaanKlippert.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# lambda-ses-forwarder\nAWS SES Email forwarder Lambda function written in Go.\n\nThis is a Lambda function to forward emails received from SES.\n\n## Setup instructions\n\nAssuming you have SES incoming emails enabled, this function needs the following configuration.\n\n### IAM\n\n* Create a Lambda execution role with a policy that allows\n    * _s3:GetObject_ on a bucket you can store incoming e-mails in\n    * _ses:SendRawEmail_ to forward the email to the new destination\n    * Don't forget to include the default Lambda execution policy to be able to write Cloudwatch logs\n\n### Lambda\n\n* Create a Lambda function with Go 1.x runtime and the execution role you have just created\n* Build this program or download a [release](https://github.com/SebastiaanKlippert/lambda-ses-forwarder/releases) zip and upload it as source\n* Set the exection handler name to the name of the binary (lambda_ses_forwarder_linux if you use a release)\n* Memory size can be as low as 128MB if you don't receive large mails, but 256MB or higher is recommended\n* You can configure the function by using these environment variables:\n\nVariable name | Required | Description\n--- | --- | ---\nFORWARD_FROM | Yes | Address\u003csup\u003e1\u003c/sup\u003e used as FROM address when forwarding mail\u003csup\u003e2\u003c/sup\u003e\nFORWARD_TO | Yes | Address\u003csup\u003e1\u003c/sup\u003e used as TO address when forwarding mail\nS3_BUCKET | Yes | Name of the S3 bucket you use to store incoming mails\nS3_BUCKET_REGION | No | Can be set when the S3 bucket is in a different AWS region than your Lambda\nS3_PREFIX | No | If you use a key prefix when storing mails you can enter it here\n\n\u003csup\u003e1\u003c/sup\u003e a single RFC 5322 address, e.g. `test@example.com` or `My Name \u003ctest@example.com\u003e` \n\n\u003csup\u003e2\u003c/sup\u003e can include %s as replacer to include the original sender name, e.g. `%s through my mail forwarder \u003cforwarder@example.com\u003e`\n\n**Important** Ensure the FORWARD_FROM address is a verified address in SES and is allowed to send mail, the original FROM address will be set as Reply-To address so you can answer the mails directly.\n\n![Lambda Env](https://sklippert.s3-eu-central-1.amazonaws.com/public/lambda-env.png \"Lambda environment\")\n\n\n### SES\n\n* Create a Rule Set for the incoming address or domain you want to forward emails for\n* Create a first action to store your mail in the S3 bucket from the previous steps with an optional prefix\n* Create a second action to call the Lambda function you created\n\n![SES Rule](https://sklippert.s3-eu-central-1.amazonaws.com/public/ses-rule.png \"SES Rule\")\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsebastiaanklippert%2Flambda-ses-forwarder","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsebastiaanklippert%2Flambda-ses-forwarder","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsebastiaanklippert%2Flambda-ses-forwarder/lists"}