Re: qmail-smtpd, qmail-send and multiple IP addresses

2001-05-04 Thread Karsten W. Rohrbach

Filip Sneppe (Yucom)([EMAIL PROTECTED])@2001.05.04 16:12:44 +:
> I'd be glad to hear from *BSD people on the list if ipfilter offers similar
> functionality (possibly in private email).
ipf on bsd should provide this feature via nat bimap
/k

> 
> Regards,
> Filip

-- 
> Obscenity is the crutch of inarticulate motherfuckers.
KR433/KR11-RIPE -- http://www.webmonster.de -- ftp://ftp.webmonster.de
[Key] [KeyID---] [Created-] [Fingerprint-]
GnuPG 0x2964BF46 2001-03-15 42F9 9FFF 50D4 2F38 DBEE  DF22 3340 4F4E 2964 BF46



RE: qmail-smtpd, qmail-send and multiple IP addresses

2001-05-04 Thread Filip Sneppe \(Yucom\)

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




Re: qmail-smtpd, qmail-send and multiple IP addresses

2001-05-04 Thread Rodrigo Severo

Darcy Buskermolen wrote:
> 
> Is there a way to get qmail to use the IP that mail is recived in on to
> resend it back out ?

AFAIK the answer is no. I have been looking for some similar feature: I
want to set the src address depending on the e-mail bandwidth
requirement, you want to set it acording to the address it entered
through.

I managed to implement what I want with a major hack (also called
gambiara in portuguese): I already used qmail-scanner to filter my
e-mails for virus. Now qmail-scanner is also choosing which of my - now
- two qmail instances to use.

The new instance I installed yesterday has Damir Cifer outgoingip patch.

I believe you should take a look at  looking for
the 'bind to ip' patches. Besides Damir Cifer patch there are others
that might interest you, for example: Bill Nugent's updated patch.

None of them is exactly what you are looking for but you might be able
to create a gambiara that suit your needs.


I hope I helped you in some way,

Rodrigo Severo



qmail-smtpd, qmail-send and multiple IP addresses

2001-05-03 Thread Darcy Buskermolen

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 ?