What i think you can try do is try creating multiple instance of postfix First Instance: Direct Delivery (If rejected forwarded and tried via Instance 2) Second Instance: Configured for only relay host
I guess this should solve the problem. Rgds Dhiraj Stephen Leacock<http://www.brainyquote.com/quotes/authors/s/stephen_leacock.html> - "I detest life-insurance agents: they always argue that I shall some day die, which is not so." On Mon, Nov 9, 2009 at 03:00, Mike Gering <mike.ger...@hillsboroughnc.org>wrote: > Is there a way to configure postfix so that it will attempt to use direct > delivery before relaying to another host? > > 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 > >