On Wed, Jun 19, 2002 at 02:59:52PM -0400, Jeff Hoover wrote:
% Thanks to John Morrissey's patches I have everything working except
% keeping domainA users from talking to domainB users (and vice-versa).

Cool, I'm glad they're working for you. I hope to see a postcard soon. :-)

% Running multiple instances of qmail is not an option because there will be 
% quite a few domains.  Is there a way to tell qmail to only deliver mail to 
% domainA if it is from domainA, to domainB if it is from domainB, 
% etc.?  Maybe hack the qmail-lspawn.c?  Has this been done before?  I 
% couldn't find anything like this when searching on the web.

Anything you try here will be easily bypassed unless you're using some sort
of authenticated SMTP (SMTP AUTH or SMTP TLS with client certificates). My
only idea would be to funnel all your mail through a .qmail file[1] (or
maybe replace your delivery agent with maildrop or something) that would
check the envelope sender and/or From line to determine whether the sender's
domain is the same as the recipients.

[1] You could use control/virtualdomains to funnel mail for each domain to a
.qmail file that lists your check-script first, then lists your favorite
delivery agent next in order to deliver the message.

john
-- 
John Morrissey          _o            /\         ----  __o
[EMAIL PROTECTED]        _-< \_          /  \       ----  <  \,
www.horde.net/    __(_)/_(_)________/    \_______(_) /_(_)__

Reply via email to