Unsubscribe, not disable
How can I make Mailman unsubscribe bouncing addresses instead of disabling them? I'm fine with the default number of days, number of delivery attempts etc., I just want the final action by Mailman to be unsubscribe instead of disable.
(This ought to be simple, but I've looked through the Mailman admin web pages several times, and also tried websearches, without being able to find it.)
Also, is there a way to unsubscribe all the disabled addresses on a given list with one single command?
Thomas Gramstad
On Sat, 29 Aug 2009 16:05:49 -0700, "Thomas Gramstad" <thomas@ifi.uio.no> wrote:
How can I make Mailman unsubscribe bouncing addresses instead of disabling them? I'm fine with the default number of days, number of delivery attempts etc., I just want the final action by Mailman to be unsubscribe instead of disable.
(This ought to be simple, but I've looked through the Mailman admin web pages several times, and also tried websearches, without being able to find it.)
Isn't that what bounce_you_are_disabled_warnings setting does? After this many times of sending a you are disabled e-mail, the user is unsubscribed.
Also, is there a way to unsubscribe all the disabled addresses on a given list with one single command?
Not sure about that one. But, I would imagine once you change the setting above, it will remove the disabled addresses.
Jeff
Jeff Grossman wrote:
On Sat, 29 Aug 2009 16:05:49 -0700, "Thomas Gramstad" <thomas@ifi.uio.no> wrote:
How can I make Mailman unsubscribe bouncing addresses instead of disabling them? I'm fine with the default number of days, number of delivery attempts etc., I just want the final action by Mailman to be unsubscribe instead of disable.
(This ought to be simple, but I've looked through the Mailman admin web pages several times, and also tried websearches, without being able to find it.)
Isn't that what bounce_you_are_disabled_warnings setting does? After this many times of sending a you are disabled e-mail, the user is unsubscribed.
Exactly!
Also, is there a way to unsubscribe all the disabled addresses on a given list with one single command?
Not sure about that one. But, I would imagine once you change the setting above, it will remove the disabled addresses.
It won't. Once a member's delivery is disabled by bounce, the number of remaining warnings and time of last warning are recorded in the member's bounce info, and cron/disabled will check the interval, send a notice, decrement the number remaining and do the unsubscribe when the number reaches zero. Changing the list's bounce_you_are_disabled_warnings after a member's delivery is disabled has no effect on this.
But the command to immediately unsubscribe all members with delivery disabled by bounce is
bin/list_members --nomail=bybounce LISTNAME | bin/remove_members
--file=- LISTNAME
you might also want to specify --nouserack and/or --noadminack on the remove_members command. To do this for all lists, consider
#!/bin/sh
for list in bin/list_lists --bare ; do
bin/list_members --nomail=bybounce $list | bin/remove_members
--file=- $list
done
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
On Sat, 29 Aug 2009, Mark Sapiro wrote:
Jeff Grossman wrote:
On Sat, 29 Aug 2009 16:05:49 -0700, "Thomas Gramstad" <thomas@ifi.uio.no> wrote:
How can I make Mailman unsubscribe bouncing addresses instead of disabling them? I'm fine with the default number of days, number of delivery attempts etc., I just want the final action by Mailman to be unsubscribe instead of disable.
(This ought to be simple, but I've looked through the Mailman admin web pages several times, and also tried websearches, without being able to find it.)
Isn't that what bounce_you_are_disabled_warnings setting does? After this many times of sending a you are disabled e-mail, the user is unsubscribed.
Exactly!
Also, is there a way to unsubscribe all the disabled addresses on a given list with one single command?
Not sure about that one. But, I would imagine once you change the setting above, it will remove the disabled addresses.
It won't. Once a member's delivery is disabled by bounce, the number of remaining warnings and time of last warning are recorded in the member's bounce info, and cron/disabled will check the interval, send a notice, decrement the number remaining and do the unsubscribe when the number reaches zero. Changing the list's bounce_you_are_disabled_warnings after a member's delivery is disabled has no effect on this.
But the command to immediately unsubscribe all members with delivery disabled by bounce is
bin/list_members --nomail=bybounce LISTNAME | bin/remove_members
--file=- LISTNAMEyou might also want to specify --nouserack and/or --noadminack on the remove_members command. To do this for all lists, consider
#!/bin/sh for list in
bin/list_lists --bare; do bin/list_members --nomail=bybounce $list | bin/remove_members
--file=- $list done
Thanks!
Just to make sure I got the first part of the answer right: "Disable" is not the end-station -- delivery attempts or probing of the subscriber address will continue the defined number of times, and if still unsuccessful, the address will finally be unsubscribed. So the disabling will never lead to a list with a lot of dead addresses on it. They will be unsubscribed eventually (if they don't start working again). If that is the case, I need not worry about unsubscribing them, and can liberally allow the process to take its time. (Maybe speed the process up a little for big lists.)
Thomas Gramstad
Thomas Gramstad wrote:
Just to make sure I got the first part of the answer right: "Disable" is not the end-station -- delivery attempts or probing of the subscriber address will continue the defined number of times, and if still unsuccessful, the address will finally be unsubscribed. So the disabling will never lead to a list with a lot of dead addresses on it. They will be unsubscribed eventually (if they don't start working again). If that is the case, I need not worry about unsubscribing them, and can liberally allow the process to take its time. (Maybe speed the process up a little for big lists.)
That's more or less correct. If bounce_you_are_disabled_warnings is > 0 and cron/disabled is being run by cron, the user will be sent a total of bounce_you_are_disabled_warnings, the first immediately and then at intervals of bounce_you_are_disabled_warnings_interval days. If the user actually receives one of the warnings, she can either 'reply' or follow a link in the message to re-enable delivery. Otherwise, bounce_you_are_disabled_warnings_interval days after the last warning, the user will be removed from the list.
So yes, as long as Mailman's cron jobs are running, users whose delivery is disabled by bounce will either re-enable their own delivery or they will be automatically removed in time.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
Mark Sapiro wrote:
Jeff Grossman wrote:
Isn't that what bounce_you_are_disabled_warnings setting does? After this many times of sending a you are disabled e-mail, the user is unsubscribed.
Exactly!
And in case it isn't clear, setting bounce_you_are_disabled_warnings to zero for a list will cause an immediate unsubscribe when the bounce threshold is reached.
But, note that there is a bug in Mailman 2.1.11, 2.1.12rc1 and 2.1.12rc2 but not in 2.1.12 and not in 2.1.10 and prior that causes bounce processing to fail when bounce_you_are_disabled_warnings = 0. The attached Bouncer.patch.txt will fix that.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
participants (3)
-
Jeff Grossman -
Mark Sapiro -
Thomas Gramstad