I want to accept email either

A. from a set of defined IP addresses

or 

B. to a set of defined domains

qmail-smtpd does not appear to have a function to filter based on source IP
address.  tcpserver does though.

Thus, I think I should be able to do this by defining two IP addresses on
the system, and using separate tcpserver daemons to accept the mail.  (I
have control over the address particular types are delivered to)

I know that I can use tcpserver's accept-from-IP functions for A.

I know I can use rcpthosts for B.

The problem is, I can't have messages accepted under criteria A be rejected
on criteria B.  It would be great if I could run this all on one system, but
qmail-smtpd does not appear to have a switch to turn off or on using the
rcpthosts from command line, or anything obvious to me at least.

What do you think?  Do I need to hack a version qmail-smtpd into a
qmail-smtp-norcpt program that ignores rctphosts, and invoke that from my
tcpserver for A?  Or is there a defined way to do this already?

Thanks for your help, 

David

David Ihnen
Integration Engineer
myCIO
503-670-4018
 

Reply via email to