Find the answer to your Linux question:
Results 1 to 2 of 2
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    [SOLVED] Using Shorewall to forward all email traffic to specific server

    We purchased another company that has their own domain and email server (Exchange). The server sits inside our network now but I need to accept email traffic for their domain through my firewall and forward it to an internal email server for a few weeks while we transition users off of that server. Essentially I need to run a second email server inside our network EXCEPT that this particular email server will only be getting traffic from 5 specific IP addresses since they use a service to filter their email.

    Is it wise to allow all traffic from those specific IP addresses through and forward them to the Exchange server IP address? I know the company and trust them. Also will my plan work? Most of all how do I configure Shorewall to do this forwarding? Thanks in advance.

  2. #2
    So I answered my won question.

    DNAT net: loc: tcp 25

    Will forward all requests from network to the second email server running on (Note this line needs to go before your normal email server DNAT entry or it won't get processed correctly.

    I also needed the following line to allow the second email sever to send mail OUT through the firewall

    ACCEPT loc: net tcp 25

    All pretty basic but maybe it will help someone else out in the future.

Posting Permissions

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