On 1/14/22 11:56 AM, David Newman wrote:
I created a pending subscription request on a test list. Here is the text I'm using in a file called 'list:admin:action:subscribe.txt' (minus the rows of hypens):
As list administrator, your authorization is required for a mailing list subscription request approval:
For: $member List: $listname
At your convenience, visit:
https://${domain}/mailman/admindb/lists/${short_listname}.${domain}/
This looks like a Mailman 2.1 URL. Are you sure you don't want something like
https://${domain}/mailman3/lists/${short_listname}.${domain}/
to approve or deny the request.
Instead the message that goes out at midnight daily reads like this:
That's a different message. It is sent from the mailman notify
command
run by cron. It's built from the list:admin:notice:pending template.
On successive nights I have placed copies of the 'list:admin:action:subscribe.txt' file above in these locations:
mm/var/templates/lists/test.lists.domain.tld/en
I hope you mean
/opt/mailman/mm/var/templates/lists/test.lists.domain.tld/en
/opt/mailman/mm/var/templates/site/en
Either of those should work. The lists one will take priority over the site one for that list.
and then in Postorius, with the same contents as above.
If you set a template in Postorius, it takes priority. If you later decide you want to use one in /opt/mailman/mm/var/templates/ you have to delete the postorius one.
The file versions are owned by the mailman user, and have 0644 permissions. Not sure this is necessary but I've restarted the mailman3 and mailmanweb services each time after a change.
There is no sign of trouble in the MM3 or web logs. The only thing I see is in the Postfix log, where the shorter and less helpful message goes out each night. I don't see anything in the template docs about this.
Questions:
- What to do to get the custom message working?
It should work. I suspect you need to go to the list's Settings ->
Automatic Responses and set Admin immed notify
to Yes.
- Is there a way to trigger a subscribe reminder for one list only?
If by subscribe reminder you mean the list:admin:action:subscribe.txt
message, yes that's the above list setting. If you mean the one sent
from the mailman notify
command, see mailman notify --help
for the
options. You can specify one or more lists (default is all lists) via
options and put them in your cron.
Asking because there are other lists on this server with other requests pending, and I don't want to bother other moderators with multiple reminders per day. Not a big deal, but it would be nice to test this with one list rather than waiting up to 24 hours after each change.
You can test mailman notify
at any time by running it by hand.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan