Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

How to change the IIS smtp mailroot directory AFTER installation

Posted on 2004-04-09
4
5,054 Views
Last Modified: 2012-06-21
During installation of IIS smtp service I had to choose wich folder to use as mailroot dir. Now I want to change the mailroot dir for the default smtp virtual server, but I can only change the dir for badmails. How do I change the directory for the mailroot that contains all my smtp folders ????
0
Comment
Question by:krogstrup
  • 2
4 Comments
 
LVL 37

Expert Comment

by:meverest
ID: 10790021
is it the maildrop you want to change?  that is associated with each of the local domains as set under the relevant smtp server.

cheers,  Mike.
0
 

Author Comment

by:krogstrup
ID: 10790045
yes - its the maildrop (and all the other folders; drop, mailbox, pickup, queuee etc)

I know that I can specify the home folder when I create a new virtual smtp server, but why cant I change this setting for my default virtual smtp server ?

Even thought I uninstall the smtp service and install it again - I´m not asked where to put these folders ?!?

PS: First time I installed the smtp service I was asked where to put the mailroot folder, but now I cant change this to a new folder ?!?
0
 
LVL 6

Accepted Solution

by:
BAlexandrov earned 100 total points
ID: 10790408
You have to modify methadata information for IIS.
There are two methods. Use IIS Resource kit - get it from Microsoft. And there was Metadata Explorer.
Other way is to use adsutil.vbs from Intepub/Adminscripts

With adsutil.vbs - from command prompt
this will list settings for the first smtp instance.
adsutil.vbs enum /SmtpSvc/1
It is tree-like structure. You can view other paths if you use enum on higher node.
There you will notice parameters
DropDirectory
BadMailDirectory
PickupDirectory
QueueDirectory
You can set them with
adsutil.vbs SET /SmtpSvc/1/BadMailDirectory "f:\forgotten_one"

PS. If asked first time to register cscript as defualt engine - answer yes, or always start adsutil.vbs like "cscript adsutil.vbs"

HTH
Bojidar Alexandrov
0
 

Author Comment

by:krogstrup
ID: 10790434
PERFECT - thanks a lot !!!!

:-)

Regards

David Krogstrup
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Here are the symptoms: You start receiving calls from users that one of your legacy web apps isn't coming up, so you log into your IIS 5 server to check it out.  When you pull up the services, you notice that the WWW Publishing service isn't runn…
When it comes to showing a 404 error page to your visitors, you do not want that generic page to show, and you especially do not want your hosting provider’s ad error page to show either. In this article, I will show you how to enable the custom 40…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

840 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question