[Answered ]-Relay access denied when sending mails to non-local addresses via SMTP


The error message is from the mail server that is asked to send the mail — it only accepts mail for its own recipients (usually unless the sender authenticates himself somehow).

You may have to authenticate or use another mail server. This depends on the configuration of the mail server you use.

See the documentation about the SMTP backend configuration: https://docs.djangoproject.com/en/dev/topics/email/#smtp-backend

For the big picture, Wikipedia discusses Outgoing Mail servers in great detail:


Leave a comment