(Solution) RE: [Zope] Strange MailHost/smtplib problem ...

Jean-Francois.Doyon at CCRS.NRCan.gc.ca Jean-Francois.Doyon at CCRS.NRCan.gc.ca
Tue Mar 23 11:56:01 EST 2004


Heh, I found the problem:

The MailHost instance should not be called "MailHost" ! As soon as I renamed
it, everything started working OK ...

I'll file this as a bug if it's not done already ...

J.F.

-----Original Message-----
From: zope-bounces at zope.org [mailto:zope-bounces at zope.org]On Behalf Of
Jean-Francois.Doyon at CCRS.NRCan.gc.ca
Sent: Tuesday, March 23, 2004 11:17 AM
To: zope at zope.org
Subject: [Zope] Strange MailHost/smtplib problem ...


Hello,

I'm using 2.7/2.3.3 on RH7.3 ... I have a previous version of my site on
2.6.4/2.1.3 on the same server running fine as well.

The MailHost on the old one works fine, using a  DTML document and the
<dtml-sendmail> tag ...

On 2.7 however, I keep getting a "111, Connection Refused", with the EXACT
same setup.

Using tcpdump I've tracked it down to the fact that under 2.7, even though I
have a valid SMTP server and port specified, smtplib seems to insist on
using localhost for the outgoing connection, and for the SMTP server (i.e.
it tries to connect local to local, which isn't at all what I want or
specified).

Under 2.6.4, it works fine, the SMTP packet traffic shows up on the expected
interfaces and the mail gets out fine.

A quick look at the MailHost.py code doesn't bring up any obvious problems
...

Anybody else run into anything like this ?

Jean-François Doyon
Internet Service Development and Systems Support / Développement des
services et soutien de systèmes Internet
GeoAccess Division / Division GéoAccès
Canada Center for Remote Sensing / Centre canadien de télédétection
Natural Resources Canada / Ressources naturelles Canada
http://atlas.gc.ca
Phone: (613) 992-4902
Fax: (613) 947-2410


_______________________________________________
Zope maillist  -  Zope at zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )



More information about the Zope mailing list