CDO, Delivery Status Notification and a read-receipt

Use this forum if you have installed hMailServer and want to ask a question related to a production release of hMailServer. Before posting, please read the troubleshooting guide. A large part of all reported issues are already described in detail here.
a.cirri
New user
New user
Posts: 10
Joined: 2007-05-03 17:18

CDO, Delivery Status Notification and a read-receipt

Postby a.cirri » 2007-05-15 17:05

I use CDO to send message directly by vbs and I need to have a read-receipt.

My configuration:
- Hmailserver 4.4 B270
- Win2K Server
- I have created two applicable ip address ranges:
* LAN - 192.168.15.1 - 192.168.15.255 priority 15, No Requires Auth, from local to local, from local to external
* Internet - 0.0.0.0 - 255.255.255.255 priority 10, No Requires Auth, from external to local

Microsoft Tech Support suggest the following script in order to send a message with a request for a Delivery Status Notification and a read-receipt (http://support.microsoft.com/?scid=kb%3 ... 9&x=9&y=12).

****************************************************
'Send by using the port on an SMTP server.
Dim iMsg
Dim iConf
Dim Flds
Dim strHTML

set imsg = createobject("cdo.message")
set iconf = createobject("cdo.configuration")

Set Flds = iConf.Fields
With Flds
.Item("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2
.Item("http://schemas.microsoft.com/cdo/configuration/smtpserver") = "smtpSERVER"
.Update
End With

With iMsg
Set .Configuration = iConf
.To = "valid e-mail address"
.From = "valid e-mail address"
.Subject = "BLA BLA BLA"
.TextBody = "PING PONG"
.fields("urn:schemas:mailheader:disposition-notification-to") = "valid e-mail address"
.fields("urn:schemas:mailheader:return-receipt-to") = "valid e-mail address"

' Set DSN options.
' Name Value Description
' cdoDSNDefault 0 No DSN commands are issued.
' cdoDSNNever 1 No DSN commands are issued.
' cdoDSNFailure 2 Return a DSN if delivery fails.
' cdoDSNSuccess 4 Return a DSN if delivery succeeds.
' cdoDSNDelay 8 Return a DSN if delivery is delayed.
' cdoDSNSuccessFailOrDelay 14 Return a DSN if delivery succeeds, fails, or is delayed.

.DSNOptions = cdoDSNSuccessFailOrDelay
.DSNOptions = 14
.fields.update
.Send
End With
****************************************************

When I send something from 192.168.15.x to an external or local e-mail account, I get the following in the hmailserver log:

"SMTPD" 3260 1473 "2007-05-15 16:39:44.137" "192.168.15.10" "SENT: 220 mail.fonderiepalmieri.it ESMTP"
"SMTPD" 3260 1473 "2007-05-15 16:39:44.137" "192.168.15.10" "RECEIVED: EHLO acirri"
"SMTPD" 3260 1473 "2007-05-15 16:39:44.137" "192.168.15.10" "SENT: 250-hmailserver[nl]250-SIZE[nl]250 AUTH LOGIN"
"SMTPD" 3260 1473 "2007-05-15 16:39:44.137" "192.168.15.10" "RECEIVED: MAIL FROM: <a.cirri@alle-gra.it>"
"SMTPD" 3260 1473 "2007-05-15 16:39:44.137" "192.168.15.10" "SENT: 250 OK"

...and here end!


Without the option involved in DSN and read-receipt, all work fine and I have the following log:

"SMTPD" 3260 1512 "2007-05-15 16:43:03.195" "192.168.15.10" "SENT: 220 mail.fonderiepalmieri.it ESMTP"
"SMTPD" 3260 1512 "2007-05-15 16:43:03.195" "192.168.15.10" "RECEIVED: HELO acirri"
"SMTPD" 3260 1512 "2007-05-15 16:43:03.195" "192.168.15.10" "SENT: 250 Hello."
"SMTPD" 3260 1512 "2007-05-15 16:43:03.195" "192.168.15.10" "RECEIVED: MAIL FROM: <a.cirri@alle-gra.it>"
"SMTPD" 3260 1512 "2007-05-15 16:43:03.195" "192.168.15.10" "SENT: 250 OK"
"SMTPD" 3260 1512 "2007-05-15 16:43:03.195" "192.168.15.10" "RECEIVED: RCPT TO: <ascaro01@yahoo.it>"
"SMTPD" 3260 1512 "2007-05-15 16:43:03.195" "192.168.15.10" "SENT: 250 OK"
"SMTPD" 3260 1512 "2007-05-15 16:43:03.195" "192.168.15.10" "RECEIVED: DATA"
"SMTPD" 3260 1512 "2007-05-15 16:43:03.195" "192.168.15.10" "SENT: 354 OK, send."
"SMTPD" 3260 1512 "2007-05-15 16:43:03.367" "192.168.15.10" "SENT: 250 Queued (0.172 seconds)"
"SMTPD" 3260 1512 "2007-05-15 16:43:03.367" "192.168.15.10" "RECEIVED: QUIT"
"SMTPD" 3260 1512 "2007-05-15 16:43:03.367" "192.168.15.10" "SENT: 221 goodbye"

Any idea?

User avatar
martin
Developer
Developer
Posts: 6712
Joined: 2003-11-21 01:09
Location: Sweden
Contact:

Postby martin » 2007-05-15 17:08

The sender of that email doesn't even try to deliver the email. It just tells hMailServer who the email is being sent from, and disconnects without telling hMailServer who the recipients are.

You probably need to troubleshoot the software which sends the message..

a.cirri
New user
New user
Posts: 10
Joined: 2007-05-03 17:18

Postby a.cirri » 2007-05-16 10:29

Dear Martin,

this morning I made some other test and I believe that there is some problem between CDO and HmailSever.

First of all, I tried the some vbs script (send email with request that a ‘return receipt’ be sent back) using as SMTP server Microsoft Exchange 2000: it works perfect.

Second: when I send mail with return receipt request Hmailserver writes: 250-hmailserver[nl]250-SIZE[nl]250 AUTH;
if I send mail without return receipt request, Hmailserver doesn't ask anything about AUTH: it writes only 250 Hello.

A.

word
New user
New user
Posts: 1
Joined: 2009-05-04 20:27

Re: CDO, Delivery Status Notification and a read-receipt

Postby word » 2009-05-04 20:33

Hello,
Your post is really old but did you happen to remember what was the problem? I'm seeing the same issue...
Thanks,


Return to “General discussions”



Who is online

Users browsing this forum: No registered users and 1 guest