Delete BadMail operation
The Delete BadMail wrapper deletes all the files and the contents of the BadMail folder for the SMTP Virtual Server.
The following table describes the input parameters for the Delete BadMail wrapper.
Input parameters for the Delete BadMail wrapper
The following figure shows a XML sample of an adapter request for the Delete BadMail wrapper.
XML sample of an adapter request for the Delete BadMail wrapper
<microsoft-exchange-request>
<command>
<command-name>Delete-BadMail</command-name>
<parameters>
<parameter>
<name>SMTPVirtualServerName</name>
<value>SMTPKamal</value>
</parameter>
</parameters>
</command>
</microsoft-exchange-request>
The following figure illustrates the adapter response for the Delete BadMail wrapper.
XML sample of the adapter response for the Delete BadMail wrapper
microsoft-exchange-response>
<metadata>
<status>success</status>
</metadata>
<commands-output>
<command-output>
<metadata>
<command>cscript "C:\Program Files\BMC Software\AO\CDP_75FCS\server
\grids\KGrid\library\adapters\bmc-adapter-microsoft-exchange-v2003
-actor_7.6.00.00-SNAPSHOT\scripts\deleteBadMail.vbs" "SMTPKamal"</command>
<line-count>12</line-count>
<execution-milliseconds>3485</execution-milliseconds>
<exit-code>0</exit-code>
<status>success</status>
</metadata>
<output>
<line index = "1">Attempting to connect to remote host...</line>
<line index = "2">Initialising rctrlx server component...</line>
<line index = "3">Executing remote application: cmd /c cscript
"%windir%\deleteBadMail.vbs" "SMTPKamal"</line>
<line index = "4">Remote application process ID: 5772</line>
<line index = "5">Microsoft (R) Windows Script Host
Version 5.6</line>
<line index = "6">Copyright (C) Microsoft Corporation 1996-2001.
All rights reserved.</line>
<line index = "7">Server Name: SMTPKamal</line>
<line index = "8">Server Internal Name: SmtpSvc/2</line>
<line index = "9">Bad Mail Directory:
C:\Program Files\Exchsrvr\Mailroot\vsi 2\BadMail</line>
<line index = "10">Deleting BadMail directory files...</line>
<line index = "11">-----------------------------------</line>
<line index = "12">Remote application exited with code: 0</line>
</output>
</command-output>
</commands-output>
</microsoft-exchange-response>
<metadata>
<status>success</status>
</metadata>
<commands-output>
<command-output>
<metadata>
<command>cscript "C:\Program Files\BMC Software\AO\CDP_75FCS\server
\grids\KGrid\library\adapters\bmc-adapter-microsoft-exchange-v2003
-actor_7.6.00.00-SNAPSHOT\scripts\deleteBadMail.vbs" "SMTPKamal"</command>
<line-count>12</line-count>
<execution-milliseconds>3485</execution-milliseconds>
<exit-code>0</exit-code>
<status>success</status>
</metadata>
<output>
<line index = "1">Attempting to connect to remote host...</line>
<line index = "2">Initialising rctrlx server component...</line>
<line index = "3">Executing remote application: cmd /c cscript
"%windir%\deleteBadMail.vbs" "SMTPKamal"</line>
<line index = "4">Remote application process ID: 5772</line>
<line index = "5">Microsoft (R) Windows Script Host
Version 5.6</line>
<line index = "6">Copyright (C) Microsoft Corporation 1996-2001.
All rights reserved.</line>
<line index = "7">Server Name: SMTPKamal</line>
<line index = "8">Server Internal Name: SmtpSvc/2</line>
<line index = "9">Bad Mail Directory:
C:\Program Files\Exchsrvr\Mailroot\vsi 2\BadMail</line>
<line index = "10">Deleting BadMail directory files...</line>
<line index = "11">-----------------------------------</line>
<line index = "12">Remote application exited with code: 0</line>
</output>
</command-output>
</commands-output>
</microsoft-exchange-response>
Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*