[Mailman-Users] Restoring manually backed-up archives into cPanel installation?

2019-01-14 Thread Jesse Sheidlower


I'm trying to migrate a group of Mailman lists onto a new shared hosting 
provider. I do not have direct access to the original system; the sysadmin 
there has given me a full tarball of the mailman directory, including the 
archives/, data/, and lists/ subdirectories.

The new hosting provider, to which I do have command-line access via SSH, uses 
Mailman through a cPanel installation. There's no mailman directory currently, 
and cPanel itself doesn't have any options for migration. I e-mailed the 
support group to ask where to put it, and they said that you can only restore a 
backup that is itself made with cPanel into a cPanel environment; the cPanel 
version of mailman is different and won't accept backups made manually.

Is this true? I've Googled what I can, but haven't found anything that 
addresses this. If I can't restore the list archives, I'll need to find a 
different hosting provider, and it hasn't been easy to find one that meets my 
otherwise very simple needs.
--
Mailman-Users mailing list Mailman-Users@python.org
https://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: 
https://mail.python.org/mailman/options/mailman-users/archive%40jab.org


Re: [Mailman-Users] Restoring manually backed-up archives into cPanel installation?

2019-01-14 Thread Brian Carpenter
> -Original Message-
> From: Mailman-Users  bounces+brian=emwd@python.org> On Behalf Of Jesse Sheidlower
> Sent: Monday, January 14, 2019 7:03 AM
> To: mailman-users@python.org
> Subject: [Mailman-Users] Restoring manually backed-up archives into cPanel
> installation?
> 
> 
> I'm trying to migrate a group of Mailman lists onto a new shared hosting
> provider. I do not have direct access to the original system; the sysadmin
> there has given me a full tarball of the mailman directory, including the
> archives/, data/, and lists/ subdirectories.
> 
> The new hosting provider, to which I do have command-line access via SSH,
> uses Mailman through a cPanel installation. There's no mailman directory
> currently, and cPanel itself doesn't have any options for migration. I
e-mailed
> the support group to ask where to put it, and they said that you can only
> restore a backup that is itself made with cPanel into a cPanel
environment;
> the cPanel version of mailman is different and won't accept backups made
> manually.
> 
> Is this true? I've Googled what I can, but haven't found anything that
> addresses this. If I can't restore the list archives, I'll need to find a
different
> hosting provider, and it hasn't been easy to find one that meets my
> otherwise very simple needs.

Hi Jesse,

Those files need to go into the backend of the server which is beyond the
reach of a cPanel shared hosting account. The server admin would have to do
that for you. As long as the backup of the files are version 2.1.* they
should migrate fine. Contact me off list if you can't get this resolved.

Brian Carpenter
Mailmanhost.com  :^)

--
Mailman-Users mailing list Mailman-Users@python.org
https://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: 
https://mail.python.org/mailman/options/mailman-users/archive%40jab.org


Re: [Mailman-Users] Restoring manually backed-up archives into cPanel installation?

2019-01-14 Thread Mark Sapiro
On 1/14/19 4:02 AM, Jesse Sheidlower wrote:
> 
> I'm trying to migrate a group of Mailman lists onto a new shared hosting 
> provider. I do not have direct access to the original system; the sysadmin 
> there has given me a full tarball of the mailman directory, including the 
> archives/, data/, and lists/ subdirectories.


Good.


> The new hosting provider, to which I do have command-line access via SSH, 
> uses Mailman through a cPanel installation. There's no mailman directory 
> currently, and cPanel itself doesn't have any options for migration. I 
> e-mailed the support group to ask where to put it, and they said that you can 
> only restore a backup that is itself made with cPanel into a cPanel 
> environment; the cPanel version of mailman is different and won't accept 
> backups made manually.
> 
> Is this true?


Yes and No.

There is some info at
. The most important
thing is that the 'mailman' directory in cPanel is at
/usr/local/cpanel/3rdparty/mailman.

Importing archives is not a problem. Importing lists is an issue because
of cPanel's appending the domain to the internal listname, so you can't
just drop a mailman/lists/LISTNAME/config.pck into cPanel, even if yo
put it in
/usr/local/cpanel/3rdparty/mailman/lists/LISTNAME_DOMAIN/config.pck,
because the internal name in the config.pck is wrong.

I think if you have a way to import the list membership, the way to
proceed is to create the lists in cPanel and then add the members.
Extracting the members from your existing
mailman/lists/LISTNAME/config.pck file is difficult without a mailman
installation, but you might be able to just put a config.pck in
/usr/local/cpanel/3rdparty/mailman/lists/XXX/config.pck and run
/usr/local/cpanel/3rdparty/mailman/bin/list_members on the XXX list to
get files of regular members, plain digest members and mime digest
members which you can import to the real list via
/usr/local/cpanel/3rdparty/mailman/bin/add_members. Run those commands
with the --help option for details on options.

For the archives, you should be able to import them into a cPanel list
with the command '/usr/local/cpanel/3rdparty/mailman/bin/arch
LISTNAME_DOMAIN /path/to/old/archives/private/LISTNAME.mbox/LISTNAME.mbox'

Actually, you might be able to create a list in cPanel and then just
replace its lists/LISTNAME_DOMAIN/config.pck with the one from the
backup and then use /usr/local/cpanel/3rdparty/mailman/bin/withlist to
'fix' attributes like _internal_name, host_name and web_page_url, but
this probably requires some knowledge of Mailman internals and trial and
error.

-- 
Mark Sapiro The highway is for gamblers,
San Francisco Bay Area, Californiabetter use your sense - B. Dylan
--
Mailman-Users mailing list Mailman-Users@python.org
https://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: 
https://mail.python.org/mailman/options/mailman-users/archive%40jab.org


[Mailman-Users] Allow posting from addresses with modifiers?

2019-01-14 Thread David Gibbs via Mailman-Users

Folks:

Anyone know if it's possible to configure MM 2.1 to allow posting with an email 
address that has a modifier?

For example ... if someone is subscribed as "john+li...@example.com", but their email 
comes from "j...@example.com", allow that address to post?

I've had some people ask me about this ability because they want to use the 
modifier address to help them filter messages.

Thanks!

david

--
IBM i on Power Systems: For when you can't afford to be out of business!

I'm riding 615 miles (Yes, you read that right) in the American Diabetes 
Association's Tour de Cure to raise money for diabetes research, education, 
advocacy, and awareness.  You can make a tax-deductible donation to my ride by 
visiting https://gmane.diabetessucks.net.

You can see where my donations come from by visiting my interactive donation 
map ... https://gmane.diabetessucks.net/map (it's a geeky thing).

I may have diabetes, but diabetes doesn't have me!

--
Mailman-Users mailing list Mailman-Users@python.org
https://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: 
https://mail.python.org/mailman/options/mailman-users/archive%40jab.org


Re: [Mailman-Users] Allow posting from addresses with modifiers?

2019-01-14 Thread Mark Sapiro
On 1/14/19 8:40 AM, David Gibbs via Mailman-Users wrote:
> 
> Anyone know if it's possible to configure MM 2.1 to allow posting with
> an email address that has a modifier?


You can't configure Mailman to just do it without making code changes,
but there are possibilities:


> For example ... if someone is subscribed as "john+li...@example.com",
> but their email comes from "j...@example.com", allow that address to post?


To place the burden on john, he can subscribe both addresses and set
j...@example.com to nomail.

To place the burden on you, assuming you have access to Mailman's
command line tools, you could periodically (via cron) run a script to
list the members, find those with '+' in the local part and add the
address without the +... in the local part to the list's
accept_these_nonmembers. There is a script at
 (mirrored at
) that can do the
adding to accept_these_nonmembers.

-- 
Mark Sapiro The highway is for gamblers,
San Francisco Bay Area, Californiabetter use your sense - B. Dylan
--
Mailman-Users mailing list Mailman-Users@python.org
https://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: 
https://mail.python.org/mailman/options/mailman-users/archive%40jab.org


Re: [Mailman-Users] Allow posting from addresses with modifiers?

2019-01-14 Thread David Gibbs via Mailman-Users

On 1/14/2019 12:13 PM, Mark Sapiro wrote:

On 1/14/19 8:40 AM, David Gibbs via Mailman-Users wrote:

Anyone know if it's possible to configure MM 2.1 to allow posting
with an email address that has a modifier?


You can't configure Mailman to just do it without making code
changes,


OK, thanks.

I might play around with that at some point in the future.

david

--
IBM i on Power Systems: For when you can't afford to be out of business!

I'm riding 615 miles (Yes, you read that right) in the American Diabetes 
Association's Tour de Cure to raise money for diabetes research, education, 
advocacy, and awareness.  You can make a tax-deductible donation to my ride by 
visiting https://gmane.diabetessucks.net.

You can see where my donations come from by visiting my interactive donation 
map ... https://gmane.diabetessucks.net/map (it's a geeky thing).

I may have diabetes, but diabetes doesn't have me!

--
Mailman-Users mailing list Mailman-Users@python.org
https://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: 
https://mail.python.org/mailman/options/mailman-users/archive%40jab.org


Re: [Mailman-Users] Allow posting from addresses with modifiers?

2019-01-14 Thread Grant Taylor via Mailman-Users

On 01/14/2019 11:13 AM, Mark Sapiro wrote:
To place the burden on john, he can subscribe both addresses and set 
j...@example.com to nomail.


This is what I have done for many mailing lists.  —  I subscribe with 
one private address for email filtering and reply from another public 
email address.


I suggest that the member also pick one and toggle the option to hide 
(the non-public subscribed address) from other subscribers.


To place the burden on you, assuming you have access to Mailman's command 
line tools, you could periodically (via cron) run a script to list the 
members, find those with '+' in the local part and add the address without 
the +... in the local part to the list's accept_these_nonmembers. There 
is a script at  (mirrored 
at ) that can do the 
adding to accept_these_nonmembers.


I don't see any obvious security related down sides to this.  It does 
open the mailing list up to messages (spam) from some additional 
addresses.  But I can't think of any cases where u...@domain.tld would 
be different than user+det...@domain.tld.  I guess maybe some sort of 
ticketing system /might/ do something like that.  But I bet that the 
intersection between such configurations and Mailman configured as Mark 
is describing to be quite small.




--
Grant. . . .
unix || die



smime.p7s
Description: S/MIME Cryptographic Signature
--
Mailman-Users mailing list Mailman-Users@python.org
https://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: 
https://mail.python.org/mailman/options/mailman-users/archive%40jab.org