Guillermo Hernandez (Oldno7) via Mailman-users writes:
import mm_cfg
This should result in an error, there is no mm_cfg.py in Mailman3. Was there previously a Mailman 2 installation on this host?
mailman withlist -r moderar -l list_to_use@mydomain.com address@moderate.com
The system returns:
Traceback (most recent call last): ModuleNotFoundError: No module named 'moderar'
I've done a
ln -s� /usr/local/mailman3/moderar.py /usr/local/lib/python3.7/site-packages/mailman/bin/moderar.py
Note that "--detail" when gives an example for "-r", it says "listaddr.py" is installed in "the Mailman installation directory", which is either /usr/local/lib/python3.7/site-packages/mailman or /usr/local/mailman3, or maybe something under /usr/local/mailman3/var, I think.
If neither of those works, Mark or Abhilash will explain soon. In the meantime you could also try "mailman.bin.moderar" instead of "moderar". I don't think mailman/bin is on Python's sys.path for imports (it's set up as a package with __init__.py), and the qualified path is what is used in the scripts you invoke from from the OS shell like "mailman".