mirror of
https://github.com/anonaddy/anonaddy.git
synced 2026-04-25 14:15:53 +03:00
[GH-ISSUE #471] [selfhosted] Forwarded email rejected by Amazon SES relayhost #909
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/anonaddy#909
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @buxm on GitHub (Jun 17, 2023).
Original GitHub issue: https://github.com/anonaddy/anonaddy/issues/471
I am experiencing a weird behaviour with my self hosted Anonaddy (v0.14.1) configured to use Amazon SES as a relay host to send emails (since my cloud provider blocks outbound connections to port 25).

I correctly set up the domain I use with Anonaddy as a verified identity in Amazon SES.
Also I moved my Amazon SES account out of the sandbox, so that only the sender needs to be a verified identity, not the recipient.
At least with one sender (not with all senders) to my Anonaddy alias, I get the following failed delivery when Anonaddy tries to forward the email to my mailbox:
Essentially, it looks as if the email was forwarded to my mailbox using the original sender, instead of using the Anonaddy alias as a sender.
Anonaddy logs say:
This does not happen with all original senders. But it also does not happen (with the same senders at least) using email relay services other than Amazon SES.
However Amazon SES offers the best pricing/lack of limitation combination for my needs.
Do you have any idea how I could troubleshoot that?
Amazon says This error could apply to the "From", "Source", "Sender", or "Return-Path" address.
However I am struggling to check what was actually sent to the SES relay server.
I could contact Amazon support.
But I guess I would need to check first what was sent to their relay server and that it complies with what their documentation say in order for them to look into a possible issue on their side.
@ghost commented on GitHub (Aug 10, 2023):
I have exactly the same issue as well, except for the sender being different.
Also using Amazon SES.
@buxm commented on GitHub (Mar 17, 2024):
The new Addy.io version (1.0.9) allows you to download the message in failed deliveries.
This enabled me to analyse the message and see that it contained a
Sender:header containing the original sender email address.According to this Amazon SES documentation page, it looks like SES checks the
From,Source,SenderandReturn-Pathheaders for verified identities.In this case the
Senderheader containing the original email address cannot clearly be a verified identity, hence the rejection.Apparently Amazon SES is therefore not 100% compatible with Addy.io, unless either Amazon SES enables the user to configure which headers to check for a verified identities (which it doesn't seem to do right now), or Addy.io enables the user to strip off headers such as
Senderfrom forwarded emails.@buxm commented on GitHub (Mar 17, 2024):
I found this page that helped me solving the issue.
Essentially what I did was:
/etc/postfix/header_checks:/etc/postfix/main.cf:This sorted my issue.
It would be handier if there were options to strip off headers in the Addy.io web app. Or if there were variables to do so in anonaddy/docker.
@Bart1909 commented on GitHub (Apr 24, 2024):
Thanks for the solution @buxm - I've added this manually to my postfix configuration inside the docker container. Hopefully this will prevent the issue