Difference between revisions of "IT/Internal"
From CA Greens wiki
Line 6: | Line 6: | ||
su - list | su - list | ||
which gives you a login shell as Mr. list. First remind yourself where Mailman is. | which gives you a login shell as Mr. list. First remind yourself where Mailman is. | ||
− | egrep 'cgi-bin|piperm' /etc/apa*/ | + | egrep 'cgi-bin|piperm' /etc/apa*/sites-a*/wa* | grep -v '^#' |
+ | Then do stuff. Keep the name of the list in a shell variable to avoid typing it over and over. | ||
+ | cd /var/lib/mailman | ||
+ | bye=humboldt-discuss | ||
+ | file archives/private/$bye* | ||
+ | cp -a lists/$bye ~/oldlists/lists | ||
+ | cp -a archives/private/$bye* ~/oldlists/archives | ||
+ | ls bin | ||
+ | bin/rmlist -a $bye | ||
+ | Now it's gone. After a minute or two, Postfix will notice the change and forget about the former list's addresses. |
Revision as of 21:57, 28 April 2010
Here are some things you might have to do on wangari.
Be the mailman user and archive and remove an unwanted mailman list
As root,
su - list
which gives you a login shell as Mr. list. First remind yourself where Mailman is.
egrep 'cgi-bin|piperm' /etc/apa*/sites-a*/wa* | grep -v '^#'
Then do stuff. Keep the name of the list in a shell variable to avoid typing it over and over.
cd /var/lib/mailman bye=humboldt-discuss file archives/private/$bye* cp -a lists/$bye ~/oldlists/lists cp -a archives/private/$bye* ~/oldlists/archives ls bin bin/rmlist -a $bye
Now it's gone. After a minute or two, Postfix will notice the change and forget about the former list's addresses.