Hi,

Apologies about the delay, needed to get access to the server.
See answers below...

On Tue, 2005-01-25 at 11:22 -0500, Mark Horn wrote:
> On Tue, Jan 25, 2005 at 05:48:14PM +0200, David Jacobson wrote:
> > Client A e-mails User A,B and C instead of his server sending one e-mail
> > it is sending responses to User A,B and C seperately (so the assumption
> > is somehow TMDA is splitting the e-mails with multiple recipients and
> > then forwarding them to the exchange server - (Please let me know if
> > this is not the case as this is what the client explains)
> 
> I have a few more questions.  In your original question you said this:
> 
> > I have setup TMDA for a client of ours.  The TMDA box acts as a relay in
> > front of their Exchange Server.
> 
> 1) What MTA are you using on the TMDA front end box?  How is it
>    configured to send all email through TDMA?

MTA = Qmail 1.05

It is configured to _route_ all e-mail to their MIMESweeper (Anti Spam)
box using a method by routing via username.  More information on how I
accomplished this can be found here : 

http://tmda.net/faq.cgi?req=show&file=faq03.008.htp

After routing it to their MIMESweeper box, their MIMESweeper box routes
it to their Exchange Server where they receive their e-mail from.

> 
> 2) How is TMDA set up?  What does the incoming filter look like?
>    What does the ~/.tmda/config file look like?

Very basic and not really relevant, but here is an example:

RECIPIENT_DELIMITER = "-"
CONFIRM_APPEND = os.path.expanduser("/etc/tmda/lists/whitelist.txt")
LOGFILE_DEBUG = os.path.expanduser("/etc/tmda/logs/debug")
LOGFILE_INCOMING = os.path.expanduser("/etc/tmda/logs/incoming")
LOGFILE_OUTGOING = os.path.expanduser("/etc/tmda/logs/outgoing")
TEMPLATE_DIR = os.path.expanduser("~/.tmda/templates/")
CGI_URL = "http://<some_ip>/cgi-bin/tmda.cgi"


> 
> 3) Does the MTA make the decision to forward the email onto the
>    exchange server or does TMDA do that?  In other words, where
>    is the rule that says all email through me goes to the exchange
>    server?  Is that rule in the MTA or in TMDA?

The rule is in the MTA as stated above via routing through usernames.
It would be located in the /var/qmail/control/virtualdomains file
something along the lines

domain.com:username 

where username was defined in /etc/passwd having directory X and in
directory X contained .tmda and all relevant config files which it used
for that particular domain.  (This is a multi domain system with a lot
more custom configuration which is not relevant to this question - so
I'm not going to get into it)

> 
> My suspiscion is that the MTA on the TMDA front end box is what's
> doing the splitting.  The MTA sees an email from A destined to A,B,C.
> If the MTA is going into delivery mode, it will try to deliver a
> seperate copy to A, a seperate copy to B, and a seperate copy to C.
> The MTA would do this if it thinks that it's the destination
> for users A, B, and C.  In order to get TMDA involved, I would
> suspect that you'd have to tell the MTA to *deliver* email for
> all users to TMDA.  As soon as you do this, TMDA is going to
> get seperate copies.  You can verify this by sending an email
> to multiple recipients and looking in LOGFILE_INCOMING.  (See:
> http://tmda.net/config-vars.html#LOGFILE_INCOMING)

Again, no local delivery is done on the TMDA box, it simply routes mail.

> 
> However, if the MTA stays out of delivery mode and stays in routing
> mode, I think it will try to consolidate delivery to a single host.
> I.e. if the email is to: [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL 
> PROTECTED], then the
> MTA will try and deliver a single email to: [EMAIL PROTECTED], [EMAIL 
> PROTECTED] and
> a seperate email to: [EMAIL PROTECTED]  The problem with this is that if the
> MTA stays in routing mode, I don't know how you'd manage to get TMDA
> involved at all.

That's what I would of expected too, but when TMDA gets fired off it
seems this is not the case, hence the reason for my original question.
But I do believe this is where it is getting split.

> 
> Hence my questions are directed at understanding if the MTA goes into
> delivery mode or not.  If it does, than that's probably the source
> of your problem.  If it doesn't, then I want to know how you did it.

It doesn't - so that's not the source of my problem, how I did it is
explained in the URL above (quite a cool trick actually)

> 
> Cheers,
> -Mark
-- 
Regards,

David Jacobson
Technical Director
SYNAQ (Pty) Ltd

Tel:    011 290 6388
Fax:    011 290 6389
Cell:   083 235 0760
Mail:   [EMAIL PROTECTED]
Web:    http://www.synaq.com    

Key Fingerprint
8246 FCE1 3C22 7EFB E61B  18DF 6E8B 65E8 BD50 78A1

Attachment: signature.asc
Description: This is a digitally signed message part

_____________________________________________
tmda-users mailing list ([email protected])
http://tmda.net/lists/listinfo/tmda-users

Reply via email to