-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Relay with AWS SES works partially #2944
Comments
Hi, can you show us how you setup the relay? |
Hi @andryyy, sure! Thank you for your support. I have attached some screenshots. In case you need database entries or some other screens - please let me know. Relay Domain Mailbox Forward |
Hi @andryyy, where you able to reproduce this behavior? Do you need more details from my side? After checking this issue again I realized that b) and c) are separate issues? Should I split them? TL;DR I see those issues (unless I'm have a configuration error) b) Rewrite the headers in smart way for mailbox forwarders I guess I will start some deeper debugging EOW or beginning of next week 👍 |
No, and I am not working on it. PRs are welcome. You might be able to change the forwarded mail with sieve_redirect_envelope_from, but it is already set to recipient. I don't see why it would forward from another address. Perhaps AWS also reads the "To" header, I don't know. If you find a solution for your problem, feel free to explain it in the docs or create a PR. :) |
Ah, you can also try a sieve rule like described in https://blog.sys4.de/email-forward-mit-sieve-ohne-spf-dmarc-und-dkim-konflikte-de.html
I really think it is the To field. |
Hi @andryyy, this looks promising! I test this during this/next week and will update my both threads and probably contribute to the documentation :-) |
Hi @christoph-kluge, were you able to fix this issue? I've got the same problem after updating mailcow recently. |
No update changed that behavior. |
I inspected the headers of two emails in the same context as b) in the first message above. I'll use the same example: Mailbox: Before the update:
After the update:
The error message I received from SES:
|
Ah, you didn't update in a longer time then, I think? You can try to set |
Yep @andryyy you were correct in thinking I did not update for a long time :-) Your suggestion fixed my problem. Thanks! |
That's cool. :) Thanks for confirming it! |
Hi @tissieres, nope I didn't fixed it because I did not investigate further. I went down with a different implementation for my use case. For now I'm using SES directly as MX and configured a lambda which acts as an forwarder - because I don't want to store emails at all. I am using mailcow as an smtp-only mailserver now, probably a bit overkill but ok. The configurable sender transport through SES works here perfectly. Maybe some followups on my gathered knowledge so far: Case b) might be solved with the implementation of SRS (#2418). To be honest I'm not sure if SES supports SRS (AWS Forum) now. I'm partially working on a lambda implementation when SES is configured as MX to see if SRS is working there. I hope that I can share some spare time for it during the next 4 weeks. If I will find something interessting I will share my insights. Case c) this is indeed interesting because aliases are not routed through the configured sender transports and sent directly from the mailcow. This might be correct behavior and might be the reason why SES does not support it. I'm guess (with my little understanding of SRS) that SRS got implemented excactly for this reason to support mailfowraders. The receiving server will instead check check the original sender headers like spf/dkim/dmarc etc rather than my hosts IP address. Please take into account that I'm not an email expert. I have a basic understanding of this topic but it's really basic. I'm just sharing my thoughts here of the thinhs that I've discovered so far. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
I'm also having this issue - sending emails via the SES relay directly from SOGo works flawlessly, but receiving emails is not working nor is sending to an alias (i.e. all emails going to [email protected] to go [email protected] are not routed through the relay) |
But receiving is not related. |
Alright, regardless, I'm still having the issue with case C
I use a recipient map so all emails coming into Mailcow are forwarded to my Gmail. They are not forwarding through the relay. |
Ask in one of the support channels, someone might be able to help. A global relayhost in main.cf/extra.cf will probably help. :) |
I'm not too familiar with that. I thought Mailcow took care of that? |
@mattmalec I was not able to setup this configuration as well.
It seems that Alias-Entries and Mailbox-Forwardings are simply not routed through the configured transport. I've stopped digging further into it to make it work.
If this is the only use-case for you and you're little bit familiar with AWS then I would suggest arithmetric/aws-lambda-ses-forwarder as a small AWS lambda. I went the same way. It works pretty easily and saves you some headache. |
Hello everybody,
for a norrmal mailbox the relayhost works but somehow it does not work when setting up forwarders. I have 3 Scenarios which I am testing right now:
a) [Mailbox] Send a norrmal mail - works and send through SES
This works flawlessly. I can send E-Mails, I see they are sent through SES, they are not in spam. Everything is fine 🥇
b) [Mailbox] Setup E-Mail Forwarding inside a Mailbox - does not work
As soon as I setup an E-Mail-Forwarding on this mailbox then the forwading gets bounced by AWS SES already.
Example:
Mailbox:
[email protected]
forwards to[email protected]
.Now I took a different account on gmail
[email protected]
and send a mail to[email protected]
.If course
[email protected]
is not verified in SES because I don't know who will send mails to my mailbox. Perhaps I'm missing some configuration here so would really love to hear about some hints. In the past I discovered this also with ISPConfig and did not found a solution for it. So it's pretty obvious that I'm missing something here.I remember that I read some posts/articles saying that the
From
-Header needs to be rewritten to the mailbox-address and a properReply-To
header should be appended. To be honest.. this did sound somehow like a hack.c) [Forwading] No Mailbox - Just an Alias/forwarder - mail gets bounced by gmail
I did setup an Alias from
[email protected]
to[email protected]
. The forward itself works flawlessly but it is not relayed through SES so it gets bounced by GoogleMail because I just have EC2 public ip. Anyways this public ip should not be relevant because it should go through SES, right?The text was updated successfully, but these errors were encountered: