Django + Postfix reset password email not beeing sent -


i have set django app in cloud server , i'm trying configure send password reset emails.

firstly configured views , tested them django console e-mail backend see if working.

email_backend = 'django.core.mail.backends.console.emailbackend' 

i can see e-mail sent console when visit password reset view.

next configured postfix backend. postfix working , receive e-mails send command:

echo "body" | mail -s "subject" myemail@gmail.com 

after changed django settings.py backend use postfix this

email_backend = 'django.core.mail.backends.smtp.emailbackend' email_host = 'localhost' email_port = 25 email_host_user = '' email_host_password = '' email_use_tls = false default_from_email = 'noreply <noreply@mydomain.com>' 

then tested configuration django shell python manage.py shell:

from django.core.mail import send_mail send_mail('subject', 'body', 'noreply@mydomain.com', ['myemail@gmail.com'], fail_silently=false) 

again, far working, able receive e-mail sent command above.

however, if go django reset view , enter e-mail address test feature don't e-mail!

in journalctl -u postfix -xe following messages:

postfix/smtpd[23411]: connect localhost[127.0.0.1] postfix/smtpd[23411]: 7baed13d02e: client=localhost[127.0.0.1] postfix/cleanup[23414]: 7baed13d02e: message-id=<20170820234125.23051.46440@mydomain.com> postfix/qmgr[20567]: 7baed13d02e: from=<noreply@mydomain.com>, size=974, nrcpt=1 (queue active) postfix/smtpd[23411]: disconnect localhost[127.0.0.1] ehlo=1 mail=1 rcpt=1 data=1 quit=1 commands=5 postfix/smtp[23415]: connect gmail-smtp-in.l.google.com[xxxx:xxxx:xxxx:xxx::xx]:25: network unreachable postfix/smtp[23415]: 7baed13d02e: to=<myemail@gmail.com>, relay=gmail-smtp-in.l.google.com[xxx.xxx.xxx.xxx]:25, delay=0.32, delays=0.01/0.01/0.1/0.21, dsn=5.7.1, status=bounced (host gmail-smtp-in.l.google.com[xxx.xxx.xxx.xx] said: 550-5.7.1 [xxx.xxx.xx.xxx      13] messages multiple addresses in from: 550 5.7.1 header not accepted. f12si6029290pln.103 - gsmtp (in reply end of data command)) postfix/cleanup[23414]: cb6b913d030: message-id=<20170820234125.cb6b913d030@mydomain.com> postfix/qmgr[20567]: cb6b913d030: from=<>, size=3367, nrcpt=1 (queue active) postfix/bounce[23416]: 7baed13d02e: sender non-delivery notification: cb6b913d030 postfix/qmgr[20567]: 7baed13d02e: removed postfix/local[23418]: cb6b913d030: to=<noreply@mydomain.com>, relay=local, delay=0.01, delays=0/0.01/0/0, dsn=5.1.1, status=bounced (unknown user: "noreply") postfix/qmgr[20567]: cb6b913d030: removed 

it seems me clue in 13] messages multiple addresses in from: 550 5.7.1 header not accepted. f12si6029290pln.103 - gsmtp (in reply end of data command), can't work out.


Comments

Popular posts from this blog

python - Operations inside variables -

Generic Map Parameter java -

arrays - What causes a java.lang.ArrayIndexOutOfBoundsException and how do I prevent it? -