Is there a way to set up qmail (possibly using tcpserver?) such that it
will accept incoming email for it's virtual domains from anywhere (like a basic
rcpthosts/virtualdomains setup), and will also do 3rd party relaying for
selected networks?

I'm looking at a situation where.. well it looks like this...



   --------------------- Private network ---------------------
                             |
                           eth1
                             |
                          Qmail server
                             |
                           eth0
                             |
     --------------------Real World-----------------------

So I want unrestricted 3rd party relaying on interface eth1, but want to only 
accept locally (or virtually locally :) addressed email on interface eth0.

Now it seems to me that effectively what I want to do is have rcpthosts only 
applying to one interface. 

So for eth1
No rcpthosts = open 3rd party relay. 

And for eth0
Configured rcpthosts = No 3rd party relaying :)

But I can't see how to achieve that :(

Alternatively, 
I can bind different rulesets to different interfaces using tcpserver.

So for eth1 (in - for example - smtp.rules.eth1)
:allow

No problem

But for eth0?? I can't see how to produce a set of rules, based on the IP 
address of the connecting machine, such that it will allow/deny based on the 
smtp information supplied after the connection is made.

The good news is... that based on what I've achieved so far, and assuming I can
get the last bits to work correctly :) our next mail server will *NOT* be 
running NT.

Cheers & Beers

Stef
-- 
Stefan Morrell                  | Still swearing at NT
Sysadmin Troll                  | Still struggling with UNIX
+44-(0)1924-502824 (W)          | Still enjoying it... must be mad!
[EMAIL PROTECTED]            | [EMAIL PROTECTED] 

Reply via email to