Thanks for the help everyone! I think I've just found the answer I was
looking for via Marks link - using PHP to scrape a direct subscribe url:
http://<domain.com>/mailman/admin/<listname>/members/add?subscribe_or_invite=0&send_welcome_msg_to_this_batch=0¬ification_to_list_owner=0&subscribees_upload=<email-address>&adminpw=<adminpassword>
http://wiki.list.org/pages/viewpage.action?pageId=4030567
No cron / special permissions needed!
Cheers,
Phil
Mark Sapiro wrote:
Phil Ewels wrote:
To test, I've been running this cron command:
echo t...@testing.co.uk |
/usr/local/cpanel/3rdparty/mailman/bin/add_members -r - info
Where info is the listname (i...@nanotp.org)
I get the following error:
Traceback (most recent call last):
[...]
IOError: [Errno 13] Permission denied:
'/usr/local/cpanel/3rdparty/mailman/locks/info.lock.hephaestus.safeukdns.net.24247.0'
[...]
Can anyone suggest a way to get around this problem? Or an alternative
method of automating signups (they can be totally silent). I have tried
a similar method using the PHP exec() command to hit the same program
but had similar permission problems.
These commands must be run by root or a member of Mailman's group. Put
your add_members command (if you can) in the Mailman user's crontab or
a system crontab with the mailman user as it's user.
Another way to do this is to create a SETGID wrapper to run the
commands. See the members.c program attached to the FAQ at
<http://wiki.list.org/x/uIA9> for an example.
------------------------------------------------------
Mailman-Users mailing list Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe:
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org