Find the answer to your Linux question:
Results 1 to 7 of 7
Good Day I Have a postfix server Ver 2.1.5 Receiving mail from ISP behind a firewall I have Installed a Exchange Server Ver 6.5 on Server2003 R2 With Active Directory. ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jun 2008
    Posts
    7

    Postfix Relay to exchange server


    Good Day

    I Have a postfix server Ver 2.1.5 Receiving mail from ISP behind a firewall
    I have Installed a Exchange Server Ver 6.5 on Server2003 R2 With Active Directory.
    My goal is to get 10 users from my 130 users relayed to exchange and the rest to stay on postfix.
    Is this possible
    please assist

    Kind Regards

    Madmax2

  2. #2
    Linux Engineer jledhead's Avatar
    Join Date
    Oct 2004
    Location
    North Carolina
    Posts
    1,077
    you can use transport maps to specify next hops
    transport(5): Postfix transport table format - Linux man page
    we are using this to deliver to 2 different mail servers
    Code:
    fakeuser@fakedomain     smtp[mailserver1]
    fakeuser2@fakedomain        smtp[mailserver2]
    in your case probably 100 users would all have the same next hop and then those 30 will have exchange as the next hop.

  3. #3
    Just Joined!
    Join Date
    Jun 2008
    Posts
    7
    Quote Originally Posted by jledhead View Post
    you can use transport maps to specify next hops
    transport(5): Postfix transport table format - Linux man page
    we are using this to deliver to 2 different mail servers
    Code:
    fakeuser@fakedomain     smtp[mailserver1]
    fakeuser2@fakedomain        smtp[mailserver2]
    in your case probably 100 users would all have the same next hop and then those 30 will have exchange as the next hop.
    Thank you for your reply
    I had a look at the document and used WinSCP3 to have a look at etc\postfix\transport file
    Must be honest it is all greek to me
    what would be my first step in this.
    I only have to route 4 users out of the 130 to exchange

  4. $spacer_open
    $spacer_close
  5. #4
    Just Joined!
    Join Date
    Jun 2008
    Posts
    7
    I have used Winscp3 edited the etc\transport file as
    fakeuser@fakedomain smtp:[192.xxx.xxx.53]

    but the mail does not get thru to exchange
    do I need the nail user on the postfix box aswell

  6. #5
    Just Joined!
    Join Date
    Jun 2008
    Posts
    7
    I have used Winscp3 edited the etc/postfix/transport file as
    fakeuser@fakedomain smtp:[192.xxx.xxx.180]
    192.xxx.xxx.180 as exchange server
    but the mail does not get thru to exchange
    do I need the nail user on the postfix box aswell

  7. #6
    Linux Engineer jledhead's Avatar
    Join Date
    Oct 2004
    Location
    North Carolina
    Posts
    1,077
    after editing a db file in postfix (like the transport file) you need to do
    Code:
    postmap /etc/postfix/transport
    you also need to reference it in your main.cf and either find this line and edit it or add it if its not there
    Code:
    transport_maps = hash:/etc/postfix/transport

  8. #7
    Just Joined!
    Join Date
    Jun 2008
    Posts
    7

    Thank you

    I thank you SIR
    much appreciated all is working well
    have a great day

Posting Permissions

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