Hi, Florian

Actually, I'm afraid you haven't got a change to look under a cover
yet. Use The Source, Luke!

            self.connection = smtplib.SMTP(self.host, self.port,
                                           local_hostname=DNS_NAME.get_fqdn())

where
        self.host = host or settings.EMAIL_HOST
and
        self.port = port or settings.EMAIL_PORT

try to use raw smtplib.SMTP first, and tell what happened.
if it doesn't work as mail_admins does, problem is with your email
server config or with socket.getaddrinfo deeply in smtplib.py, if it
works -- you haven't set EMAIL_HOST (misspelled?).

On Thu, May 15, 2008 at 1:00 AM, Florian Lindner <[EMAIL PROTECTED]> wrote:
>
> Hello,
>
> I'm experiencing some odd behavior with SMTP connections and the
> functions to send mail.
>
> The relevant settings in my settings.py:
>
> ADMINS = (
>    ('Florian Lindner', '[EMAIL PROTECTED]'),
> )
> EMAIL_HOST = "xgm.de"
> EMAIL_HOST_USER = "[EMAIL PROTECTED]"
> EMAIL_HOST_PASSWORD = "xxx"
>
> I use the mail_admin function to send mail:
>
> mail_admins("Neues Kommentar", message)
>
> Using it this way produces an SMTPAuthenticationError at /blog/
> previewComment/(535, '5.7.0 authentication failed').
>
> Since the mail server xgm.de is under my control I scanned the logs
> and found no sign that my localhost even tried to connect. Using
> tcpdump revealed that Django tried to connect to mail.dnsteam.de:SMTP
> which is the second MX of xgm.de.
>
> - I would expect that EMAIL_HOST is being used as smarthost. This way
> Django should not even care about MX or something like that. I just
> logs in using EMAIL_HOST_USER / _PASSWORD and sends the mail.
>
> - Even if it cared about MX it would have used the wrong one, because
> mail.dnsteam is the one with the less priority.
>
> Am I getting something completely wrong or is this a bug?
>
> Florian
>
> >
>



-- 
Best regards, Yuri V. Baburov, ICQ# 99934676, Skype: yuri.baburov,
MSN: [EMAIL PROTECTED]

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To post to this group, send email to django-developers@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to