Hey there! I'm getting a quite weird smtp error when sending mail. Here's a traceback:
Traceback (most recent call last): File "/usr/lib/python2.5/site-packages/django/core/handlers/base.py" in get_response 77. response = callback(request, *callback_args, **callback_kwargs) File "/var/www/django/satchmo/accounts/views.py" in register 100. send_welcome_email(email, first_name, last_name) File "/var/www/django/satchmo/accounts/views.py" in send_welcome_email 62. send_mail(subject, t.render(c), shop_email, [email], fail_silently=False) File "/usr/lib/python2.5/site-packages/django/core/mail.py" in send_mail 325. return EmailMessage(subject, message, from_email, recipient_list, connection=connection).send() File "/usr/lib/python2.5/site-packages/django/core/mail.py" in send 255. return self.get_connection(fail_silently).send_messages([self]) File "/usr/lib/python2.5/site-packages/django/core/mail.py" in send_messages 163. new_conn_created = self.open() File "/usr/lib/python2.5/site-packages/django/core/mail.py" in open 128. self.connection = smtplib.SMTP(self.host, self.port) SMTPServerDisconnected at /accounts/register/ Connection unexpectedly closed So, first thing, I got a shell and telnet'ed the smtp server. Here's the screenplay: [EMAIL PROTECTED]:~# telnet localhost 25 Trying 127.0.0.1... Connected to localhost. Escape character is '^]'. 220 webdevrack.securitylan.int ESMTP Postfix (Ubuntu) helo localhost 250 webdevrack.securitylan.int mail from: [EMAIL PROTECTED] 250 2.1.0 Ok rcpt to: [EMAIL PROTECTED] 250 2.1.5 Ok abc 502 5.5.2 Error: command not recognized data 354 End data with <CR><LF>.<CR><LF> abc abc abc abc . 250 2.0.0 Ok: queued as 42E9D16403D Seconds later, the mail was successfully delivered. Here's an excerpt from mail.log: Jul 11 12:58:40 webdevrack postfix/smtpd[5746]: connect from localhost[127.0.0.1] Jul 11 12:59:10 webdevrack postfix/smtpd[5746]: 42E9D16403D: client=localhost[127.0.0.1] Jul 11 12:59:30 webdevrack postfix/cleanup[5749]: 42E9D16403D: message-id=<[EMAIL PROTECTED]> Jul 11 12:59:30 webdevrack postfix/qmgr[5714]: 42E9D16403D: from=<[EMAIL PROTECTED]>, size=388, nrcpt=1 (queue active) Jul 11 12:59:32 webdevrack postfix/smtp[5752]: 42E9D16403D: to=<[EMAIL PROTECTED]>, relay=mail.pixware.org[64.13.227.76]:25, delay=29, delays=27/0.01/1.4/1, dsn=2.0.0, status=sent (250 ok 1184151487 qp 32211) Jul 11 12:59:32 webdevrack postfix/qmgr[5714]: 42E9D16403D: removed Since the simmulation works fine, I don't know where the problem might be. I've given python the same credentials as I used on the command line, though localhost is on mynetworks, and thus doesn't require authentication. Any clues? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@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-users?hl=en -~----------~----~----~----~------~----~------~--~---