<div class="gmail_quote">On Tue, Feb 23, 2010 at 4:53 PM, Jonathan Gardner <span dir="ltr"><<a href="mailto:jgardner@jonathangardner.net" target="_blank">jgardner@jonathangardner.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div><div></div><div>On Tue, Feb 23, 2010 at 8:47 AM, Victor Subervi <<a href="mailto:victorsubervi@gmail.com" target="_blank">victorsubervi@gmail.com</a>> wrote:<br>
> Hi;<br>
> I think the last main thing I have to do on my server is get a running email<br>
> server up. Now that I've nuked sendmail and given up on postfix, I'm back to<br>
> trying to get qmail up and running again. Of course, there are no active<br>
> discussion lists for *any* email server, so I have to turn here for help.<br>
> While running a script that worked perfectly well on another server to send<br>
> an email, I get the following error:<br>
> A problem occurred in a Python script. Here is the sequence of function<br>
> calls leading up to the error, in the order they occurred.<br>
> A problem occurred in a Python script. Here is the sequence of function<br>
> calls leading up to the error, in the order they occurred.<br>
>  /var/www/html/<a href="http://globalsolutionsgroup.vi/simplemail/mail2.py" target="_blank">globalsolutionsgroup.vi/simplemail/mail2.py</a><br>
>    52 </head><br>
>    53 <body>'''<br>
>    54 my_mail()<br>
>    55 print '''<br>
>    56 </body><br>
> my_mail = <function my_mail><br>
>  /var/www/html/<a href="http://globalsolutionsgroup.vi/simplemail/mail2.py" target="_blank">globalsolutionsgroup.vi/simplemail/mail2.py</a> in my_mail()<br>
>    33       to_address = ourEmail1,<br>
>    34       subject = subject,<br>
>    35       message = message<br>
>    36   ).send()<br>
>    37   Email(<br>
> message = 'Name: beno -\nMessage: test'<br>
>  /var/www/html/<a href="http://globalsolutionsgroup.vi/simplemail/simplemail.py" target="_blank">globalsolutionsgroup.vi/simplemail/simplemail.py</a> in<br>
> send(self=<simplemail.Email object>)<br>
>   344         smtp = smtplib.SMTP()<br>
>   345         if self.smtp_server:<br>
>   346             smtp.connect(self.smtp_server)<br>
>   347         else:<br>
>   348             smtp.connect()<br>
> smtp = <smtplib.SMTP instance>, smtp.connect = <bound method SMTP.connect of<br>
> <smtplib.SMTP instance>>, self = <simplemail.Email object>, self.smtp_server<br>
> = 'localhost'<br>
>  /usr/lib64/python2.4/smtplib.py in connect(self=<smtplib.SMTP instance>,<br>
> host='localhost', port=25)<br>
>   305         if not self.sock:<br>
>   306             raise socket.error, msg<br>
>   307         (code, msg) = self.getreply()<br>
>   308         if self.debuglevel > 0: print>>stderr, "connect:", msg<br>
>   309         return (code, msg)<br>
> code undefined, msg = 'getaddrinfo returns an empty list', self =<br>
> <smtplib.SMTP instance>, self.getreply = <bound method SMTP.getreply of<br>
> <smtplib.SMTP instance>><br>
>  /usr/lib64/python2.4/smtplib.py in getreply(self=<smtplib.SMTP instance>)<br>
>   349             if line == '':<br>
>   350                 self.close()<br>
>   351                 raise SMTPServerDisconnected("Connection unexpectedly<br>
> closed")<br>
>   352             if self.debuglevel > 0: print>>stderr, 'reply:',<br>
> repr(line)<br>
>   353             resp.append(line[4:].strip())<br>
> global SMTPServerDisconnected = <class smtplib.SMTPServerDisconnected><br>
> SMTPServerDisconnected: Connection unexpectedly closed<br>
>       args = ('Connection unexpectedly closed',)<br>
> I cannot find the qmail logs. I assumed they'd be in either<br>
> /var/qmail/supervise/qmail-send<br>
> or<br>
> /var/qmail/supervise/qmail-smtpd<br>
> but I find no logs there.<br>
><br>
> [SSH] Protocol Version 2 (OpenSSH_4.3)<br>
> [SSH] Cipher: aes128-cbc<br>
> Logged in (password)<br>
> Last login: Tue Feb 23 05:24:00 2010 from 66.248.168.67<br>
> [beno@13gems ~]$ su<br>
> Password:<br>
> [root@13gems beno]# man netstat<br>
> [root@13gems beno]# netstat<br>
> Active Internet connections (w/o servers)<br>
> Proto Recv-Q Send-Q Local Address               Foreign Address<br>
> State<br>
> getnameinfo failed<br>
> tcp        0    268 nrelectric.com:ssh          [UNKNOWN]:61912<br>
> ESTABLISHED<br>
> Active UNIX domain sockets (w/o servers)<br>
> Proto RefCnt Flags       Type       State         I-Node Path<br>
> unix  7      [ ]         DGRAM                    10842  /dev/log<br>
> unix  2      [ ]         DGRAM                    10370<br>
>  @/org/kernel/udev/udevd<br>
> unix  2      [ ]         DGRAM                    6077731<br>
> unix  3      [ ]         STREAM     CONNECTED     6077679<br>
> unix  3      [ ]         STREAM     CONNECTED     6077678<br>
> unix  2      [ ]         DGRAM                    6077675<br>
> unix  2      [ ]         DGRAM                    11556<br>
> unix  2      [ ]         DGRAM                    11511<br>
> unix  2      [ ]         DGRAM                    10990<br>
> [root@13gems beno]#<br>
><br>
> How do I trouble-shoot this?<br>
<br>
</div></div>Try connecting to the port that is supposed to accept mail messages<br>
via telnet and issue a few SMTP commands.<br></blockquote><div><br></div><div>Oops. I just realized I posted this twice to the same forum. My bad. I have advanced on this somewhat. I have gotten email from my server, so I know that smtp is in fact working. But I'm still getting this error. What do?</div>
<div>TIA,</div><div>beno</div></div>