Groups | Blog | Home
all groups > iis smtp nntp > november 2005 >

iis smtp nntp : Changing default path used by SMTP service in IIS6.0


Visut
11/1/2005 11:24:03 PM
Hello,
I am trying to change the default path use by SMTP from C:\inetpub\mailroot
to E:\inetpub\mailroot. This includes, Badmail, Queue, SortTemp, Mailbox,
Pickup, etc... Does any one know how to do this? So far I only have been able
to find is changing the default path in IIS4.0 and not IIS6.0.

Thanks,
Ken Schaefer
11/3/2005 12:00:00 AM
For the SMTP service, you can edit the metabase (after creating the
necessary folders elsewhere) so that the SMTP virtual server uses the new
folders:

cscript.exe c:\inetpub\adminscripts\adsutil.vbs set smtpsvc/1/dropdirectory
x:\mailroot\drop
cscript.exe c:\inetpub\adminscripts\adsutil.vbs set
smtpsvc/1/badmaildirectory x:\mailroot\badmail
cscript.exe c:\inetpub\adminscripts\adsutil.vbs set
smtpsvc/1/pickupdirectory x:\mailroot\pickup
cscript.exe c:\inetpub\adminscripts\adsutil.vbs set smtpsvc/1/queuedirectory
x:\mailroot\queue

Change x:\mailroot to be the path you want the directories to be now.

If you want to set these things as part of IIS installation you need to do
an unattended install (either as part of the OS install via
unattend.txt -or- as part of GUIRunOnce via sysocmgr.exe etc. See
http://support.microsoft.com/?id=309506 for more information on getting
started, and the Unattended setup help located (if I recall correctly) in
the \ValueAdd folder of your OS setup CD.

Cheers
Ken


[quoted text, click to view]
: Hello,
: I am trying to change the default path use by SMTP from
C:\inetpub\mailroot
: to E:\inetpub\mailroot. This includes, Badmail, Queue, SortTemp, Mailbox,
: Pickup, etc... Does any one know how to do this? So far I only have been
able
: to find is changing the default path in IIS4.0 and not IIS6.0.
:
: Thanks,
: Visut

Paul
11/8/2005 12:05:56 PM
It is also very simple to do using the metabase explorer. It is part of
the IIS resource kit.


[quoted text, click to view]
AddThis Social Bookmark Button