Problems with setup of a SMTP gateway. (postfix)

Posted on 2005-04-18
Last Modified: 2013-12-17
On our DMZ we got a debian box with postfix that i want to configure so that we forward all incoming mail to our exchange server. The debian box is the MX for our domain.

I get mail locally delivered on the debian box, but i cant figure out how to forward all mails to our exchange server. The debian box is also the outgoing SMTP server for the exchange server.

Question by:joachims
    LVL 8

    Accepted Solution

    You'll want to setup a transport map in postfix. To do this you add something like:

    transport_maps = hash:/etc/postfix/transport

    then create a file in /etc/postfix directory called: transport
    and then put in the domain you want to relay for and the ip address of the machine you want it to be forwarded to in the following format (obviously you'll need to put your real domain and ip address here): smtp:[]


    postmap hash:/etc/postfix/transport


    postfix check


    postfix reload

    Now all mail coming in will be passed on to your exchange server.

    LVL 1

    Author Comment

    You should be writing howto's for postfix! :)

    LVL 8

    Expert Comment

    Glad I could help!


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Too many email signature updates to deal with?

    Are you constantly visiting users’ desks making changes to email signatures? Feel like it’s taking up all of your time? Wish you could manage all signatures from one central location, easily design them and deploy them quickly to users? Well, there is an easy way!

    When it comes to providing great business solutions, IBM and Microsoft are the two top companies excelling in the art. Both launch similar products aimed at a wide audience set and have a good customer satisfaction rate. Since their products are qui…
    Easy CSR creation in Exchange 2007,2010 and 2013
    Familiarize people with the process of utilizing SQL Server functions from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Ac…
    Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…

    760 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    8 Experts available now in Live!

    Get 1:1 Help Now