Domanda

Really need your help or idea how to create a path in drop directory and disable "enable drop directory quota".In SMTP virtual server properties, how do i uncheck all the options in Messages tab and change the path in Badmail directory .

and also how do I run New SMTP Domain Wizard in alias and create domain name.

Really appreciate all your help.. thanks

È stato utile?

Soluzione

I apologize if my question is not nclear. I'm very new to this vbscript, but i managed to find the solution..this fix my problems

set objItemSMTPServer=GetObject("IIS://localhost/SMTPSVC/1")
objItem.DropDirectory = "D:\data\IIS\mailroot\Badmail" <-- Directory path
objItemSMTPServer.RouteAction = 8388609 <-- Uncheck "Enable drop directory quota


objItem.BadMailDirectory = "D:\data\IIS\mailroot\Badmail"
objIte.MaxMessageSize = 0
objItem.MaxSessionSize = 0
objItem.MaxBatchedMessages = 0
objItem.MaxRecipients = 0
objItem.setinfo

Set domainObject = GetObject("IIS://LocalHost/SMTPSVC/1/domain") <-- Create new SMTP
Set newDomain = domainObject.Create ("IIsSmtpDomain","alias")
newDomain.RouteAction = 16
newDomain.RouteActionString = "alias"
newDomain.SetInfo

This works well form me

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top