On Thu, Jul 27, 2000 at 12:28:39PM -0400, Bryan Ischo wrote:
! Can anyone point to me the best and easiest way to do this?
! I would need to somehow check the IP address of the remote host
! sending the mail, and the To: address to the mail, and I am not
! sure where in the qmail process these two pieces of information
! are readily available.

There's a simpler way. If you use tcpserver (as opposed to tcp-env)
to invoke qmail-smtpd, just put this in your rules file (assuming
10.*.*.* is your internal network):

10.:allow,INTERNAL="yes"

Then, in the .qmail file that handles your internal mailing list,
put in the first line,

|bouncesaying "You can't send to this address" [ -z "$INTERNAL" ]

I haven't tested the above, but that's the basic gist of it.

Hope it helps,
        ---Chris K.
-- 
 Chris, the Young One |_ but what's a dropped message between friends? 
  Auckland, New Zealand |_ this is UDP, not TCP after all ;) ---John H. 
http://cloud9.hedgee.com/ |_ Robinson, IV  
 PGP: 0xCCC6114E/0x706A6AAD |_ 

Reply via email to