Mike Gering:
> Is there a way to configure postfix so that it will attempt to use 
> direct delivery before relaying to another host?

Postfix looks up MX records by default, and can be configured to
add an "extra" MX host (with smtp_fallback_relay) that is given
the worst possible MX preference.

Note that if any host replies with a permanent error (5xx code) to
MAIL FROM, RCPT TO, DATA or end-of-data, Postfix will delete the
recipient(s) from the queue file and not try an alternate host for
those recipients.

However, I see occasional email abuse from EC2, so it is possible
that the EC2 IP address range had a bad email reputation.

In addition, many ISPs reject or silently discard mass mailings
from anywhere unless prior arrangements have been made.

        Wietse

> I've built my webserver on Amazon EC2 which, even with static IP 
> addresses, does not handle reverse DNS lookup, causing (relatively few) 
> recipient servers reject the mail. We've contracted with a mail relay 
> service, but they are more expensive than the EC2 service itself! Since 
> we're a municipal government, we need to reduce expenses as much as 
> possible. The only solution I can think of is to have postfix attempt to 
> deliver outgoing mail directly, and then for failures due to connection 
> refusals, deliver them via the relay.
> 
> Is there a way to do this? Or maybe there is a better solution. Any help 
> is very welcome!
> 
> Thanks,
> Mike
> 
> 
> 

Reply via email to