On Thursday 02 October 2003 16:12, Gordon Messmer wrote: > Jeff Jansen wrote: > > If you're relaying all your mail through an ISP's smtp relay then I > > also have a patch which makes courier send just one copy of each > > message to the smart relay regardless of who the recipients are. > > That seems like good and proper behavior. You should make that patch > available...
I'm on a dial-up connection, so I don't have any place to "make it available". But if folks write me I'm happy to send it out. (I've often wished there was a "courier patch repository" somewhere out there that could host all the courier patches - "one stop shopping". :-) Moreover, this patch really isn't "the right way" to do it and it does impose a very slight performance hit. Normally when a message is submitted for delivery courier uses the mail host of the recipient's address as the "queue". Then later in the process the esmtproutes file is parsed and the actual mail server to be sent to is assigned. But with a smart relay you then can have multiple "queues" all being sent to the same mail server - so you get the same message sent multiple times to the same server. My patch simply checks the esmtproutes file each time a message is submitted and if it finds a smart host it assigns that as the "queue" rather than the recipient's mail host. But you end up with the esmtproutes file being read and parsed twice, once in the submit process and then again later on when the actual mail server is assigned. And the patch only looks for smart relays. It really ought to assign the queue based on any mail routing that it finds in there, not just a smart host. It would be best (I think) if parsing the esmtproutes file and assigning the queue happened all at the same time (and only once) so that the queue gets assigned based on the esmtproutes file if a routing exists for this mail host. But I haven't researched the code enough to see if that would break anything else. But all I care about is sending to a smart host and this works for me and I'm too lazy and too busy to do the work to "fix" it. :-) And as Sam pointed out when I first proposed this - not a lot of people these days are running mail servers on expensive dial-up lines. So the vast majority of the courier world doesn't need this. Jeff Jansen ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ courier-users mailing list [EMAIL PROTECTED] Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
