From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Travis Crook" Subject: Email troubles behind iptables firewall Date: Thu, 12 Sep 2002 08:30:50 -0600 Sender: netfilter-admin@lists.netfilter.org Message-ID: <002c01c25a68$fde16160$6902a8c0@visionsbeyond.mindtrip> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: Errors-To: netfilter-admin@lists.netfilter.org List-Help: List-Post: List-Subscribe: , List-Id: List-Unsubscribe: , List-Archive: Content-Type: text/plain; charset="us-ascii" To: netfilter@lists.netfilter.org Hi all, I have an iptables firewall setup to route web, ftp and email traffic to internal servers. My internal servers have ip addresses in the 192.168.2. range. The problem I am having is that my email server is being used as a spam box (not by me but by someone else on the internet - not with my approval either). My question is this: Qmail is my mail server. It is supposed to only allow relaying by certain clients. As far as I know it is set up this way. I think the problem occurs because I allow 192.168.2. ip addresses to relay mail (i.e. everyone behind the firewall). But every email coming in to the mail server gets a 192.168.2. ip address. Is this correct? Is there any way to pass their real ip address through the firewall to the mail server? Any help would be greatly appreciated. I can post the firewall script, etc. if needed. Thanks Travis Crook Visions Beyond