On Wednesday 04 June 2003 17:46, Zheka Demchenko 
<[EMAIL PROTECTED]> wrote:
> I am administering server running courier 0.41 connected
> to the Internet via "thin" line. This line is overloaded
> all the time due to the heavy traffic generated by
> multirecipient mails. People in organization, owning the
> server, are sending _really_big_ mails (with fotos,
> included docs etc.) to many clients, i.e. they are adding
> several "to" lines to the header. I've tried to resolve
> the problem by adding line
> ":some.host.on.very.wide.channel" to the esmtproutes, but
> it didn't help. Courier is still sending the copy of
> message per every recipient to that server instead of
> sending one message with multiple "to" lines. I can't
> just change "outgoing SMTP" setting in user's mail
> clients because in that case all local traffic (even
> heavier, than external) will be redirected to the
> external server. So, the question is: how to force
> courier to forward multirecipient mails to external
> server as one mail with multiple "to" (bcc, cc) lines ?

When a message is sent through courier's esmtp server then 
it will do exactly what you describe but only PER DOMAIN.  
What that means is that if you send a message to 20 
recipients at the same domain ([EMAIL PROTECTED], 
[EMAIL PROTECTED], ...) then courier will only send one copy of 
the message to aol.com with all the recipients listed as 
multiple "RCPT TO:" commands.

But if you send that same message to 10 recipients at one 
domain and 10 in another domain ([EMAIL PROTECTED], 
[EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED], ...) 
then courier will send two copies of the message - one to 
aol.com and one to hotmail.com with each of the appropriate 
recipients listed for each domain.

This is irrelevant of routing.  This "queue" gets set before 
courier looks at any routing tables.  So even if you have a 
esmtproutes file which routes all aol.com and hotmail.com 
mail to the same mailserver, courier will still send two 
copies of the message to this server - one with all the 
aol.com recipients listed and one with all the hotmail.com 
recipients listed.

I'm on a slow link and we relay all our mail through a smart 
host (what you created with the 
":some.host.on.very.wide.channel" entry in esmtproutes) so 
I just want one copy of each message to be sent to the 
smart host.  So I've patched courier to look for a 
smarthost in the esmtproutes file and send only one copy of 
the mail to the smart host regardless of what domains the 
recipients are in.  I'll be happy to send the patch to you 
if you want.   Feel free to write me off list if you want 
more info.

All this does is check for a smarthost.  It doesn't check 
for any other routing.  So in the example above, where mail 
to aol.com and hotmail.com where both routed to the same 
host, it would NOT change courier's behavior of sending the 
message twice.  But for any domains which would be sent to 
the smart host then only one copy of each message will be 
sent to that server regardless of what domains the 
recipients are in.

Jeff Jansen


-------------------------------------------------------
This SF.net email is sponsored by:  Etnus, makers of TotalView, The best
thread debugger on the planet. Designed with thread debugging features
you've never dreamed of, try TotalView 6 free at www.etnus.com.
_______________________________________________
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

Reply via email to