On 11 Jul 2003, Yorkshire Dave wrote: > On Fri, 2003-07-11 at 01:27, Simon Byrnand wrote: > > At 21:19 10/07/03 -0300, Raul Dias wrote: > > >Em Qui, 2003-07-10 ās 20:03, Simon Byrnand escreveu: > > > > > > > >sendmail.cf [snip..] > > > > >HX-Envelope-From: $g > > > > >HX-Envelope-To: $u > > > > > > > > > >if i recall correctly :) > > > > > > > > Looks plausable, as $g is in Return-Path, and $u is after 'for' in the > > > > default header format, however as far as I know $u is only present if > > > there > > > > is ONE local recipient for the message. If there are multiple local > > > > recipients of a message, it is not displayed... > > > > > >Do you know how/what to use when there are multiple local > > >recipients instead of $u? > > As I understand it, $u is generated after the envelope has been > preprocessed (by ruleset 3?) and therefore only contains the current > recipient. Multiple recipients cause the message to be processed > differently and $u never exists. I don't know the way around this, > although I'm sure there is one. Either we need a real sendmail guru or > I'm going to get a headache figuring it out :)
At the risk of handing people a possibly "loaded gun", here's how you make sendmail single threaded. Set the option 'MaxRecipientsPerMessage' to 1 This will make sendmail accept only one recipient address for each message. If a remote system wants to hand you a message with multiple recipients, it will have to break the process up into seperate tranactions for each recipient. This -will- acheive your behaivor of only one local recipient for each message (and thus have a $u value) but will mean that you will have a seperate set of sendmail processes, set of SA processes, queue files, network connections, etc for each recipient of any message. If you regularly get messages with multiple recipients this -WILL- increase the load on your server and use up more resources. One other possible complication. If you have people using your server as the SMTP server for their mail clients to send out messages (IE it's the outgoing SMTP server for Mozilla, Eudora, Outlook, etc) those people will get errors when ever they try to send a message with more than one recipient. (Most mail clients don't know how to handle a SMTP server that rejects more than one recipient per message). So if you do want to do this, watch your server load and logs for complications. Here's how you do it, either edit the sendmail.cf file to add the line: O MaxRecipientsPerMessage=1 or edit your '.mc' file and add the line: define(`confMAX_RCPTS_PER_MESSAGE',`1')dnl -- Dave Funk University of Iowa <dbfunk (at) engineering.uiowa.edu> College of Engineering 319/335-5751 FAX: 319/384-0549 1256 Seamans Center Sys_admin/Postmaster/cell_admin Iowa City, IA 52242-1527 #include <std_disclaimer.h> Better is not better, 'standard' is better. B{ ------------------------------------------------------- This SF.Net email sponsored by: Parasoft Error proof Web apps, automate testing & more. Download & eval WebKing and get a free book. www.parasoft.com/bulletproofapps1 _______________________________________________ Spamassassin-talk mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/spamassassin-talk