DanW Posted October 8, 2009 Posted October 8, 2009 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: ** [email protected] 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 ; 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 ; 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
wlaidlaw Posted October 8, 2009 Posted October 8, 2009 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 = Hope this helps. Regards Will
DanW Posted October 8, 2009 Author Posted October 8, 2009 i've tried that and it's still doing the same
wlaidlaw Posted October 8, 2009 Posted October 8, 2009 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. helo exchange mail from: [enter valid email address on exchange server] rcpt to: [email protected] data test data . If you post back the output that will help to figure out what is happening. Will
DanW Posted October 8, 2009 Author Posted October 8, 2009 (edited) This is from my mac 220 ***.com ESMTP Postfix HELO exchange 250 ***.com MAIL From: wrightd@***>com 250 2.1.0 Ok RCPT To: [email protected] 554 5.7.1 : Recipient address rejected: Access denied -- this is from the exchange server 220 ***.com ESMTP Postfix HELO EXchange 250 boothamschool.com Mail From: wrightd@**.com 502 5.5.2 Error: command not recognized RCPT to: [email protected] 503 5.5.1 Error: need MAIL command Edited October 8, 2009 by DanW
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now