+ Post New Thread
Results 1 to 5 of 5
*nix Thread, postfix and exchange in Technical; anyone implemented postfix and exchange solution where external mail comes into postfix is passed to exchange. sending mail, leaves exchange ...
  1. #1
    DanW's Avatar
    Join Date
    Oct 2007
    Posts
    246
    Thank Post
    35
    Thanked 12 Times in 12 Posts
    Rep Power
    18

    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

    Code:
    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.
    Code:
    Diagnostic information for administrators:
     
    Generating server: **
     
    email@email.com
    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@email.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 <email@email.com>;
            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

  2. #2

    Join Date
    Sep 2005
    Posts
    16
    Thank Post
    1
    Thanked 2 Times in 2 Posts
    Rep Power
    19
    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.


    Regards

    Will

  3. #3
    DanW's Avatar
    Join Date
    Oct 2007
    Posts
    246
    Thank Post
    35
    Thanked 12 Times in 12 Posts
    Rep Power
    18
    i've tried that and it's still doing the same

  4. #4

    Join Date
    Sep 2005
    Posts
    16
    Thank Post
    1
    Thanked 2 Times in 2 Posts
    Rep Power
    19
    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.

    Code:
    helo exchange
    
    mail from: [enter valid email address on exchange server]
    
    rcpt to: mail@example.com
    
    data
    
    test data
    
    .
    If you post back the output that will help to figure out what is happening.

    Will

  5. #5
    DanW's Avatar
    Join Date
    Oct 2007
    Posts
    246
    Thank Post
    35
    Thanked 12 Times in 12 Posts
    Rep Power
    18
    This is from my mac

    220 ***.com ESMTP Postfix
    HELO exchange
    250 ***.com
    MAIL From: wrightd@***>com
    250 2.1.0 Ok
    RCPT To: dan@danwright.co.uk
    554 5.7.1 <dan@danwright.co.uk>: 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: dan@danwright.co.uk
    503 5.5.1 Error: need MAIL command
    Last edited by DanW; 8th October 2009 at 04:32 PM.

SHARE:
+ Post New Thread

Similar Threads

  1. Outlook Exchange client with EMBC Exchange server
    By mavhc in forum East Midlands Broadband Consortium (EMBC)
    Replies: 0
    Last Post: 3rd February 2009, 01:46 PM
  2. Replies: 0
    Last Post: 12th September 2008, 09:34 AM
  3. Replies: 5
    Last Post: 13th March 2008, 09:57 AM
  4. Replies: 6
    Last Post: 16th February 2008, 02:28 PM
  5. Replies: 6
    Last Post: 5th July 2007, 03:45 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •