On Thu, May 06, 1999 at 12:18:33AM +0200, Sysop wrote:
> Hello,
>
> I have a problem with setting up our mailserver for selective relaying.
> Here is what I have and what I need:
>
> We are an ISP with hundreds of domains and users and also offer dialin.
> So:
>
> - all local users must send and receive emails
> - we have many users, who dialin through other ISP's (e.g. aol) but have
> a POP3-Account
> here. These users should also send (relay) through our mailserver.
>
> This is generally no problem with the avaible tools -
> but it`s too much work and not secure enough to allow relaying only IP's
> (dynamic ip-addresses, many ISP's, many networks..)
>
> I think that the following concept would do a good job:
>
> 1.) relay on IP-Base, with some (larger) networks
> 2.) allow relay if sender has a address within our domainpool and IP in
> IP-List
> 3.) accept messages from everywhere (ok .. excluding some baddomins ,
> ORBS...) for recipent-addresses in our pool.
>
> 1.) and 3.) are "simple", but how can I do 2.) ????
>
> Can you help me or do you have an idee how I can do this?
What you really want to do is tell people to relay mail through their own ISPs'
SMTP servers. That's what they're there for.
But if you want to do 2, I modified a patch that I wrote to relay based on
envelope sender. I added the part about doing this only for specified IP
addresses. You can find it at
http://www.palomine.net/qmail/relaymailfrom+ip.patch
Chris