1

Topic: Amazon SES email forwarding

==== Required information ====
- iRedMail version:
- Store mail accounts in which backend (LDAP/MySQL/PGSQL):
- Linux/BSD distribution name and version:
- Related log if you're reporting an issue:
====

Hi, this isn't strictly about iredmail although i hoped someone might be able to shed some light on it anyway. Here is my problem;

Im using Amazon SES to send all or my email via SMTP & postfix. Amazon SES requires all sending addresses (or domains) to be verified in the amazon SES dashboard or they are automatically rejected. This is great for security and spam prevention in general but i have recently encountered a problem which i cant seem to find a workaround for.

Basically, lets say i have at inbox (ben@domain.com) which has a forwarding address set up (ben@gmail.com) so that all mail is automatically forwarded to that external inbox. If i send an email from another external address (ben@yahoo.com) it sucesfully arrives in the ben@domain.com inbox (since 'incoming' mail does not pass through SES) but then the forwarded message never sends/arrives because the server keeps the from address as ben@yahoo.com and attempts to forward the email on via SES to ben@gmail.com.

The reason it fails of course is that amazon thinks i am trying to send an email from ben@yahoo.com to ben@gmail.com and the yahoo.com address (or anything else for that matter) is obviously not in my verified sending domains list.

This seems like a relatively minor and quite specific issue but it actually means that email forwarding is completely broken for us currently, and a lot of the domains we are hosting belong to clients who like to forward all of their mail to their preferred webmail provider. Like i said, this isnt a flaw or a fault with iredmail in any way, i am just after some potential suggestions

Any one got any ideas on a way around this? Im thinking some way to modify the email headers pre-forwarding might work but its outside my skill level to know how to do this.

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: Amazon SES email forwarding

I guess it requires SRS (Sender Rewriting Scheme) on forwarding server:
http://en.wikipedia.org/wiki/Sender_Rewriting_Scheme

3

Re: Amazon SES email forwarding

ZhangHuangbin wrote:

I guess it requires SRS (Sender Rewriting Scheme) on forwarding server:
http://en.wikipedia.org/wiki/Sender_Rewriting_Scheme

so this is something that could be implemented into iredmail then? since iredmain *is* the forwarding server?

currently all email forwarding fails in iredmail when using amazon SES, which is a shame because it means we cant use it

4

Re: Amazon SES email forwarding

i think this might be what i need to do;

http://serverfault.com/a/501471

(follow-up question was posted here http://serverfault.com/questions/501722 … n-postfix)

but ive got no idea how to implement this universally for all forwarded email. I wouldnt even know where to start. Could anyone point me in the right direction?

5

Re: Amazon SES email forwarding

is anyone else here using Amazon SES to send that could maybe offer some suggestions? Anyone using Amazon SES will be experiencing the same problems as me where all email forwarding is broken.

6

Re: Amazon SES email forwarding

No idea, sorry. I guess it might be better to ask support from Amazon SES.