Michelle Konzack writes:
Am 2009-05-02 15:52:14, schrieb Sam Varshavchik:couriermlm reads environment variables set by Courier in order to process the message appropriate. If couriermlm is invoked by procmail, it must inherit the unmodified environment, identical as to what procmail inherited from Courier.For one thing, Courier sets DEFAULT to the local extension address. Your procmail recipe sets a variable named DEFAULT. I do not recall if procmail exports its own environment to child processes, or restores the original environment.In any case, it's cleaner to leave "couriermlm msg" and "couriermlm ctlmsg" in the .courier file, as they were, but prepend a directive to invoke procmail beforehand. If procmail terminates with an error code, Courier will drop or bounce the message, then stops processing. If procmail exits with a zero exit code, Courier continues processing .courier, and then invokes couriermlm next.Ah, you mean this thing: ----[ '~/.courier-foo1' ]----------------------------------------------- ||/usr/bin/preline /usr/bin/procmail |/usr/bin/couriermlm msg /home/devel.debian/.couriermlm_foo1 ------------------------------------------------------------------------
Almost. The "||" causes the output of preline to be reinterpreted as additional delivery instructions, which is not what you want. Just a single "|" will be sufficient.
----[ '~/.courier-foo1-default' ]--------------------------------------- ||/usr/bin/preline /usr/bin/procmail |/usr/bin/couriermlm ctlmsg /home/devel.debian/.couriermlm_foo1 ------------------------------------------------------------------------ right? So I have no chance to reduce the .courier-* files? With over 400 lists I will then have over 2000 files laying arround.
Well, each mailing list requires its own separate delivery instructions, there is no way around it. With this many lists, though, I would look at scripting to automate the installation and maintenance of the scripts. It doesn't matter if there's several thousand of them, as long as you manage them all with a handful of scripts.
pgpC8X0O8Tyo6.pgp
Description: PGP signature
------------------------------------------------------------------------------ Register Now & Save for Velocity, the Web Performance & Operations Conference from O'Reilly Media. Velocity features a full day of expert-led, hands-on workshops and two days of sessions from industry leaders in dedicated Performance & Operations tracks. Use code vel09scf and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf
_______________________________________________ courier-users mailing list [email protected] Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
