I acutally just figured out how to do this. There was another thread
that put me on the right track here:
http://groups-beta.google.com/group/microsoft.public.inetserver.iis.smtp_nntp/browse_thread/thread/e426977face1584a/204d13bcbeece308
However the syntax was a bit confusing, here are the corrected commands
that u can use.
This script is located at c:\inetpub\adminscripts\adsutil.vbs. Execute
using cscript.exe.
Replace [x.x.x.x] with the the IP address of your mail server in
brackets. I also set the RouteActionString property to the ip address
of my internal mail server (Smart Host) in brackets. That way the SMTP
service forwards correctly.
adsutil create smtpsvc/1/Domain/[x.x.x.x]/ "IIsSmtpDomain"
adsutil set smtpsvc/1/Domain/[x.x.x.x]/RouteAction 4098
adsutil set smtpsvc/1/Domain/[x.x.x.x]/RouteActionString ""
adsutil set smtpsvc/1/Domain/[x.x.x.x]/RouteUserName ""
adsutil set smtpsvc/1/Domain/[x.x.x.x]/RoutePassword ""
adsutil set smtpsvc/1/Domain/[x.x.x.x]/AuthTurnList ""
You can also use MetaEdit 2.2 to look at the Metabase and you will find
the entries for your existing domains. You can also create the
appropriate keys and values with it. Hope this helps.