Home
%3CLINGO-SUB%20id%3D%22lingo-sub-604365%22%20slang%3D%22en-US%22%3ESpeak%20SMTP%20like%20a%20native%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-604365%22%20slang%3D%22en-US%22%3E%3CP%3E%3C%2FP%3E%3CP%20class%3D%22MsoNormal%22%3E%3CSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CFONT%20face%3D%22Verdana%22%20size%3D%222%22%3E%3C%2FFONT%3E%3C%2FP%3E%3CP%3E%3C%2FP%3E%0A%3CP%20class%3D%22MsoNormal%22%3E%3CSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CFONT%20face%3D%22Verdana%22%20size%3D%222%22%3E%3C%2FFONT%3E%3C%2FP%3E%3CP%3E%3C%2FP%3E%0A%3CP%20class%3D%22MsoNormal%22%3E%3CSPAN%3EIf%20you%20are%20writing%20an%20SMTP%20agent%2C%20you%20might%20find%20it%20instructive%20to%20learn%20to%20speak%20SMTP%20yourself%2C%20both%20to%20aid%20debugging%20and%20to%20get%20a%20feel%20for%20what%20is%20happening%20%22under%20the%20hood%22%20when%20Exchange%20receives%20a%20message%20from%20the%20internet.%3CSPAN%3E%26nbsp%3B%20%3C%2FSPAN%3EThis%20is%20a%20lot%20easier%20than%20it%20might%20sound.%3CSPAN%3E%26nbsp%3B%20%3C%2FSPAN%3EOpen%20the%20Run%20dialog%20box%20(press%20Window%20%2B%20R)%20and%20enter%20%22telnet%20localhost%20smtp%22%20(or%20substitute%20the%20name%20of%20your%20Gateway%20server%20in%20place%20of%20localhost).%3CSPAN%3E%26nbsp%3B%20%3C%2FSPAN%3EThis%20will%20open%20a%20window%20where%20you%20can%20talk%20with%20the%20server.%3CSPAN%3E%26nbsp%3B%20%3C%2FSPAN%3EThe%20server%20will%20begin%20the%20conversation%20by%20sending%20a%20banner%2C%20such%20as%3A%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3E%3C%2FP%3E%0A%3CP%20class%3D%22MsoNormal%22%3E%3CSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3C%2FP%3E%0A%3CP%20class%3D%22MsoNormal%22%3E%3CSPAN%3E%3CSTRONG%3E220%20mail.contoso.com%20ready%20at%20Thu%2C%2023%20Feb%202006%2017%3A46%3A23%20-0800%3C%2FSTRONG%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3E%3C%2FP%3E%0A%3CP%20class%3D%22MsoNormal%22%3E%3CSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3C%2FP%3E%0A%3CP%20class%3D%22MsoNormal%22%3E%3CSPAN%3EYou%20may%20continue%20the%20conversation%20by%20entering%20the%20following%20commands%2C%20one%20line%20at%20a%20time.%3CSPAN%3E%26nbsp%3B%20%3C%2FSPAN%3ENote%20that%20there%20is%20a%20blank%20line%20in%20the%20middle%20-%20it's%20important.%3CSPAN%3E%26nbsp%3B%20%3C%2FSPAN%3EJust%20press%20enter%20to%20send%20the%20blank%20line%3A%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3E%3C%2FP%3E%0A%3CP%20class%3D%22MsoNormal%22%3E%3CSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3C%2FP%3E%0A%3CP%20class%3D%22MsoNormal%22%3E%3CSPAN%3E%3CSTRONG%3Eehlo%20console%3C%2FSTRONG%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3E%3C%2FP%3E%0A%3CP%20class%3D%22MsoNormal%22%3E%3CSPAN%3E%3CSTRONG%3Email%20from%3A%20sender%40contoso.com%3C%2FSTRONG%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3E%3C%2FP%3E%0A%3CP%20class%3D%22MsoNormal%22%3E%3CSPAN%3E%3CSTRONG%3Ercpt%20to%3A%20recipient%40contoso.com%3C%2FSTRONG%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3E%3C%2FP%3E%0A%3CP%20class%3D%22MsoNormal%22%3E%3CSPAN%3E%3CSTRONG%3Edata%3C%2FSTRONG%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3E%3C%2FP%3E%0A%3CP%20class%3D%22MsoNormal%22%3E%3CSPAN%3E%3CSTRONG%3ETo%3A%20recipient%40contoso.com%3C%2FSTRONG%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3E%3C%2FP%3E%0A%3CP%20class%3D%22MsoNormal%22%3E%3CSPAN%3E%3CSTRONG%3EFrom%3A%20sender%40contoso.com%3C%2FSTRONG%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3E%3C%2FP%3E%0A%3CP%20class%3D%22MsoNormal%22%3E%3CSPAN%3E%3CSTRONG%3ESubject%3A%20Test%20Message%3C%2FSTRONG%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3E%3C%2FP%3E%0A%3CP%20class%3D%22MsoNormal%22%3E%3CSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSTRONG%3E%26nbsp%3B%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E%3C%2FP%3E%0A%3CP%20class%3D%22MsoNormal%22%3E%3CSPAN%3E%3CSTRONG%3EThis%20a%20test%20message.%3C%2FSTRONG%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3E%3C%2FP%3E%0A%3CP%20class%3D%22MsoNormal%22%3E%3CSPAN%3E%3CSTRONG%3E.%3C%2FSTRONG%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3E%3C%2FP%3E%0A%3CP%20class%3D%22MsoNormal%22%3E%3CSPAN%3E%3CSTRONG%3Equit%3C%2FSTRONG%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3E%3C%2FP%3E%0A%3CP%20class%3D%22MsoNormal%22%3E%3CSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3C%2FP%3E%0A%3CP%20class%3D%22MsoNormal%22%3E%3CSPAN%3EThe%20server%20will%20respond%20with%20a%20simple%20text%20message%20after%20the%20first%20three%20commands.%3CSPAN%3E%26nbsp%3B%20%3C%2FSPAN%3EAfter%20the%20%22data%22%20command%2C%20the%20server%20will%20just%20listen%20patiently%20until%20you%20enter%20the%20%22.%22%20on%20a%20line%20by%20itself.%3CSPAN%3E%26nbsp%3B%20%3C%2FSPAN%3EWhen%20you%20initially%20connect%20to%20the%20server%2C%20your%20agent%20will%20be%20created%20and%20the%20%3C%2FSPAN%3E%3CFONT%20face%3D%22Verdana%22%3E%3CSPAN%3EOnConnect%3C%2FSPAN%3E%3CSPAN%3E%20event%20will%20be%20fired.%3CSPAN%3E%26nbsp%3B%20%3C%2FSPAN%3EAdditional%20events%20are%20fired%20are%20follows%3A%3C%2FSPAN%3E%3C%2FFONT%3E%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3E%3C%2FP%3E%0A%3CP%20class%3D%22MsoNormal%22%3E%3CSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3C%2FP%3E%0A%3CP%20class%3D%22MsoNormal%22%3E%3CSPAN%3E%3CSTRONG%3Eehlo%20console%3C%2FSTRONG%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3E%3C%2FP%3E%0A%3CP%20class%3D%22MsoNormal%22%3E%3CSPAN%3EThis%20fires%20%3C%2FSPAN%3E%3CFONT%20face%3D%22Verdana%22%3E%3CSPAN%3EOnEhloCommand%3C%2FSPAN%3E%3CSPAN%3E%3C%2FSPAN%3E%3C%2FFONT%3E%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3E%3C%2FP%3E%0A%3CP%20class%3D%22MsoNormal%22%3E%3CSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSTRONG%3E%26nbsp%3B%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E%3C%2FP%3E%0A%3CP%20class%3D%22MsoNormal%22%3E%3CSPAN%3E%3CSTRONG%3Email%20from%3A%20sender%40contoso.com%3C%2FSTRONG%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3E%3C%2FP%3E%0A%3CP%20class%3D%22MsoNormal%22%3E%3CSPAN%3EThis%20fires%20%3C%2FSPAN%3E%3CSPAN%3E%3CFONT%20size%3D%222%22%3E%3CFONT%20face%3D%22Courier%20New%22%3EOnMailCommand%3C%2FFONT%3E%3C%2FFONT%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3E%3C%2FP%3E%0A%3CP%20class%3D%22MsoNormal%22%3E%3CSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSTRONG%3E%26nbsp%3B%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E%3C%2FP%3E%0A%3CP%20class%3D%22MsoNormal%22%3E%3CSPAN%3E%3CSTRONG%3Ercpt%20to%3A%20recipient%40contoso.com%3C%2FSTRONG%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3E%3C%2FP%3E%0A%3CP%20class%3D%22MsoNormal%22%3E%3CSPAN%3EThis%20fires%20an%20%3C%2FSPAN%3E%3CFONT%20face%3D%22Verdana%22%3E%3CSPAN%3EOnRcptCommand%3C%2FSPAN%3E%3CSPAN%3E.%3CSPAN%3E%26nbsp%3B%20%3C%2FSPAN%3EYou%20can%20repeat%20this%20command%20as%20many%20times%20as%20you%20want%2C%20specifying%20a%20different%20email%20address%20each%20time.%3C%2FSPAN%3E%3C%2FFONT%3E%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3E%3C%2FP%3E%0A%3CP%20class%3D%22MsoNormal%22%3E%3CSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSTRONG%3E%26nbsp%3B%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E%3C%2FP%3E%0A%3CP%20class%3D%22MsoNormal%22%3E%3CSPAN%3E%3CSTRONG%3Edata%3C%2FSTRONG%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3E%3C%2FP%3E%0A%3CP%20class%3D%22MsoNormal%22%3E%3CSPAN%3EThis%20fires%20%3C%2FSPAN%3E%3CFONT%20face%3D%22Verdana%22%3E%3CSPAN%3EOnDataCommand%3C%2FSPAN%3E%3CSPAN%3E.%3CSPAN%3E%26nbsp%3B%20%3C%2FSPAN%3EThe%20next%20three%20lines%20are%20%3CI%3Enot%3C%2FI%3E%20SMTP%20commands%2C%20they%20are%20the%20headers%20of%20the%20message%20that%20you%20are%20sending.%3C%2FSPAN%3E%3C%2FFONT%3E%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3E%3C%2FP%3E%0A%3CP%20class%3D%22MsoNormal%22%3E%3CSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSTRONG%3E%26nbsp%3B%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E%3C%2FP%3E%0A%3CP%20class%3D%22MsoNormal%22%3E%3CSPAN%3E%3CSTRONG%3E%3CFONT%20size%3D%222%22%3E%3CFONT%20face%3D%22Verdana%22%3ETo%3A%20recipient%40contoso.com%3C%2FFONT%3E%3C%2FFONT%3E%3C%2FSTRONG%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3E%3C%2FP%3E%0A%3CP%20class%3D%22MsoNormal%22%3E%3CSPAN%3E%3CSTRONG%3EFrom%3A%20sender%40contoso.com%3C%2FSTRONG%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3E%3C%2FP%3E%0A%3CP%20class%3D%22MsoNormal%22%3E%3CSPAN%3E%3CSTRONG%3ESubject%3A%20Test%20Message%3C%2FSTRONG%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3E%3C%2FP%3E%0A%3CP%20class%3D%22MsoNormal%22%3E%3CSPAN%3E%3CSTRONG%3E(blank%20line)%3C%2FSTRONG%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3E%3C%2FP%3E%0A%3CP%20class%3D%22MsoNormal%22%3E%3CSPAN%3EThe%20blank%20line%20is%20important%2C%20it%20separates%20the%20headers%20from%20the%20content%20of%20the%20message.%3CSPAN%3E%26nbsp%3B%20%3C%2FSPAN%3EWhen%20the%20blank%20line%20is%20received%2C%20%3C%2FSPAN%3E%3CFONT%20face%3D%22Verdana%22%3E%3CSPAN%3EOnEndOfHeaders%3C%2FSPAN%3E%3CSPAN%3E%20fires.%3C%2FSPAN%3E%3C%2FFONT%3E%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3E%3C%2FP%3E%0A%3CP%20class%3D%22MsoNormal%22%3E%3CSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3C%2FP%3E%0A%3CP%20class%3D%22MsoNormal%22%3E%3CSPAN%3E%3CSTRONG%3EThis%20a%20test%20message.%3C%2FSTRONG%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3E%3C%2FP%3E%0A%3CP%20class%3D%22MsoNormal%22%3E%3CSPAN%3E%3CSTRONG%3E.%3C%2FSTRONG%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3E%3C%2FP%3E%0A%3CP%20class%3D%22MsoNormal%22%3E%3CSPAN%3EThe%20%22.%22%20on%20a%20line%20by%20itself%20indicates%20the%20end%20of%20the%20message%2C%20and%20this%20is%20when%20%3C%2FSPAN%3E%3CFONT%20face%3D%22Verdana%22%3E%3CSPAN%3EOnEndOfData%3C%2FSPAN%3E%3CSPAN%3E%20fires.%3C%2FSPAN%3E%3C%2FFONT%3E%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3E%3C%2FP%3E%0A%3CP%20class%3D%22MsoNormal%22%3E%3CSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSTRONG%3E%26nbsp%3B%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E%3C%2FP%3E%0A%3CP%20class%3D%22MsoNormal%22%3E%3CSPAN%3E%3CSTRONG%3Equit%3C%2FSTRONG%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3E%3C%2FP%3E%0A%3CP%20class%3D%22MsoNormal%22%3E%3CSPAN%3EThis%20is%20the%20polite%20way%20to%20end%20the%20conversation.%20%3C%2FSPAN%3E%3CFONT%20face%3D%22Verdana%22%3E%3CSPAN%3EOnDisconnect%3C%2FSPAN%3E%3CSPAN%3E%20will%20fire%20at%20this%20point%2C%20but%20it%20will%20also%20fire%20if%20you%20end%20the%20connection%20impolitely%20(for%20example%20by%20closing%20the%20window).%3C%2FSPAN%3E%3C%2FFONT%3E%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3E%3C%2FP%3E%0A%3CP%20class%3D%22MsoNormal%22%3E%3CSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3C%2FP%3E%0A%3CP%20class%3D%22MsoNormal%22%3E%3CSPAN%3EYou%20can%20also%20copy%2Fpaste%20the%20whole%20batch%20of%20commands%20-%20I%20put%20them%20in%20a%20text%20file%20so%20I%20can%20replay%20an%20entire%20SMTP%20conversation%20quickly%20using%20only%20notepad%20and%20telnet.%3CSPAN%3E%26nbsp%3B%20%3C%2FSPAN%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3EThis%20can%20be%20really%20handy%20for%20testing.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3E%3C%2FP%3E%0A%3CP%20class%3D%22MsoNormal%22%3E%3CSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3C%2FP%3E%0A%3CP%20class%3D%22MsoNormal%22%3E%3CSPAN%3E-%20%3CSPAN%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Farticles%2F427899.aspx%22%20target%3D%22_blank%22%3E%3CFONT%20color%3D%22%230000ff%22%3ENate%20Waddoups%3C%2FFONT%3E%3C%2FA%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E

If you are writing an SMTP agent, you might find it instructive to learn to speak SMTP yourself, both to aid debugging and to get a feel for what is happening "under the hood" when Exchange receives a message from the internet.  This is a lot easier than it might sound.  Open the Run dialog box (press Window + R) and enter "telnet localhost smtp" (or substitute the name of your Gateway server in place of localhost).  This will open a window where you can talk with the server.  The server will begin the conversation by sending a banner, such as:

 

220 mail.contoso.com ready at Thu, 23 Feb 2006 17:46:23 -0800

 

You may continue the conversation by entering the following commands, one line at a time.  Note that there is a blank line in the middle - it's important.  Just press enter to send the blank line:

 

ehlo console

mail from: sender@contoso.com

rcpt to: recipient@contoso.com

data

To: recipient@contoso.com

From: sender@contoso.com

Subject: Test Message

 

This a test message.

.

quit

 

The server will respond with a simple text message after the first three commands.  After the "data" command, the server will just listen patiently until you enter the "." on a line by itself.  When you initially connect to the server, your agent will be created and the OnConnect event will be fired.  Additional events are fired are follows:

 

ehlo console

This fires OnEhloCommand

 

mail from: sender@contoso.com

This fires OnMailCommand

 

rcpt to: recipient@contoso.com

This fires an OnRcptCommand.  You can repeat this command as many times as you want, specifying a different email address each time.

 

data

This fires OnDataCommand.  The next three lines are not SMTP commands, they are the headers of the message that you are sending.

 

To: recipient@contoso.com

From: sender@contoso.com

Subject: Test Message

(blank line)

The blank line is important, it separates the headers from the content of the message.  When the blank line is received, OnEndOfHeaders fires.

 

This a test message.

.

The "." on a line by itself indicates the end of the message, and this is when OnEndOfData fires.

 

quit

This is the polite way to end the conversation. OnDisconnect will fire at this point, but it will also fire if you end the connection impolitely (for example by closing the window).

 

You can also copy/paste the whole batch of commands - I put them in a text file so I can replay an entire SMTP conversation quickly using only notepad and telnet.   This can be really handy for testing.

 

- Nate Waddoups

9 Comments
Not applicable
A dinner before you take me home might have been more appropriate. How about a little background such as "Why agents are helpfull" "What they are replacing from the Ex2003" and most importantly of all "Some real world examples that show why they're so important"
Not applicable
It's worth noting that a lot of other e-mail servers would not be happy if you cut and pasted all those commands in one go - technically you need to wait for responses to each command before you send the next.
Not applicable
Many SMTP systems support Pipelining (sending multiple commands without having to wait for a response after each).  Please refer to RFC 2920 for more information.
Not applicable
I thin you forgot the brackets:

ehlo console
mail from: <sender@contoso.com>
rcpt to: <recipient@contoso.com>

Cheers!
Daniel
Not applicable
Some SMTP servers require the < and > brackets. Exchange is not one of them. At least Exchange 5.5, 2000, and 2003.
Not applicable
When I try the Mail from command
I get 530 5.7.0 client was not authenticated
I've turned all authenticated mechanisms for my default receive connector off , but I still get this error...

any ideas?
Not applicable
I get an error after specifying the sender:
550 5.7.1. Client does not have permissions to send as this sender

any suggestions?
Not applicable
Filip, Juergen,

If you are working on a private network, you will probably find it helpful to disable the client security checks as follows:  Open the Exchange management console, select the Hub or Edge server in question, double-click the default receive connector, select the Authentication tab, and check "externally secured."  If that doesn't solve the problem, contact me at natew(at)microsoft.com and I'll see what I can do.

However if you are working on a server that faces the internet, it might be unwise to disable so much of E12's security this way.  That's another subject for another blog.
Not applicable
In the last projects that I have been working I need to rely on an SMTP server with some &quot;security policies&quot;......