On Tue, Mar 17, 2009 at 8:58 PM, Chris Cameron <[email protected]> wrote: > I have a Postfix server that sits in front of Exchange. Exchange has > anti-spam software running that will reject what it deems as spam. > This is creating a problem for Postfix, which accepts a message, and > tries to send it to Exchange, who then rejects it. That leaves Postfix > with an email it has to try to bounce to a (usually) non-legitimate > sender. > > It'd be nice if Exchange accepted and then silently dropped, but that > doesn't seem to be coming. So, on my part, what can I do with Postfix > to drop messages that Exchange (defined through the transport file) > rejects? >
if postfix is only MX and not relay (receives mail for exchange but exchange sends directly to internet), you could do something like: smtpd_sender_restrictions= check_client_access hash=/path/to/file and in /path/to/file put: ip_of_exchange_server DISCARD then run "postmap /path/to/file" run "man 5 postconf" and "man 5 access" for details
