A few questions about an Ubuntu install.
I managed to add my domain to hyperkitty, created a new list and now i'm getting this behavior:
May 02 07:47:24 2020 (55358) deque:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/mailman/app/workflow.py", line 69,
in __next__
return step()
File "/usr/lib/python3/dist-packages/mailman/app/subscriptions.py", line
331, in _step_send_confirmation
self._set_token(TokenOwner.subscriber)
File "/usr/lib/python3/dist-packages/mailman/app/subscriptions.py", line
157, in _set_token
self.token = pendings.add(pendable, timedelta(days=3650))
File "/usr/lib/python3/dist-packages/mailman/database/transaction.py",
line 85, in wrapper
return function(args[0], config.db.store, *args[1:], **kws)
File "/usr/lib/python3/dist-packages/mailman/model/pending.py", line 91,
in add
token = token_factory.new()
File "/usr/lib/python3/dist-packages/mailman/utilities/uid.py", line 79,
in new
return self._next_unpredictable_id()
File "/usr/lib/python3/dist-packages/mailman/utilities/uid.py", line 155,
in _next_unpredictable_id
x = random.random() + right_now % 1.0 + time.clock() % 1.0
AttributeError: module 'time' has no attribute 'clock'
I'm on python 3.8.2
Question #2. I'm setting up mailman 3 on sqlite for simplicity's sake. Do people find the performance of mysql / postgres worth the upgrade? 2B. Is there a migration path if I want to switch to mysql at a later date?
-- Thank you Samir Faci https://keybase.io/csgeek
On 5/2/20 12:51 AM, Samir Faci wrote:
A few questions about an Ubuntu install.
I managed to add my domain to hyperkitty, created a new list and now i'm getting this behavior:
AttributeError: module 'time' has no attribute 'clock'
I'm on python 3.8.2
It time.clock() went away in Python 3.8. Mailman versions older than 3.3.0 are not compatible with Python 3.8. You need to upgrade Mailman core.
Question #2. I'm setting up mailman 3 on sqlite for simplicity's sake. Do people find the performance of mysql / postgres worth the upgrade?
It depends on the size of your installation - how many lists, how many list members, frequency of posts and so on. You may find <https://www.digitalocean.com/community/tutorials/sqlite-vs-mysql-vs-postgresql-a-comparison-of-relational-database-management-systems> of interest.
2B. Is there a migration path if I want to switch to mysql at a later date?
The migration path mostly consists of migrating the data from the SQLite database.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
Mark Sapiro <mark@msapiro.net> wrote:
On 5/2/20 12:51 AM, Samir Faci wrote:
A few questions about an Ubuntu install.
i'm getting this behavior:
AttributeError: module 'time' has no attribute 'clock'
I'm on python 3.8.2
It time.clock() went away in Python 3.8. Mailman versions older than 3.3.0 are not compatible with Python 3.8. You need to upgrade Mailman core.
I think this is a bug in Ubuntu 20.04.
Python3 package is: Python3 3.8.2-0ubuntu2 https://packages.ubuntu.com/search?suite=focal&keywords=python3 Mailman3 is: 3.2.2-1 https://packages.ubuntu.com/search?suite=focal&keywords=mailman3
Andrew.
On 5/2/20 1:40 PM, Andrew Hodgson wrote:
I think this is a bug in Ubuntu 20.04.
Python3 package is: Python3 3.8.2-0ubuntu2 https://packages.ubuntu.com/search?suite=focal&keywords=python3 Mailman3 is: 3.2.2-1 https://packages.ubuntu.com/search?suite=focal&keywords=mailman3
It's also an issue with Debian bullseye and sid which package Mailman 3.2.2 with Python 3.8.3.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
I manually patched up the bug since It seems it only occurs once or twice in the code base.
Here's my next question. Hopefully this isn't off topic, but trying to get postfix to work with mailman and I keep on getting relay denied issues.
/var/log/mailman/smtp.log
May 04 02:06:20 2020 (136767) <158855797827.136760.10970401726993928773@lists> smtp to booh@lists.domain.org for 1 recips, completed in 0.016954421997070312 seconds May 04 02:06:20 2020 (136767) <158855797827.136760.10970401726993928773@lists> post to booh@lists.domain.org from booh-owner@lists.domain.org, 5180 bytes May 04 02:06:20 2020 (136765) ('198.199.98.177', 42734) Data: b'QUIT' May 04 02:06:20 2020 (136765) ('198.199.98.177', 42734) connection lost May 04 02:06:20 2020 (136765) Connection lost during _handle_client() May 04 02:06:21 2020 (136767) <158855797827.136760.10970401726993928773@lists> recipients refused: {' csgeek@domain.com': (554, b'5.7.1 <csgeek@domain.com>: Relay access denied')} May 04 02:06:21 2020 (136767) <158855797827.136760.10970401726993928773@lists> smtp to booh@lists.domain.org for 1 recips, completed in 0.022742748260498047 seconds May 04 02:06:21 2020 (136767) <158855797827.136760.10970401726993928773@lists> post to booh@lists.domain.org from booh-owner@lists.geekbeacon.org, 5496 bytes, 1 failures May 04 02:06:21 2020 (136767) <158855797827.136760.10970401726993928773@lists> delivery to csgeek@domain.com failed with code 554, b'5.7.1 <csgeek@domain.com>: Relay access denied'
These are the changes I have in postfix that seem relevant.
/etc/postfix/master.cf
mailman unix - n n - - pipe flags=FR user=list argv=/usr/lib/mailman/bin/postfix-to-mailman.py ${nexthop} ${user}
/etc/postfix/main.cf
compatibility_level = 2
recipient_delimiter = + unknown_local_recipient_reject_code = 550 owner_request_special = no transport_maps = hash:/var/lib/mailman3/data/postfix_lmtp local_recipient_maps = $alias_maps hash:/var/lib/mailman3/data/postfix_lmtp relay_domains = hash:/var/lib/mailman3/data/postfix_domains
smtpd_relay_restrictions = permit_mynetworks permit_sasl_authenticated defer_unauth_destination myhostname = lists.domain.org mydestination = $myhostname, localhost.localdomain, localhost, $mydomain, lists.domain.org
Any help is appreciated.
-- Samir Faci
On Sat, May 2, 2020 at 1:40 PM Andrew Hodgson <andrew@hodgson.io> wrote:
Mark Sapiro <mark@msapiro.net> wrote:
On 5/2/20 12:51 AM, Samir Faci wrote:
A few questions about an Ubuntu install.
i'm getting this behavior:
AttributeError: module 'time' has no attribute 'clock'
I'm on python 3.8.2
It time.clock() went away in Python 3.8. Mailman versions older than 3.3.0 are not compatible with Python 3.8. You need to upgrade Mailman core.
I think this is a bug in Ubuntu 20.04.
Python3 package is: Python3 3.8.2-0ubuntu2 https://packages.ubuntu.com/search?suite=focal&keywords=python3 Mailman3 is: 3.2.2-1 https://packages.ubuntu.com/search?suite=focal&keywords=mailman3
Andrew.
Mailman-users mailing list -- mailman-users@mailman3.org To unsubscribe send an email to mailman-users-leave@mailman3.org https://lists.mailman3.org/mailman3/lists/mailman-users.mailman3.org/
-- Thank you Samir Faci https://keybase.io/csgeek
On 5/3/20 7:14 PM, Samir Faci wrote:
Here's my next question. Hopefully this isn't off topic, but trying to get postfix to work with mailman and I keep on getting relay denied issues.
...
These are the changes I have in postfix that seem relevant.
/etc/postfix/master.cf
mailman unix - n n - - pipe flags=FR user=list argv=/usr/lib/mailman/bin/postfix-to-mailman.py ${nexthop} ${user}
postfix-to-mailman.py is Mailman 2.1 only. It doesn't work with Mailman3.
/etc/postfix/main.cf
compatibility_level = 2
recipient_delimiter = + unknown_local_recipient_reject_code = 550 owner_request_special = no transport_maps = hash:/var/lib/mailman3/data/postfix_lmtp local_recipient_maps = $alias_maps hash:/var/lib/mailman3/data/postfix_lmtp relay_domains = hash:/var/lib/mailman3/data/postfix_domains
These mostly have to do with delivery of mail to Mailman rather than from Mailman.
smtpd_relay_restrictions = permit_mynetworks permit_sasl_authenticated defer_unauth_destination myhostname = lists.domain.org mydestination = $myhostname, localhost.localdomain, localhost, $mydomain, lists.domain.org
The entire output from postconf -n
might be helpful.
Also the postfix log messages for the the failed deliveries would be helpful.
Can you send mail to csgeek@domain.com in other ways, e.g. mutt or mail or sendmail?
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
On 5/3/20 7:14 PM, Samir Faci wrote:
I manually patched up the bug since It seems it only occurs once or twice in the code base.
There's more to it than just time.clock. See <https://gitlab.com/mailman/mailman/-/merge_requests/552/diffs?commit_id=ea05bdd0f74ba06d85adad1f7d190a62e1bd4439>
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
participants (3)
-
Andrew Hodgson
-
Mark Sapiro
-
Samir Faci