I installed Mailman 3 with Postfix. I try to login with the 3rd Party Account. It is not possible, because I get this error message:
Server error An error occurred while processing your request.
I think each plugin has to be configured separately, such as with an API key from each service.
It would be interesting to know if there is a recommended way to disable the third party logins completely. That was what I hoped to do after deciding against configuring each service.
- Matt Alberti
Get BlueMail for Android
On Feb 16, 2021, 5:34 PM, at 5:34 PM, kwp.klein@gmail.com wrote:
I installed Mailman 3 with Postfix. I try to login with the 3rd Party Account. It is not possible, because I get this error message:
Server error An error occurred while processing your request.
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/
- Matthew Alberti (matthew@alberti.us) [210216 13:47]:
I think each plugin has to be configured separately, such as with an API key from each service.
It would be interesting to know if there is a recommended way to disable the third party logins completely. That was what I hoped to do after deciding against configuring each service.
just disable the allauth.socialaccount.providers* from the appropriate settings.py, I'd say.
Andi
Here is my /mailamn/config/mailman-web/settings_local.py. I get an error message
curl http://172.19.199.3:8000/postorius/lists/ curl: (7) Failed connect to 172.19.199.3:8000; No route to host Please comment out all the lines that are not necessary.
MAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend' EMAIL_HOST = '172.19.199.1' EMAIL_PORT = 25 USE_SSL = False
INSTALLED_APPS = ( 'hyperkitty', 'postorius', 'django_mailman3', # Uncomment the next line to enable the admin: 'django.contrib.admin', # Uncomment the next line to enable admin documentation: # 'django.contrib.admindocs', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.sites', 'django.contrib.messages', 'django.contrib.staticfiles', 'rest_framework', 'django_gravatar', 'paintstore', 'compressor', 'haystack', 'django_extensions', 'django_q', 'allauth', 'allauth.account', 'allauth.socialaccount', #'django_mailman3.lib.auth.fedora', #'allauth.socialaccount.providers.openid', #'allauth.socialaccount.providers.github', #'allauth.socialaccount.providers.gitlab', #'allauth.socialaccount.providers.google', )
kwp.klein@gmail.com writes:
Here is my /mailamn/config/mailman-web/settings_local.py. I get an error message
curl http://172.19.199.3:8000/postorius/lists/ curl: (7) Failed connect to 172.19.199.3:8000; No route to host Please comment out all the lines that are not necessary.
This is not a Mailman problem; curl can't connect to the Mailman host because there's no way to get there from here. We may not be the best place to ask about network problems. That said, we'll do what we can.
We need to know what your network configuration is. I assume that 172.19.199.1 and 172.19.199.3 are on the same subnet, and that 172.19.199.3 is the host for Postorius. Where is Mailman core? Do you have HyperKitty installed? On what host? I assume that 172.19.199.1 is the host with the MTA for this network.
I don't know if this is related to your original problem "Server error An error occurred while processing your request." However, if the network is not working properly Mailman is going to be very unhappy.
MAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend' EMAIL_HOST = '172.19.199.1' EMAIL_PORT = 25 USE_SSL = False
INSTALLED_APPS = ( [...] 'allauth', 'allauth.account', 'allauth.socialaccount',
I think you may want to disable allauth.socialaccount as well.
#'django_mailman3.lib.auth.fedora', #'allauth.socialaccount.providers.openid', #'allauth.socialaccount.providers.github', #'allauth.socialaccount.providers.gitlab', #'allauth.socialaccount.providers.google',
)
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/
Same thing happens to me. If I comment out all the socialauth plugins, the web service doesnt work.
Are you using the docker-mailman installation method?
Get BlueMail for Android
On Feb 16, 2021, 7:32 PM, at 7:32 PM, kwp.klein@gmail.com wrote:
Here is my /mailamn/config/mailman-web/settings_local.py. I get an error message
curl http://172.19.199.3:8000/postorius/lists/ curl: (7) Failed connect to 172.19.199.3:8000; No route to host Please comment out all the lines that are not necessary.
MAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend' EMAIL_HOST = '172.19.199.1' EMAIL_PORT = 25 USE_SSL = False
INSTALLED_APPS = ( 'hyperkitty', 'postorius', 'django_mailman3', # Uncomment the next line to enable the admin: 'django.contrib.admin', # Uncomment the next line to enable admin documentation: # 'django.contrib.admindocs', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.sites', 'django.contrib.messages', 'django.contrib.staticfiles', 'rest_framework', 'django_gravatar', 'paintstore', 'compressor', 'haystack', 'django_extensions', 'django_q', 'allauth', 'allauth.account', 'allauth.socialaccount', #'django_mailman3.lib.auth.fedora', #'allauth.socialaccount.providers.openid', #'allauth.socialaccount.providers.github', #'allauth.socialaccount.providers.gitlab', #'allauth.socialaccount.providers.google', )
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/
I have the same problem. When I comment out the socialauth plugins, the web service doesnt work. If you haave a littel time, please check out my git repo. I use postfix inside a container. I think it works fine, but I need a little help to check the complete configuration.
git clone https://gitlab.com/joklein/mailman.git cd mailman docker-compose up -d
On 2/16/21 4:46 AM, Matthew Alberti wrote:
I think each plugin has to be configured separately, such as with an API key from each service.
For what it's worth, this list supports 4 Oauth2 providers, Google, Facebook, Github and Gitlab. 3 of these require stuff in Django's settings
SOCIALACCOUNT_PROVIDERS = {
'google': {
'SCOPE': ['profile', 'email'],
'AUTH_PARAMS': {'access_type': 'online'},
},
'facebook': {
'METHOD': 'oauth2',
'SCOPE': ['email'],
'FIELDS': [
'email',
'name',
'first_name',
'last_name',
'locale',
'timezone',
],
'VERSION': 'v2.12',
},
'gitlab': {
'SCOPE': ['read_user'],
},
}
Additionly, each requires creation of an app with the provider and
addition of the app and its keys in the Django admin UI at
socialaccount/socialapp/. See
<https://django-allauth.readthedocs.io/en/latest/providers.html> for
more info on setting up specific providers.
--
Mark Sapiro <mark@msapiro.net> The highway is for gamblers,
San Francisco Bay Area, California better use your sense - B. Dylan
I want t disable all social account providers. I need an example and the name of the file.
On 2/16/21 7:27 PM, kwp.klein@gmail.com wrote:
I want t disable all social account providers. I need an example and the name of the file.
I'm not certain this will do what you want,, but in your Django local settings (probably settings_local.py) put
SOCIALACCOUNT_PROVIDERS = {}
You can also remove
'allauth.socialaccount'
and any
'allauth.socialaccount.providers.*' from INSTALLED_APPS
and in the Dgango web admin interface under Social Accounts › Social applications, if any are listed, delete them.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
This is my local_settings.py. The social account icons are not deleted.
- I don't find the Social Accounts › Social applications. where I have to search?
EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend' EMAIL_HOST = '172.19.199.1' EMAIL_PORT = 25 USE_SSL = False DEFAULT_FROM_EMAIL = "lists@example.com" SERVER_EMAIL = "lists@example.com" SOCIALACCOUNT_PROVIDERS = {}
On 2/16/21 8:20 PM, Aaron Klein wrote:
This is my local_settings.py. The social account icons are not deleted.
you need to ensure that they are deleted from the Dgango web admin interface under Social Accounts › Social applications
- I don't find the Social Accounts › Social applications. where I have to search?
It is in the Django web UI. Assuming you have something like
url(r'^django/', admin.site.urls),
in your urls.py, not commented, it wuoul be a url like
https://example.com/admin/socialaccount/socialapp/
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
I logged in in the Django Web. But the social buttons are still visible.
Select social application to change ADD SOCIAL APPLICATION 0 social applications
On 2/16/21 11:40 PM, Jörg Klein wrote:
I logged in in the Django Web. But the social buttons are still visible.
Select social application to change ADD SOCIAL APPLICATION 0 social applications
If you have removed them from Django as above and also set
SOCIALACCOUNT_PROVIDERS = {}
and removed the allauth.socialaccount.providers.* entries from INSTALLED_APPS in your Django settings, then I don't know what the problem is.
Actually just removing the allauth.socialaccount.providers.* entries from INSTALLED_APPS should be enough.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
participants (7)
-
Aaron Klein
-
Andreas Barth
-
Jörg Klein
-
kwp.klein@gmail.com
-
Mark Sapiro
-
Matthew Alberti
-
Stephen J. Turnbull