Pages

Thursday, October 9, 2014

Moving IIS SMTP Directory to a different drive location

After installing the SMTP server for enabling SharePoint incoming email feature, I had noticed that the IIS SMTP directories are by default placed in the location: C:\inetpub\mailroot
I wanted to move this to E: drive. 



The general command to do this is :
cscript.exe [directory]/[file.vbs] set smtpsvc/1/[command] [dir destination]

Below are the steps to do this:

1. Browse to Internet Information Services (IIS) 6.0 Manager
2. Right-click Default SMTP Virtual Server and Stop


3. Create the new folder locations (Copy the current inetpub folder to a different drive/partition) or manually create the necessary folders
4. Open command prompt (Run as administrator)

cd C:\inetpub\AdminScripts

Cscript.exe adsutil.vbs set smtpsvc/1/dropdirectory E:\inetpub\mailroot\Drop
Cscript.exe adsutil.vbs set smtpsvc/1/badmaildirectory E:\inetpub\mailroot\Badmail
Cscript.exe adsutil.vbs set smtpsvc/1/pickupdirectory E:\inetpub\mailroot\Pickup
Cscript.exe adsutil.vbs set smtpsvc/1/queuedirectory E:\inetpub\mailroot\Queue


6. Browse to Internet Information Services (IIS) 6.0 Manager
7. Right-click Default SMTP Virtual Server and Start


No comments:

Post a Comment