postfix and exchange
anyone implemented postfix and exchange solution where external mail comes into postfix is passed to exchange.
sending mail, leaves exchange via a send connector, goes to exchange and heads off to the interwebs.
I've managed to get postfix working so external mail comes in and goes to exchange.
But when i send mail from exchange it doesn't work and i get the following error
Your message wasn't delivered because of security policies. Microsoft Exchange will not try to redeliver this message for you. Please provide the following diagnostic text to your system administrator.
The following organization rejected your message: 192.168.1.239.
Diagnostic information for administrators:
Generating server: **
192.168.1.239 #<192.168.1.239 #5.7.1 smtp; 550 5.7.1 Unable to relay> #SMTP#
Original message headers:
Received: from localhost (emerald [127.0.0.1]) by domain.com
(Postfix) with ESMTP id 10ADB17776E for <email@example.com>; Thu, 8 Oct
2009 14:08:24 +0100 (BST)
X-Virus-Scanned: amavisd-new at domain.com
Received: from domain.com ([127.0.0.1])
by localhost (mail.domain.com [127.0.0.1]) (amavisd-new, port 10024)
with LMTP id CWewW+To43VB for <firstname.lastname@example.org>;
Thu, 8 Oct 2009 14:08:21 +0100 (BST)
Received: from exchange.** (exchange.** [192.168.1.239])
by domain.com (Postfix) with ESMTP id 159A517776A
for <>; Thu, 8 Oct 2009 14:08:21 +0100 (BST)
Received: from EXCHANGECLUSTER.** ([192.168.0.13]) by
exchange.** ([192.168.1.239]) with mapi; Thu, 8 Oct
2009 13:53:49 +0100
if anyone is able to help, it would be greatly appreciated
You need to configure posfix to allow relaying of email from your exchange server.
In /etc/postfix/main.cf (or similar)
Make sure you have lines like:
mynetworks = [ip of postfix server, [ip of exchange server as seen by postfix server]
relay_domains = [email domain used for exchange]
Hope this helps.
i've tried that and it's still doing the same
Can you try the following from your exchange box:
Telnet to the postfix box on port 25
Simulate sending an email by typing the following.
If you post back the output that will help to figure out what is happening.
mail from: [enter valid email address on exchange server]
rcpt to: email@example.com
This is from my mac
220 ***.com ESMTP Postfix
MAIL From: wrightd@***>com
250 2.1.0 Ok
RCPT To: firstname.lastname@example.org
554 5.7.1 <email@example.com>: Recipient address rejected: Access denied
this is from the exchange server
220 ***.com ESMTP Postfix
Mail From: wrightd@**.com
502 5.5.2 Error: command not recognized
RCPT to: firstname.lastname@example.org
503 5.5.1 Error: need MAIL command