[Mailman-Users] Re: dnspython error

2020-07-31 Thread csa--- via Mailman-Users
Okay, that worked. I ran configure, make and make install without errors.
Now however when I try and access any list's admin web page I get a 'Bug in
Mailman version 2.1.34. We're sorry, we hit a bug!'  The web server log
shows the error below, which I can't get past.


[- Mailman Version: 2.1.34 -]
[- Traceback --]
Traceback (most recent call last):
  File "/var/lib/mailman/scripts/driver", line 85, in run_main
immediate=1)
  File "/var/lib/mailman/Mailman/Logging/StampedLogger.py", line 52, in
__init__
Logger.__init__(self, category, nofail, immediate)
  File "/var/lib/mailman/Mailman/Logging/Logger.py", line 50, in __init__
self.__get_f()
  File "/var/lib/mailman/Mailman/Logging/Logger.py", line 68, in __get_f
1)
  File "/usr/local/lib/python2.7/codecs.py", line 898, in open
file = __builtin__.open(filename, mode, buffering)
IOError: [Errno 13] Permission denied: '/var/lib/mailman/logs/error'
[- Python Information -]
sys.version = 2.7.15 (default, Jul 30 2020, 16:33:10)
[GCC 5.4.0 20160609]
sys.executable  = /usr/local/bin/python
sys.prefix  = /usr/local
sys.exec_prefix = /usr/local
sys.path= ['/var/lib/mailman/pythonlib', '/var/lib/mailman',
'/usr/lib/mailman/scripts', '/usr/local/lib/python27.zip',
'/usr/local/lib/python2.7', '/usr/local/lib/python2.7/plat-linux2',
'/usr/local/lib/python2.7/lib-tk', '/usr/local/lib/python2.7/lib-old',
'/usr/local/lib/python2.7/lib-dynload',
'/usr/local/lib/python2.7/site-packages',
'/usr/local/lib/python2.7/dist-packages',
'/usr/local/lib/python2.7/site-packages', '/usr/local/lib/site-python']
sys.platform= linux2
[- Environment Variables -]
HTTP_COOKIE:
ssan+admin=28020069fb5b235f73280064633765383665623437343363633133396
23035346635623736393239323266336539366137
SERVER_NAME: lists.naturalintelligence.us
REMOTE_ADDR: 157.131.253.99
PYTHONPATH: /var/lib/mailman
REMOTE_PORT: 56557
REQUEST_SCHEME: http
SCRIPT_NAME: /cgi-bin/mailman/admin
REQUEST_METHOD: GET
HTTP_HOST: lists.naturalintelligence.us
PATH_INFO: /ssan/contentfilter
SERVER_PORT: 80
SERVER_PROTOCOL: HTTP/1.1
QUERY_STRING:
REQUEST_URI: /cgi-bin/mailman/admin/ssan/contentfilter
DOCUMENT_ROOT: /var/www/html


-Original Message-
From: Mark Sapiro  
Sent: Friday, July 31, 2020 10:11 AM
To: mailman-users@python.org
Subject: [Mailman-Users] Re: dnspython error

On 7/31/20 8:15 AM, csa--- via Mailman-Users wrote:
> Thank you for the prompt assistance.
> 
> Below are the results
> 
>>>> import dns.resolver
> Traceback (most recent call last):
>   File "", line 1, in 
> ImportError: No module named dns.resolver
>>>> import sys
>>>> sys.path
> ['', '/usr/local/lib/python2.7',
> '/usr/local/lib/python2.7/plat-x86_64-linux-gnu',
> '/usr/local/lib/python2.7/lib-tk', '/usr/local/lib/python2.7/lib-old',
> '/usr/local/lib/python2.7/lib-dynload',
> '/usr/local/lib/python2.7/site-packages']
>>>>
> root@granular:~/mailman-2.1.34# which -a python /usr/local/bin/python 
> /usr/bin/python root@granular:~/mailman-2.1.34#


You have two python installations, one in  /usr/local/bin/python with
libraries in /usr/local/lib/python2.7 and one in /usr/bin/python with
libraries in /usr/lib/python2.7.

dnspython is installed in /usr/lib/python2.7, but the python run with the
`python` command is using /usr/local/lib/python2.7.

Your choices are to install dnspython in /usr/local/lib/python2.7 which you
can do by

sudo cp -a /usr/lib/python2.7/dist-packages/dns \
/usr/lib/python2.7/dist-packages/

or you can run mailman's configure with the option

--with-python /usr/bin/python

First, I would run both

/usr/bin/python --version
/usr/local/bin/python --version

to see which is newer and use the newer one.

-- 
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 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-31 Thread csa--- via Mailman-Users
Thank you for the prompt assistance.

Below are the results

>>> import dns.resolver
Traceback (most recent call last):
  File "", line 1, in 
ImportError: No module named dns.resolver
>>> import sys
>>> sys.path
['', '/usr/local/lib/python2.7',
'/usr/local/lib/python2.7/plat-x86_64-linux-gnu',
'/usr/local/lib/python2.7/lib-tk', '/usr/local/lib/python2.7/lib-old',
'/usr/local/lib/python2.7/lib-dynload',
'/usr/local/lib/python2.7/site-packages']
>>>
root@granular:~/mailman-2.1.34# which -a python
/usr/local/bin/python
/usr/bin/python
root@granular:~/mailman-2.1.34#



-Original Message-
From: Mark Sapiro  
Sent: Thursday, July 30, 2020 8:05 PM
To: mailman-users@python.org
Subject: [Mailman-Users] Re: dnspython error

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/
--
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] mailman stopped working

2020-06-05 Thread csa--- via Mailman-Users
Running Ubuntu 16.04.6 LTS  
kernel version: 4.4.0-179-generic

I've not updated the server as in the past doing that broke Mailman

over the past few days mailman just decided to stop working. Rebooting has
not helped. Logfiles show

/var/log/mailman# more qrunner
Jun 04 06:25:02 2020 (1884) RetryRunner qrunner caught SIGHUP.  Reopening
logs.
Jun 04 06:25:02 2020 (1881) NewsRunner qrunner caught SIGHUP.  Reopening
logs.
Jun 04 06:25:02 2020 (1882) OutgoingRunner qrunner caught SIGHUP.  Reopening
logs.
Jun 04 06:25:02 2020 (1880) IncomingRunner qrunner caught SIGHUP.  Reopening
logs.
Jun 04 06:25:02 2020 (1883) VirginRunner qrunner caught SIGHUP.  Reopening
logs.
Jun 04 06:25:02 2020 (1879) CommandRunner qrunner caught SIGHUP.  Reopening
logs.
Jun 04 06:25:02 2020 (1877) ArchRunner qrunner caught SIGHUP.  Reopening
logs.
Jun 04 06:25:02 2020 (1878) BounceRunner qrunner caught SIGHUP.  Reopening
logs.
Jun 04 06:25:02 2020 (1876) Master watcher caught SIGHUP.  Re-opening log
files.

My mail.err shows lots of these entries:
Jun  5 05:05:01 mahavihara postfix/smtps/smtpd[26213]: warning:
unknown[52.185.149.198]: SASL LOGIN authentication failed: UGFzc3dvcmQ6
Jun  5 05:05:01 mahavihara postfix/smtps/smtpd[26213]: lost connection after
AUTH from unknown[52.185.149.198]
Jun  5 05:05:01 mahavihara postfix/smtps/smtpd[26213]: disconnect from
unknown[52.185.149.198] ehlo=1 auth=0/1 commands=1/2
Jun  5 05:05:43 mahavihara postfix/smtps/smtpd[26698]: connect from
unknown[52.185.149.198]
Jun  5 05:05:48 mahavihara postfix/smtps/smtpd[26698]: warning:
unknown[52.185.149.198]: SASL LOGIN authentication failed: UGFzc3dvcmQ6
Jun  5 05:05:52 mahavihara postfix/smtps/smtpd[26698]: lost connection after
AUTH from unknown[52.185.149.198]

went through this
https://www.gnu.org/software/mailman/mailman-install/troubleshooting.html 

please advise. Thank you!

--
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] dkim for several mailman lists on one server

2020-04-24 Thread csa--- via Mailman-Users
Ubuntu 16, Mailman 2.1.20, postfix 3.1.0

I'm running several mailing lists each with a virtual domain. I set up DKIM
for lists.domainname.tld but am getting DKIM signature missing at
https://dkimvalidator.com . It's saying it wants a DKIM for
hostname.domainname.tld. When I look at the mail log I see entries like this

Apr 19 07:49:42 hostname opendkim[1738]: 091CE1205AE: s=ppsdkim d=ucsf.edu
SSL error:04091068:rsa routines:INT_RSA_VERIFY:bad signature

Apr 24 09:25:31 hostname opendkim[1738]: 3B7CA120431: s=mail
d=domainname.tld SSL error:04091068:rsa routines:INT_RSA_VERIFY:bad
signature

Lastly, I'm confused by the term in the Mailman interface of  ' host_name'
where it says

host_name (general): Host name this list prefers for email.

The "host_name" is the preferred name for email to mailman-related addresses
on this host, and generally should be the mail host's exchanger address, if
any. This setting can be useful for selecting among alternative names of a
host that has multiple addresses.

Is the host-name literal for my server? Right now I have it set at
lists.domainname.tld. Is that incorrect?

Finally, my mailing list distribution success is mixed. Some users get them,
while others do not.

Thank you.

Christian

--
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