Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I'm trying to setup Postfix on Amazon AWS so that all emails forwarded to contact@mydomain.com will be forwarded to my personal email. I've verified my personal email address which it will be forwarding to, I've verified contact@mydomain.com, and I'm no longer in production mode.

The issue seems to be that the email addresses that write to contact@mydomain.com are not verified, obviously. And when the message comes through Amazon rejects it without forwarding to my personal email. I get a log entry like this:

Apr 20 17:33:12 ip-XX-XX-XXX-XXX postfix/smtp[17335]: E10ED1234: to=<mypersonal@gmail.com>, orig_to=<contact@mydomain.com>, relay=email-smtp.us-east-1.amazonaws.com[54.243.161.229]:25, delay=0.28, delays=0.01/0.03/0.12/0.13, dsn=5.0.0, status=bounced (host email-smtp.us-east-1.amazonaws.com[54.243.161.229] said: 554 Message rejected: Email address is not verified. (in reply to end of DATA command))

I have another email address which is also verified, and when I mail from that address to contact@mydomain.com then it successfully forwards it where I want. So the basic setup with Amazon SES is working, but I'm obviously missing something with regards to setting it up for an email forward/relay.

Any help would be much appreciated

share|improve this question
add comment

2 Answers

up vote 1 down vote accepted

To send through Amazon SES you need to verify every email address used in email From: field so I'm afraid for your setup Amazon SES is useless because there is limit of 1000 address you can verify.

share|improve this answer
    
That's disappointing. This seems like it would be a very common use-cases for anyone hosting on AWS. :( –  bratsche Apr 20 '13 at 17:59
    
Would it be possible to rewrite the From: part of the message to be something like "forwards@mydomain.com", then verify forwards@mydomain.com? Is it possible to set that up to only work for my aliases, or would I be somehow opening up my system to relay messages elsewhere in a spammy way? –  bratsche Apr 20 '13 at 18:04
    
You definitely can rewrite From: address by delivering locally to script which will forward all email with rewritten From: header (you can use formail to do this). I recommend opening new question for this. –  AlexD Apr 20 '13 at 18:40
    
I'll Google around first before I open a new question. Thanks for your help, marking your answer as accepted. :) –  bratsche Apr 20 '13 at 19:41
    
any chance you could help me out with my follow-up question? serverfault.com/questions/501722/… –  bratsche Apr 26 '13 at 22:51
add comment

You should be able to make this work if you:

  • Force the From address to one from your domain (perhaps forwarded@yourdomain.com).
  • Rewrite the Reply-To header to be the sender's address.

Most mail clients will honour the Reply-To and SES will be happy with the From address.

share|improve this answer
    
Hi ianjs, I've been looking into how to deal with this but running into some blockers. I've posted another question up which deals with how to do this, if you have time to help with it: serverfault.com/questions/501722/… –  bratsche Apr 22 '13 at 23:36
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.