[Mailman-Users] Re: "Error: Unknown virtual host" trying to create new list from web UI

2020-07-30 Thread Sean McBride
On Wed, 29 Jul 2020 22:42:23 -0700, Mark Sapiro said:

>On 7/29/20 10:24 PM, Sean McBride wrote:
>> 
>> After reading the comments in that file and FAQ 4.29, I *think* the
>correct solution is to append the following 5 lines to my mm_cfg.py:
>> 
>> DEFAULT_EMAIL_HOST = 'rogue-research.com'
>> DEFAULT_URL_HOST = 'mail.rogue-research.com'
>> DEFAULT_URL_PATTERN = 'https://%s/mailman/'
>> VIRTUAL_HOSTS.clear()
>> add_virtualhost(DEFAULT_URL_HOST, DEFAULT_EMAIL_HOST)
>> 
>> Is that correct?
>
>Yes, that looks good.

Thanks!

So that got me further.  Then I got "We're sorry, we hit a bug!"  The error 
logs showed a permission error.  So I ran `check_perms -f` and it found and 
fixed ~5000 permission errors that somehow existed.

But now I try to create the list again, but it says "Error: List already 
exists".  I fear it's only half-created.  Is the best thing to do now delete 
the list and recreate it?

(Congrats on having great docs BTW, they had just about all the info I needed!)

Cheers,

Sean

--
Mailman-Users mailing list -- mailman-users@python.org
To unsubscribe send an email to mailman-users-le...@python.org
https://mail.python.org/mailman3/lists/mailman-users.python.org/
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: https://www.mail-archive.com/mailman-users@python.org/
https://mail.python.org/archives/list/mailman-users@python.org/


[Mailman-Users] Re: "Error: Unknown virtual host" trying to create new list from web UI

2020-07-30 Thread Mark Sapiro
On 7/30/20 9:34 AM, Sean McBride wrote:
> 
> So that got me further.  Then I got "We're sorry, we hit a bug!"  The error 
> logs showed a permission error.  So I ran `check_perms -f` and it found and 
> fixed ~5000 permission errors that somehow existed.
> 
> But now I try to create the list again, but it says "Error: List already 
> exists".  I fear it's only half-created.  Is the best thing to do now delete 
> the list and recreate it?


I suspect the permissions issue may have been in doing the MTA task, so
if you have "MTA = 'Postfix'" in mm_cfg.py, your data/aliases(.db)
didn't get updated. You can run `bin/genaliases` to fix that.

I think the list is OK. You should check that you have the directories
and files

archives/private/LISTNAME/
archives/private/LISTNAME/index.html
archives/private/LISTNAME.mbox/

and if archives are public a symlink

archives/public/LISTNAME -> archives/private/LISTNAME

If you have all that, you're list is fine. If not, you can

rm -r lists/LISTNAME

or

bin/rmlist -a LISTNAME

and start over.


> (Congrats on having great docs BTW, they had just about all the info I 
> needed!)


Thanks, and thanks for reading them.

-- 
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
To unsubscribe send an email to mailman-users-le...@python.org
https://mail.python.org/mailman3/lists/mailman-users.python.org/
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: https://www.mail-archive.com/mailman-users@python.org/
https://mail.python.org/archives/list/mailman-users@python.org/


[Mailman-Users] Re: "Error: Unknown virtual host" trying to create new list from web UI

2020-07-30 Thread Sean McBride
On Thu, 30 Jul 2020 10:21:55 -0700, Mark Sapiro said:

>I suspect the permissions issue may have been in doing the MTA task, so
>if you have "MTA = 'Postfix'" in mm_cfg.py, your data/aliases(.db)
>didn't get updated. You can run `bin/genaliases` to fix that.

I ran it and it output nothing.

>I think the list is OK. You should check that you have the directories
>and files
>
>archives/private/LISTNAME/
>archives/private/LISTNAME/index.html
>archives/private/LISTNAME.mbox/

I had only index.html.

>bin/rmlist -a LISTNAME

That did it!  It recreated fine.  Yay.  Thanks.

I noticed that X-BeenThere on this new list is now foo...@rogue-research.com 
instead of foo...@mail.rogue-research.com which I sorta expected due to 
changing those host variables.

I guess I should now use that `fix_url` command to make all my other lists 
match up.  Is that a generally painless experience? :)

Thanks,

Sean

--
Mailman-Users mailing list -- mailman-users@python.org
To unsubscribe send an email to mailman-users-le...@python.org
https://mail.python.org/mailman3/lists/mailman-users.python.org/
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: https://www.mail-archive.com/mailman-users@python.org/
https://mail.python.org/archives/list/mailman-users@python.org/


[Mailman-Users] Re: "Error: Unknown virtual host" trying to create new list from web UI

2020-07-30 Thread Mark Sapiro
On 7/30/20 11:56 AM, Sean McBride wrote:
> 
> I noticed that X-BeenThere on this new list is now foo...@rogue-research.com 
> instead of foo...@mail.rogue-research.com which I sorta expected due to 
> changing those host variables.
> 
> I guess I should now use that `fix_url` command to make all my other lists 
> match up.  Is that a generally painless experience? :)


If this list's email host and web page links are what you want, you only
need to run

bin/withlist -a -r fix_url -- -v

and it will do all the lists and print what it did.

-- 
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
To unsubscribe send an email to mailman-users-le...@python.org
https://mail.python.org/mailman3/lists/mailman-users.python.org/
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: https://www.mail-archive.com/mailman-users@python.org/
https://mail.python.org/archives/list/mailman-users@python.org/


[Mailman-Users] dnspython error

2020-07-30 Thread csa--- via Mailman-Users
I'm updating Mailman from 2.1.19 to 2.1.34 from source. When I run configure


./configure --prefix=/var/lib/mailman --with-username=list
--with-groupname=list --with-cgi-gid=www-data --with-mail-gid=list 

I get an error that dnspython is not installed

checking dnspython... configure: error:

when I then try and install dnspycthon using pip, I get

Requirement already satisfied: dnspython in
/usr/lib/python2.7/dist-packages

Help (please)! Thank you in advance.
--
Mailman-Users mailing list -- mailman-users@python.org
To unsubscribe send an email to mailman-users-le...@python.org
https://mail.python.org/mailman3/lists/mailman-users.python.org/
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: https://www.mail-archive.com/mailman-users@python.org/
https://mail.python.org/archives/list/mailman-users@python.org/


[Mailman-Users] Re: dnspython error

2020-07-30 Thread Mark Sapiro
On 7/30/20 6:11 PM, csa--- via Mailman-Users wrote:
> I'm updating Mailman from 2.1.19 to 2.1.34 from source. When I run configure
> 
> 
>   ./configure --prefix=/var/lib/mailman --with-username=list
> --with-groupname=list --with-cgi-gid=www-data --with-mail-gid=list 
> 
> I get an error that dnspython is not installed
> 
>   checking dnspython... configure: error:
> 
> when I then try and install dnspycthon using pip, I get
> 
>   Requirement already satisfied: dnspython in
> /usr/lib/python2.7/dist-packages
What happens if you invoke Python and type

import dns.resolver

does that succeed or give ImportError

That's what configure is doing to determine if you have dnspython
installed. If you get an ImportError with the manual import, pip must be
looking somewhere that isn't in your path. I don't spicifically know
what the issue is, but if in Python you type

import sys
sys.path

is '/usr/lib/python2.7/dist-packages' one of the paths listed? It it is
and you can't import dns.resolver, there's something amiss with its
installation. You could try

sudo pip uninstall dnspython
sudo pip install dnspython

and see if that helps.

Otherwise, you may have more than one Python and dnspython is not
installed in the default one. What does

which -a python

show?

-- 
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
To unsubscribe send an email to mailman-users-le...@python.org
https://mail.python.org/mailman3/lists/mailman-users.python.org/
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: https://www.mail-archive.com/mailman-users@python.org/
https://mail.python.org/archives/list/mailman-users@python.org/