[Zope] Solution - use the patch. Re: Zope Mail Host with MS Exchange ?

chas panda@skinnyhippo.com
Wed, 26 Jan 2000 03:33:12 +0800


Hi Sam,


I forgot to thank you for your help (especially in light

of you typing the message twice!) but I was hoping to 

solve the problem first and tried multiple permutations.


As it happens, it was a problem with Zope's sendmail tag -

or perhaps with MS Exchange's acceptance of it. Either way, 

the recent patch by Stephen Pitts has cured the problem ...

and it's easier to add the patch than change the mailserver. 


Thank you again, and David and Rob Page, for helping me 

and again sorry for the late follow up. (I didn't want 

to reply with a pathetic "uh, nope, I'm clueless" at

the time)


chas



>>>>

<excerpt>I typed a long response to the original email, but my browser
crashed before I could push the send button.  Here it goes again. 


I recently had real problems sending mail to aol.com addresses when using
the dtml-sendmail tag.  I could send to postfix, sendmail, and
software.com MTAs no problem, but aol always dropped it on the floor. 
When I turned on logging in my MTA (mail server), it showed the aol
mailserver sending a 250 OK response to the mail sent by the mailhost,
which means that AOL's server has now taken responsibility for the
message.  However, the messages were never arriving.  I finally concluded
that the message must have some funky defect in the headers that was
causing the server to consider the message to be spam, and not deliver
it. 


I wouldn't be surprised if your mails were doing the same thing. 


I finally resolved the problem as follows: 


I stopped using a mailhost, and just use the smtphost modifier in the
sendmail tag. 

I had to use both the mailfrom and mailto modifiers in the sendmail tag. 

I had a To and From line in my headers.  Additionally, since I was
getting the To and From values from dtml variables, I had to make sure
that a new line was inserted after the header 


<color><param>0000,0000,9999</param>To: <<dtml-if var_name><<dtml-var
var_name><<dtml-else>default<</dtml-if></color> 

<color><param>0000,0000,9999</param>From: <<dtml-if var_name><<dtml-var
var_name><<dtml-else>default<</dtml-if></color> 

<color><param>0000,0000,9999</param>Subject: Blah</color> 


<color><param>0000,0000,9999</param>Message Body goes Here</color> 

<color><param>0000,0000,9999</param><</dtml-sendmail></color> 


Generated this: 


<color><param>0000,6666,0000</param>To: Name1 From: Name2 Subject:
Blah</color> 


<color><param>0000,6666,0000</param>Message Body goes Here</color> 


I had to use the following: 


<color><param>0000,0000,9999</param>To: <<dtml-if var_name><<dtml-var
var_name></color> 

<color><param>0000,0000,9999</param><<dtml-else>default</color> 

<color><param>0000,0000,9999</param><</dtml-if></color> 

<color><param>0000,0000,9999</param>From: <<dtml-if var_name><<dtml-var
var_name></color> 

<color><param>0000,0000,9999</param><<dtml-else>default</color> 

<color><param>0000,0000,9999</param><</dtml-if></color> 

<color><param>0000,0000,9999</param>Subject: Blah</color> 


<color><param>0000,0000,9999</param>Mesage body goes here</color> 

<color><param>0000,0000,9999</param><</dtml-sendmail></color> 


in order to generate a message body that looks like: 


<color><param>0000,6666,0000</param>To: Name1</color> 

<color><param>0000,6666,0000</param>From: Name2</color> 

<color><param>0000,6666,0000</param>Subject: Blah</color> 


<color><param>0000,6666,0000</param>Messsage body goes here</color> 


<color><param>cccc,0000,0000</param>It is very important that you include
a blank line after the last header, or else many mailers my reject or
defer your message.</color> 

  


David Salgado wrote: 

<excerpt>Hi Chas 


>I have a client reporting that mail sent from Zope 

>using a MS Exchange box as their Zope Mail Host 

>never arrives. 


Just tried using our Exchange server as the SMTP 

server for a MailHost (which works just fine with the 

other two 'real' SMTP servers I have access to, and 

sure enough, the mail never arrived. 


Looks like a real MS feature -- anyone else? 


BTW, the Exchange server works OK as an SMTP 

host from Outlook Express, which is the only 

'standards-based' mail client I've got on this machine. 


Cheers 


             David 


_______________________________________________ 

Zope maillist  -  Zope@zope.org 

<<http://lists.zope.org/mailman/listinfo/zope>http://lists.zope.org/mailman/listinfo/zope 

**   No cross posts or HTML encoding!  ** 

(Related lists - 

 <<http://lists.zope.org/mailman/listinfo/zope-announce>http://lists.zope.org/mailman/listinfo/zope-announce 

 <<http://lists.zope.org/mailman/listinfo/zope-dev>http://lists.zope.org/mailman/listinfo/zope-dev
)

</excerpt>

</excerpt><<<<<<<<