[GeoNode-users] Approval Email send to all admins

Cezary Statkiewicz cezary.statkiewicz at geo-solutions.it
Wed May 17 06:42:35 PDT 2017


On Wednesday, May 17, 2017 2:08:48 PM CEST Toni Schönbuchner wrote:
 
 Hi,

> if a new User registers and ACCOUNT_APPROVAL_REQUIRED is true
> an Email should be send to people in ADMINS.
> 
> But instead of *only* using this tuple it seams geonode-user-accounts is
> trying to send an Email to all admins ?! As some admin adresses seem not
> valid anymore my SMTP Server replies with Error 550 User not found (in
> production page load forever ...).
> 
> Is this the expected behavior, if so is it possible to only use adresses
> in ADMINS?
 
 Not exactly, notification emails are send to all staff members [1]. ADMINS 
tuple is not used here.

 From your previous message it seems like you're trying to use 
max.muster at muster.org email address. This will cause error in any SMTP server, 
because muster.org domain doesn't have any MX record in DNS available, so no 
email can be delivered to this address:

$ dig -t any muster.org

; <<>> DiG 9.11.0-P3 <<>> -t any muster.org
;; global options: +cmd
;; connection timed out; no servers could be reached


 Using invalid/fake email addresses with SMTP backend is not good idea in 
general. Other backends may work here, although it's not something you want to 
do in production environment.

 [1] https://github.com/GeoNode/geonode-user-accounts/blob/
aed7bc5f13b9e825176a48d5de5cb535b4b477aa/account/views.py#L133

 Best Regards,

 Cezary Statkiewicz
> 
> #################################
> Geonode 2.4 / local_settings.py
> 
> ADMINS = (
>             (’toni, 'toni.schoenbuchner at csgis.de'),
>          )
> 
> # Account registration
> REGISTRATION_OPEN = True
> ACCOUNT_EMAIL_CONFIRMATION_EMAIL = True
> ACCOUNT_EMAIL_CONFIRMATION_REQUIRED = True
> ACCOUNT_APPROVAL_REQUIRED = True
> 
> # Uncomment the following to use a Gmail account as the email backend
> EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
> EMAIL_USE_TLS = True
> EMAIL_USE_SSL = True
> EMAIL_HOST = 'mail.xxx.de'
> EMAIL_HOST_USER = 'geoserv at xxx.de'
> EMAIL_HOST_PASSWORD = 'xxx'
> EMAIL_PORT = 587
> DEFAULT_FROM_EMAIL = EMAIL_HOST_USER
> THEME_ACCOUNT_CONTACT_EMAIL = 'geoserv at xxx.de> 
> #################################


-- 
Regards,
Cezary Statkiewicz
==
GeoServer Professional Services from the experts!
Visit http://goo.gl/it488V for more information.
==
Cezary Statkiewicz
Senior Software Engineer

GeoSolutions S.A.S.
Via di Montramito 3/A
55054  Massarosa (LU)
Italy
phone: +39 0584 962313
fax:     +39 0584 1660272

http://www.geo-solutions.it
http://twitter.com/geosolutions_it

-------------------------------------------------------
AVVERTENZE AI SENSI DEL D.Lgs. 196/2003
Le informazioni contenute in questo messaggio di posta elettronica e/o nel/i 
file/s allegato/i sono da considerarsi strettamente riservate. Il loro 
utilizzo è consentito esclusivamente al destinatario del messaggio, per le 
finalità indicate nel messaggio stesso. Qualora riceviate questo messaggio 
senza esserne il destinatario, Vi preghiamo cortesemente di darcene notizia 
via e-mail e di procedere alla distruzione del messaggio stesso, cancellandolo 
dal Vostro sistema. Conservare il messaggio stesso, divulgarlo anche in parte, 
distribuirlo ad altri soggetti, copiarlo, od utilizzarlo per finalità diverse, 
costituisce comportamento contrario ai principi dettati dal D.Lgs. 196/2003.
 
The information in this message and/or attachments, is intended solely for the 
attention and use of the named addressee(s) and may be confidential or 
proprietary in nature or covered by the provisions of privacy act (Legislative 
Decree June, 30 2003, no.196 - Italy's New Data Protection Code).Any use not 
in accord with its purpose, any disclosure, reproduction, copying, 
distribution, or either dissemination, either whole or partial, is strictly 
forbidden except previous formal approval of the named addressee(s). If you 
are not the intended recipient, please contact immediately the sender by 
telephone, fax or e-mail and delete the information in this message that has 
been received in error. The sender does not give any warranty or accept 
liability as the content, accuracy or completeness of sent messages and 
accepts no responsibility  for changes made after they were sent or for other 
risks which arise as a result of e-mail transmission, viruses, etc.


More information about the geonode-users mailing list