On Wed, 6 Jan 2021 at 21:17, Brian Carpenter <brian_carpenter@emwd.com> wrote:
On Wed, 6 Jan 2021 at 15:36, Andreas Barth aba@ayous.org wrote:
Odhiambo Washington (odhiambo@gmail.com) [210106 12:12]:PS: I could
Odhiambo Washington wrote: probably have caused the error with some weird operation I
did: Initially when postorius comes up, it has the domain - example.com http://example.com. I am not sure where it gets this.
example.com is the default domain from django. Renaming that via the django (e.g. mailman3/admin/sites/site/1/change/ ) worked for me quite well (without touching anything in the database by hand). Hi Andi, I could be missing something still...
At what juncture during the installation do you do this renaming? Where is this directory? On my setup, I have no such directory - but I could be missing something in the install process, maybe..
root@debian10:/opt/mailman# pwd /opt/mailmanroot@debian10:/opt/mailman# find . -type d -name sites
./mm/venv/lib/python3.7/site-packages/jedi/third_party/django-stubs/django-stubs/contrib/sites
./mm/venv/lib/python3.7/site-packages/django/contrib/sites Do you find anything amiss with this HOWTO - https://wiki.list.org/DOC/Howto_Install_Mailman3_On_Debian10 ?? I find the guide rather straight and clear.
It's the one I am following - almost to the letter - except for the fact that I am using Apache+mod_wsgi+MySQL+Exim instead. I have configs in place by the time I run 'mailman info' portion. But
That is my work in progress and thank you for the compliment. then
again, when I run this command, I don't like what it prints because I see some reference to sqlite.
Can you paste what the mailman info output is and the contents of your mailman.cfg file?
My mailman.cfg file is below:
[mailman] site_owner: odhiambo@gmail.com layout: here [paths.here] var_dir: /opt/mailman/mm/var [database] class: mailman.database.mysql.MySQLDatabase url: mysql+pymysql://mailman3:XXXXXXX@localhost /mailmansuite?charset=utf8&use_unicode=1 [archiver.hyperkitty] class: mailman_hyperkitty.Archiver enable: yes configuration: /opt/mailman/mm/mailman-hyperkitty.cfg [archiver.prototype] enable: yes [shell] history_file: $var_dir/history.py [mta] verp_confirmations: yes verp_personalized_deliveries: yes verp_delivery_interval: 1 incoming: mailman.mta.exim4.LMTP outgoing: mailman.mta.deliver.deliver lmtp_host: localhost smtp_host: localhost lmtp_port: 8024 smtp_port: 25 configuration: python:mailman.config.exim4 [shell] use_ipython: yes
The output of mailman info
is:
mailman@debian10:~$ python3 -m venv /opt/mailman/mm/venv mailman@debian10:~$ source /opt/mailman/mm/venv/bin/activate (venv) mailman@debian10:~$ mailman info GNU Mailman 3.3.2 (Tom Sawyer) Python 3.7.3 (default, Jul 25 2020, 13:03:44) [GCC 8.3.0] config file: /opt/mailman/var/etc/mailman.cfg db url: sqlite:////opt/mailman/var/data/mailman.db *<=== I wonder why it's even referring to sqlite...* devmode: DISABLED REST root url: http://localhost:8001/3.1/ REST credentials: restadmin:restpass
As it is, I believe my problem lies elsewhere, not possible to solve with your rename option.
To get rid of example.com, I log into Django, create a new site using the main list domain and note the site id. I then edit the settings_local.py file and change the SITE_ID setting to the new site id of the main list domain. You will need to restart mailman and qcluster I believe after making that change.
I hope you will document this additional step of how to get rid of example.com.
-- Best regards, Odhiambo WASHINGTON, Nairobi,KE +254 7 3200 0004/+254 7 2274 3223 "Oh, the cruft.", grep ^[^#] :-)