Sam Varshavchik writes:

Jean-Christophe Boggio writes:

Le 23/07/2013 00:30, Sam Varshavchik a écrit :
> Wild guess: check for spurious trailing whitespace, in headerdel. Make
> sure lines are terminated with newlines

I triple-checked, tried by adding another Delivered-To: line (no change),
added User-Agent: (works). Everything looks good to me :

$ hd headerdel
00000000 46 72 6f 6d 3a 0a 44 65 6c 69 76 65 72 65 64 2d | From:.Delivered-| 00000010 54 6f 3a 0a 52 65 70 6c 79 2d 54 6f 3a 0a 54 6f |To:.Reply- To:.To| 00000020 3a 0a 43 63 3a 0a 53 65 6e 64 65 72 3a 0a 58 2d |:.Cc:.Sender:.X-| 00000030 4f 72 69 67 69 6e 61 74 69 6e 67 2d 45 6d 61 69 |Originating- Emai| 00000040 6c 3a 0a 4f 6c 64 2d 52 65 74 75 72 6e 2d 50 61 |l:.Old-Return- Pa| 00000050 74 68 3a 0a 52 65 63 65 69 76 65 64 3a 0a 55 73 | th:.Received:.Us|
00000060  65 72 2d 41 67 65 6e 74  3a 0a                    |er-Agent:.|

I can't see an immediate reason. Are you sure the Delivered-To: header does not get added after couriermlm distributes the message. What is that email address that's subscribed to the list.

Ok, I did a little bit more digging. The Delivered-To: line is "special". It's not part of the actual message. It gets added when Courier delivers a message to a mailbox, additional couriermlm manually adds it to distributed mail.

If you want to get rid of it, you can remove the DTLINE environment variable, which you can do in the .courier file that executes couriermlm. Instead of

| couriermlm msg <directory>

Try doing this instead

| unset DTLINE; couriermlm msg <directory>

But, you better know what you're doing. The Delivered-To: line is key to preventing mail loops. If someone can forward their mail to the mailing list, since you're stripping Delivered-To: and Received:, you'll end up mailbombing each other.

Attachment: pgpCse7ayMuPh.pgp
Description: PGP signature

------------------------------------------------------------------------------
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
_______________________________________________
courier-users mailing list
courier-users@lists.sourceforge.net
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

Reply via email to