We have a simple email system that uses Postfix to forward on emails sent to our accounts to our gmail accounts. This is achieved through virtual_alias_maps in main.conf and a corresponding file that lists all the aliases. Now emails are relayed, e.g.
postfix/smtp[xxxx]: xxxxxx: to=<[email protected]>, orig_to=<[email protected]>
Now I want to configure the server such that we can send emails. And I don't want to set up / manage our very own full on mail server with DKIM etc. What I'd like to do instead is use a service like Amazon SES through which we can relay our outbound emails.
I have this (partially) working. Postfix uses SES as a relayhost (as described here). I can now successfully send messages via [email protected].
-- Now for the big however... --
However, this configuration does not work nicely with the forwarded email setup via virtual_alias_maps. When I have SES configured as a relayhost, I can no longer receive messages sent to one of my accounts at the alias.
The problem is that when postfix receives an email from [email protected] addressed to [email protected] and then maps it to [email protected], it relays it back through SES, which rejects the message because [email protected] is not a verified sender of messages.
I am hoping to configure postfix to not relay messages to SES when relaying a message originally sent to an @my.company account.
However, I'm having a hard time understanding the postfix configuration options.
Is this even possible with postfix? If it is how would I do it?
Does anyone have insight on the matter?
Thanks!
p.s. it is also possible that the entire premise of what I want to do is flawed...
- - , .
Recent Questions...
ما را در سایت Recent Questions دنبال میکنید
برچسب:
نویسنده: استخدام کار
بازدید: 193
تاريخ: جمعه
14 اسفند
1394 ساعت: 1:59