I'm trying to request a DSN status when sending emails. I can sucessfully request Read Receipts using:
email.ReturnReceipt = True
But for DSN, It doesn't work. I've read some examples like http://www.chilkatsoft.com/p/p_313.asp , but no sucess.
How could I request the DSN from the server? My server supports DSN of course, no doubt about that.
Can someone help me on how to request DSN, with an working example? I don't see/understand the examples from chilkat webpage :(
Trying 192.168.1.222... Connected to 192.168.1.222. Escape character is '^]'. 220 Email Server ehlo example.com 250-smtp.example.pt 250-PIPELINING 250-SIZE 52428800 250-VRFY 250-ETRN 250-STARTTLS 250-AUTH CRAM-MD5 DIGEST-MD5 LOGIN PLAIN 250-AUTH=CRAM-MD5 DIGEST-MD5 LOGIN PLAIN 250-ENHANCEDSTATUSCODES 250-8BITMIME 250 DSN
Maybe what you are asking about are these MailMan properties: DsnEnvid, DsnNotify, and DsnRet?
These are properties relating to the SMTP DSN service extension found in RFC 3461.
The DsnEnvid property is an arbitrary string that will be used as the ENVID property when sending email. (It may be left unset.)
The DsnNotify property is a string that will be used as the NOTIFY parameter when sending email. (See RFC 3461 for more details. ) This string can be left blank, or can be set to "NEVER", or any combination of a comma-separated list of "SUCCESS", "FAILURE", or "NOTIFY".
The DsnRet property is a string that will be used as the RET parameter when sending email. (See RFC 3461 for more details. ) This string can be left blank, or can be set to "FULL" to receive entire-message DSN notifications, or "HDRS" to receive header-only DSN notifications.
To request DSN is to simply set these property values prior to sending.
answered Aug 22 '13 at 14:39
Thanks for your reply, well, I just was looking in the wrong place, sorry. But now, I may be doing something else wrong, I've set:
mailman.DsnNotify = "SUCESS;FAILURE;NOTIFY" mailman.DsnRet = "FULL"
What am I doing wrong?
answered Aug 22 '13 at 16:15
Ops you're right, but with comma separated, I have the same problem, maybe the SMTP doesn't support it no?
mailman.DsnNotify = "SUCCESS" mailman.DsnRet = "FULL"
I have DSN request working correctly.
answered Aug 22 '13 at 16:44
I did some investigation on my postfix configuration and SUCCESS it's not configured to be accept, only NOTIFY.
So I have DSN working, thanks for your help!
answered Aug 23 '13 at 04:11