SMTP Protocol Event Sink : ISmtpOutCommandSink
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
SMTP Protocol Event Sink : ISmtpOutCommandSink

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





Posted: Thu Sep 01, 2005 4:59 pm    Post subject: SMTP Protocol Event Sink : ISmtpOutCommandSink Reply with quote

Hi All,

I'm trying to write a protocol event sink that will change the sender
address when it bounces of a local SMTP server. I got the event to sink to
trigger but get the message "An SMTP protocol error occurred. The SMTP verb
which caused the error is 'MAIL'. The response from the remote server is
'503 5.5.2 Sender already specified".

The code in 'ISmtpOutCommandSink.OnSmtpOutCommand' method looks as follows:

string command = "mail from: bounce-id=12345@mydomain.com\r\n";
context.SetCommand(command, (uint)command.Length);
context.SetCommandStatus(0);

I registered the sink for the OnMessageStart event with FROM rule.

Thank in advance.

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