Mailman 3 installation, no mails in hyperkitty, unable to add footer.
I have read documentation, but still have stupid questions, could You please help, because I can't make it working. I do not understand something important. I have no experience with python at all. I have mailman 3, python 3.5 in my debian OS system, and additional packages like uwsgi and ect. using https://buildmedia.readthedocs.org/media/pdf/gnu-mailman/latest/gnu-mailman.... about till chapter 6. I understand mailman suite has hyperkitty already. But I am not sure about:
- Does mailman-suite have hyper-kitty inside? Because if I run $python manage.py runserver - it runs. In installed it under dedicated OS user home and fonfigured to run.
I can create lists, event add lists to hyperkitty page using: $django-admin runjob new_lists_from_mailman list server sends messages to list members as well. But nothing happens more. No emails come to hyperkitty, arciver log 0 size.
$ python manage.py runjobs -l shows the lists of the jobs, so seems nothing to add.
Except uwsgi.ini, I have only 2 configuration files in mailman-suite project directory: settings.py and mailman.cfg So I do not understand what did I configured badly.
- If I (using Postorius web interface) add footer template to my list under regular message, something strange happens. Mailman stops to send messages for list members. No any entries in the logs. Just Mailman log writes: "unable to connect localhost port 25" and no more explanation. If I delete list's footer template (web interface), mailman starts working again. What is bad here? How to add custom footer? In mailman 2 if was working so good and was easy to setup.
On 8/23/19 8:11 AM, ugniusviln@gmail.com wrote:
I have read documentation, but still have stupid questions, could You please help, because I can't make it working. I do not understand something important. I have no experience with python at all. I have mailman 3, python 3.5 in my debian OS system, and additional packages like uwsgi and ect. using https://buildmedia.readthedocs.org/media/pdf/gnu-mailman/latest/gnu-mailman.... about till chapter 6. I understand mailman suite has hyperkitty already. But I am not sure about:
- Does mailman-suite have hyper-kitty inside? Because if I run $python manage.py runserver - it runs. In installed it under dedicated OS user home and fonfigured to run. I can create lists, event add lists to hyperkitty page using: $django-admin runjob new_lists_from_mailman list server sends messages to list members as well. But nothing happens more. No emails come to hyperkitty, arciver log 0 size.
$ python manage.py runjobs -l shows the lists of the jobs, so seems nothing to add.
How exactly did you install Mailman? The document you reference gives alternatives. You don't say exactly what you did.
- If I (using Postorius web interface) add footer template to my list under regular message, something strange happens. Mailman stops to send messages for list members. No any entries in the logs. Just Mailman log writes: "unable to connect localhost port 25" and no more explanation. If I delete list's footer template (web interface), mailman starts working again. What is bad here? How to add custom footer? In mailman 2 if was working so good and was easy to setup.
It appears that no MTA is listening on localhost port 25. Is your MTA even running? It is extremely unlikely that this has anything to do with adding a termplate in Postorius.
You might be better off installing Debian's 'mailman3-full' package <https://packages.debian.org/search?keywords=mailman3-full&searchon=names&suite=all§ion=all>.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
Hi, Mark. Thank You for trying to help me. I do not remember how exactly I installed mailman or by apt-get or: $ sudo pip3 install mailman ---I think, have tried this way, but it already was installed. ~/mailman-suite$ mailman info GNU Mailman 3.2.2 (La Villa Strangiato) Python 3.5.3 (default, Sep 27 2018, 17:25:39) [GCC 6.3.0 20170516] config file: /home/user/mailman-suite/mailman.cfg db url: sqlite:////home/user/mailman-suite/var/data/mailman.db devmode: DISABLED REST root url: http://localhost:8001/3.1/ REST credentials: restadmin:Rest_password
MTA works correctly. Yes, I understand the error is very strange, but this exactly happens when I add footer custom template to list's regular message via web interface. "telnet loclhost 25" answers correctly. Messages about new members adding and new list creating works and reach the recipients. But Mailman for some strange reasons could not to sent messages from member to other list's members. And nothing to do more: it is enough to delete template and mailman starts send new messages correctly. One remark all messages during with customs template was active remain somewhere in between and do not go out even if template is deleted. I can't even imagine how to debug that. I have noticed that by experience - method to check does mailman work after every small update. This system is so easy to make not working, and then is so hard to understand what did happen.
It would be good to read about working example how to setup, and which moments are important. There are many places documented about separate packages, but not full example. I have found one here https://lab.uberspace.de/guide_mailman-3.html, but here part of steps seems are not written as well. For example uwsgi ini and pre required environment. It could happen that for author these steps were trivial, but for person from side some small explanations are very important to understand whole picture of setup and why small parameters where set exactly that way. Of course I am very thankful for authors of that example, because that helped me as well.
2019-08-23, pn, 20:28 Mark Sapiro <mark@msapiro.net> rašė:
I have read documentation, but still have stupid questions, could You
On 8/23/19 8:11 AM, ugniusviln@gmail.com wrote: please help, because I can't make it working. I do not understand something important. I have no experience with python at all. I have mailman 3, python 3.5 in my debian OS system, and additional packages like uwsgi and ect. using https://buildmedia.readthedocs.org/media/pdf/gnu-mailman/latest/gnu-mailman.... about till chapter 6. I understand mailman suite has hyperkitty already. But I am not sure about:
- Does mailman-suite have hyper-kitty inside? Because if I run $python
I can create lists, event add lists to hyperkitty page using: $django-admin runjob new_lists_from_mailman list server sends messages to
manage.py runserver - it runs. In installed it under dedicated OS user home and fonfigured to run. list members as well. But nothing happens more. No emails come to hyperkitty, arciver log 0 size.
$ python manage.py runjobs -l shows the lists of the jobs, so seems nothing to add.
How exactly did you install Mailman? The document you reference gives alternatives. You don't say exactly what you did.
- If I (using Postorius web interface) add footer template to my list under regular message, something strange happens. Mailman stops to send messages for list members. No any entries in the logs. Just Mailman log writes: "unable to connect localhost port 25" and no more explanation. If I delete list's footer template (web interface), mailman starts working again. What is bad here? How to add custom footer? In mailman 2 if was working so good and was easy to setup.
It appears that no MTA is listening on localhost port 25. Is your MTA even running? It is extremely unlikely that this has anything to do with adding a termplate in Postorius.
You might be better off installing Debian's 'mailman3-full' package < https://packages.debian.org/search?keywords=mailman3-full&searchon=names&suite=all§ion=all
.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
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/
On 8/23/19 12:17 PM, Ugnius S wrote:
It would be good to read about working example how to setup, and which moments are important.
See <https://wiki.list.org/DOC/Mailman%203%20installation%20experience>.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
Mark, Thank You for your guidance. Yes, seems my installed mailman3 package is not full. I have tried to install it on my Debian 9, but I got package broken error and all possible proposals how to fix it did not help. But it is normal - official OS version 9 has no this package included. Then I have decided to play on another machine where is installed Debian 10. I have successfully installed mailman3-full. It already came pre-configured with keys included. Mailman3-web packige was something new for me. I understand it replaces mailman- suite, but like I did not find where to read about it, I did not find how to open the administration or postorius site.
Kind regards Ugnius
On 23 Aug 2019, at 23:18, Mark Sapiro <mark@msapiro.net> wrote:
On 8/23/19 12:17 PM, Ugnius S wrote:
It would be good to read about working example how to setup, and which moments are important.
See <https://wiki.list.org/DOC/Mailman%203%20installation%20experience>.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
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/
Hi. All the project installation is under the same user and path and working. If as owner user from project home I run:
django-admin mailman_sync
Traceback (most recent call last): File "/home/user/.local/lib/python3.5/site-packages/django/db/backends/utils.py", line 84, in _execute return self.cursor.execute(sql, params) File "/home/user/.local/lib/python3.5/site-packages/django/db/backends/sqlite3/base.py", line 383, in execute return Database.Cursor.execute(self, query, params) sqlite3.OperationalError: attempt to write a readonly database
"django-admin runjob sync_mailman " - makes errors as well.
I did not find information how to fix this. It was worked without errors before. I guess that issue is hyperkitty database, but I even do not know the name and location of that database. Maybe it is locked. I have stopped server, killed all processes of that user and restarted mailman mailman-suite server, but this trick did not help. Please help.
On 9/1/19 1:02 AM, Ugnius S wrote:
I guess that issue is hyperkitty database, but I even do not know the name and location of that database.
See the DATABASES definition in your Django settings. The default is a sqlite3 database named mailmansuite.db in the same directory as the Django settings.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
Thank You, Mark for guideline. I accidentally posted here. I wanted to start new thread and just replaced subject of messages. Message was sent to this thread anyway.
The reason of this issue was very simple. I creadet symlink in /usr/local/bin/django-admin to /project/home/manage.py, because I was unable to set original django-admin file to work as it should to work. Later I decided to run mailman project under other user and forgot about that symbolic link. So it was normal, that previous user had no privileges on database file.
Thank You for helping.
On 12 Sep 2019, at 21:50, Mark Sapiro <mark@msapiro.net> wrote:
On 9/1/19 1:02 AM, Ugnius S wrote:
I guess that issue is hyperkitty database, but I even do not know the name and location of that database.
See the DATABASES definition in your Django settings. The default is a sqlite3 database named mailmansuite.db in the same directory as the Django settings.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
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/
participants (4)
-
Mark Sapiro
-
Ugnius
-
Ugnius S
-
ugniusviln@gmail.com