Skip to contentSkip to conversation

-bounces-help loops

DISCUSSION Neale Pickett 2 participants 4 messages Nov 15, 2005

lore
Share & tools
lore
#0 lore raw

So I have a couple of mail hosts stuck in a "-bounces-help loop". They send mail to listname-bounces-help, which then replies with a message explaining options. But that mail has a SMTP "mail from" of listname-bounces-help. The remote mailer for whatever reason accepts the mail, then bounces it to the "mail from", and thus goes the loop.

A solution to this would be to have -bounces-help mail (mail in response to a message to -bounces-help) come from some other address that doesn't respond. Maybe -bounce-loop. I'll work on a patch for this, but maybe there's a better way?

Neale

#1 lore raw
Quoted 10 lines · Neale Pickett

So I have a couple of mail hosts stuck in a "-bounces-help loop". They send mail to listname-bounces-help, which then replies with a message explaining options. But that mail has a SMTP "mail from" of listname-bounces-help. The remote mailer for whatever reason accepts the mail, then bounces it to the "mail from", and thus goes the loop.

A solution to this would be to have -bounces-help mail (mail in response to a message to -bounces-help) come from some other address that doesn't respond. Maybe -bounce-loop. I'll work on a patch for this, but maybe there's a better way?

Just a guess, but would forcing VERP fix this?

-jeremy

Signature · 2 lines
====================================
 Jeremy Hinegardner                              [email protected] 
#3 lore raw
In reply to Neale Pickett
Quoted 10 lines · you

So I have a couple of mail hosts stuck in a "-bounces-help loop". They send mail to listname-bounces-help, which then replies with a message explaining options. But that mail has a SMTP "mail from" of listname-bounces-help. The remote mailer for whatever reason accepts the mail, then bounces it to the "mail from", and thus goes the loop.

A solution to this would be to have -bounces-help mail (mail in response to a message to -bounces-help) come from some other address that doesn't respond. Maybe -bounce-loop. I'll work on a patch for this, but maybe there's a better way?

Here's the patch against 1.2.9-RC1. It will undoubtedly apply with some fuzz, as my tree is increasingly divergent from RC1.

Tue Nov 15 12:44:56 MST 2005 Neale Pickett <[email protected]>
* fix for -bounces-help loops
diff -rN -u old-mlmmj-darcs/src/mlmmj-process.c new-mlmmj-darcs/src/mlmmj-process.c

src/mlmmj-process.c 2005-11-15 12:42:30.000000000 -0700 renamed from src/mlmmj-process.c 2005-11-15 12:50:45.000000000 -0700 +4 -0
@@ -546,6 +546,10 @@
        myfree(listdelim);
 
        if(recipextra) {
+                if (strncmp(recipextra, "bounce-loop@", 12) = 0) {
+                        /* Discard bounce loops */
+                        exit(0);
+                }
                owner = concatstr(2, listdir, "/control/owner");
                if(owner && strncmp(recipextra, "owner@", 6) = 0) {
                        /* strip envelope from before resending */
src/send_help.c 2005-11-15 12:40:45.000000000 -0700 renamed from src/send_help.c 2005-11-15 12:50:45.000000000 -0700 +0 -1
diff -rN -u old-mlmmj-darcs/src/send_help.c new-mlmmj-darcs/src/send_help.c
@@ -53,7 +53,7 @@
        listname = genlistname(listaddr);
        listfqdn = genlistfqdn(listaddr);
 
-       fromaddr = concatstr(4, listname, listdelim, "bounces-help@", 

listfqdn);
+ fromaddr = concatstr(4, listname, listdelim, "bounce-loop@",
listfqdn);
myfree(listdelim);

queuefilename = prepstdreply(listdir, "listhelp", "$listowner$",