On 2024/07/28 17:06, Mark Sapiro wrote:
On 7/28/24 06:26, Roland Giesler via Mailman-users wrote:
On 2024/07/28 00:39, Mark Sapiro wrote: A mail was sent to root on the localhost with the following content:
Return-Path: <root@giesler.za.net> X-Original-To: root@localhost Delivered-To: root@localhost Received: from mailman.fast.za.net (localhost [IPv6:::1]) by mailman.localdomain (Postfix) with ESMTP id 2174A120A5B for <root@localhost>; Sun, 28 Jul 2024 13:11:03 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Subject: [Django] ERROR (EXTERNAL IP): Internal Server Error: /accounts/login/ From: root@giesler.za.net To: root@localhost Date: Sun, 28 Jul 2024 13:11:03 -0000 Message-ID: <172217226313.2150.10895652368679013629@mailman.fast.za.net>
Internal Server Error: /accounts/login/
SMTPRecipientsRefused at /accounts/login/ {'roland@giesler.za.net': (454, b'4.7.1 <roland@giesler.za.net>: Relay acce= ss denied')}
This is mail from django-allauth, not from Mailman. Your settings in mailman.cfg do not affect how this mail is sent. See https://docs.djangoproject.com/en/5.0/topics/email/#smtp-backend for the Django settings for this.
These settings from the Django docs look like the ones in mailman.cfg. Do I have to set them somewhere else too?
SMTP backend¶
<https://docs.djangoproject.com/en/5.0/topics/email/#smtp-backend>
/class/|backends.smtp.||EmailBackend|(/host=None/,/port=None/,/username=None/,/password=None/,/use_tls=None/,/fail_silently=False/,/use_ssl=None/,/timeout=None/,/ssl_keyfile=None/,/ssl_certfile=None/,/**kwargs/)¶ <https://docs.djangoproject.com/en/5.0/topics/email/#django.core.mail.backends.smtp.EmailBackend>
This is the default backend. Email will be sent through a SMTP server.
The value for each argument is retrieved from the matching setting
if the argument is|None|:
* |host|:|EMAIL_HOST|
<https://docs.djangoproject.com/en/5.0/ref/settings/#std-setting-EMAIL_HOST>
* |port|:|EMAIL_PORT|
<https://docs.djangoproject.com/en/5.0/ref/settings/#std-setting-EMAIL_PORT>
* |username|:|EMAIL_HOST_USER|
<https://docs.djangoproject.com/en/5.0/ref/settings/#std-setting-EMAIL_HOST_USER>
* |password|:|EMAIL_HOST_PASSWORD|
<https://docs.djangoproject.com/en/5.0/ref/settings/#std-setting-EMAIL_HOST_PASSWORD>
* |use_tls|:|EMAIL_USE_TLS|
<https://docs.djangoproject.com/en/5.0/ref/settings/#std-setting-EMAIL_USE_TLS>
* |use_ssl|:|EMAIL_USE_SSL|
<https://docs.djangoproject.com/en/5.0/ref/settings/#std-setting-EMAIL_USE_SSL>
* |timeout|:|EMAIL_TIMEOUT|
<https://docs.djangoproject.com/en/5.0/ref/settings/#std-setting-EMAIL_TIMEOUT>
* |ssl_keyfile|:|EMAIL_SSL_KEYFILE|
<https://docs.djangoproject.com/en/5.0/ref/settings/#std-setting-EMAIL_SSL_KEYFILE>
* |ssl_certfile|:|EMAIL_SSL_CERTFILE|
<https://docs.djangoproject.com/en/5.0/ref/settings/#std-setting-EMAIL_SSL_CERTFILE>
The SMTP backend is the default configuration inherited by Django.
If you want to specify it explicitly, put the following in your
settings:
EMAIL_BACKEND = "django.core.mail.backends.smtp.EmailBackend"
If unspecified, the default|timeout|will be the one provided
by|socket.getdefaulttimeout()|
<https://docs.python.org/3/library/socket.html#socket.getdefaulttimeout>,
which defaults to|None|(no timeout).