From: Darcy Buskermolen [mailto:[EMAIL PROTECTED]]
>
> Is there a way to get qmail to use the IP that mail is recived in on to
> resend it back out ?
>
> ie My qmail box has a few IP applied to it.
>
> 10.1.1.1
> 10.1.1.2
> 10.1.1.3
>
> I'd like mail comming in via smtp on 10.1.1.2 to go out useing 10.1.1.2 as
> the src address. Currently it defaults to 10.1.1.1
>
> IS there a way to do this ?
Hi Darcy,
I think you should look into the NAT (network Address Translation)
possibilities that are offered by the underlying operating system, rather
than trying to change the behavior of network applications like qmail.
I can't speak for all UNICES, but on Linux 2.4, you could make use of the
netfilter/iptables architecture to do some source address NAT in the
netfilter postrouting table based on the source and/or destination
destination TCP/UDP ports. It might also be possible to do it on a 2.2
kernel with advanced routing support and iproute2.
I'd be glad to hear from *BSD people on the list if ipfilter offers similar
functionality (possibly in private email).
Regards,
Filip