How to generate an NDR from a protocol sink ?
Exchange Server Forum Index Exchange Server
Discussion forums for Microsoft Exchange Server users.
Microsoft Outlook
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web ExchangeServerHelp.com
How to generate an NDR from a protocol sink ?

 
Post new topic   Reply to topic    Exchange Server Forum Index -> Development
Author Message
Jorge Aguiar
Guest





Posted: Mon Jan 31, 2005 8:10 am    Post subject: How to generate an NDR from a protocol sink ? Reply with quote

Hi all,

I've written a protocol sink that fires after the SMTP DATA command is
completed, in order to perform content filtering.

There are some cases when I must accept the DATA command without errors, but
need to send an NDR to some of the message's recipients.

Can anyone please tell me, what is the correct way to tell the SMTP service
that some (not all) of the recipients are to be rejected and sent NDRs ?
I've tried this:

IMailMsgRecipientsBase->PutDWORD( dwRcptIdx, IMMPID_RP_RECIPIENT_FLAGS,
RP_FAILED | RP_DSN_NOTIFY_FAILURE);
IMailMsgRecipientsBase->PutStringA( dwRcptIdx, IMMPID_RP_SMTP_STATUS_STRING,
"550 5.7.1 Message rejected due to objectionable content");

Unfortunately, it only works sometimes (not always).

Any hints ?
Thanks a lot
Jorge

Back to top
 
Post new topic   Reply to topic    Exchange Server Forum Index -> Development All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




Windows Server Dedicated Servers
Contact Us
New Topics Powered by phpBB