Übersicht
E-mails sent from a Django application may use “webmaster@host.domain.tld” or another erroneous address as the From field.
Ursache
ServerAdmin values are not set in Apache configuration for virtual hosts to prevent unintentional information leakage.
Lösung
Set DEFAULT_FROM_EMAIL
und SERVER_EMAIL
in your Django settings file. An example configuration follows:
EMAIL_HOST='localhost' EMAIL_PORT='587' EMAIL_HOST_USER='myadmin@mydomain.com' EMAIL_PASSWORD='mysmtppassword' DEFAULT_FROM_EMAIL=EMAIL_HOST_USER SERVER_EMAIL=EMAIL_HOST_USER
Replace EMAIL_HOST_USER
und EMAIL_PASSWORD
values with your correct e-mail credentials.