Exchange 2003: Infos (SMTP ports + Domains) from script

Exchange 2000


  • 1. Gradually migrate from GroupWise to Exchange
    Hello I have read what I found regarding the Connector for Novell GroupWise and GroupWise gateway api. What I feel unsure about is: How to tell GroupWise that the GroupWise accounts are also AD or Exchange accounts, so that GroupWise transfers the messages to the API gateway. And I just want to apply this for some users, to test the Connector. The other GW users shall not be "synched" with Exchange. Thanks.
  • 2. restoring exchange databases to a test server
    Does anyone know where i can find a document on what the requirements would be to restore an exchange database to a test server? Info such as "Do the domain and computer name have to be identical to what the original server was etc. Thanks
  • 3. Moving Exchange 5.5 to another hardware platform and consolidating
    Hi We have 4 servers in our single Exchange Organisation runing NT4 and EX 5.5 We need to move and consolidate these to another hardware platform. So this is what I think is the best method The 4 servers we shall e consolidating to 1 large server with a 1:1 Active/Passive cluster. So I am thinking a) build the new NT4 server with MSCS cluster, b) install EX 5.5 in the existing Exchange Organisation c) perform a move mailbox, rehome public folders, move over DL ensure expansion server is the new one d) uninstall the existing 4 x exchange 5.5 servers Is this the correct method?..Is it correct to assume that the new cluster server will not be an issue when i perform a move mailbox from the other servers? Also, I am led to beleive that the Mail profiles on client desktops will be automatic as well So the goal is To get from the current 4 server ex5.5 organisation to a single server exchange server (but the organisation will be the same obviously) Jay
  • 4. Exchange 2000 with Entourage 2004
    I am using Entourage 2004 with Exchange 2000 server and when I try to send any email it is logged 6 times in the message tracking centre. In my Entourage I only have one account set up as an Exchange account. If a meeting request is sent it is sent 6 times to the recipient If anyone has any suggestions could they please let me me know ? Many thanks in advance P.S When I set up my account through Outlook on a Windows machine this doesn't happen

Exchange 2003: Infos (SMTP ports + Domains) from script

Postby TWFydGluTQ » Sun, 02 Apr 2006 05:05:03 GMT

I'd be interested in extracting/modifying the Exchange Server 2003 SMTP 
ports (inbound-outbound) from a script or command-line.  Is it possible?  (In 
the same way, getting the list of the domains hosted by the Exchange server 
would also be interesting).

I am not too sure if those informations are stored in Exchange or IIS 
metabases, active directory or else...  

All help will be appreciated,

Thanks for your time,

Martin M.

Re: Exchange 2003: Infos (SMTP ports + Domains) from script

Postby Jim McBee [MVP Exchange] » Mon, 03 Apr 2006 13:36:59 GMT

The SMTP virtual server information, such as ports in use and the domains, 
is stored in Active Directory.  I can't help you with the script (I'm 
scripting impaired), but I know of an example that you might be able to use 
/ modify.  Exchange MVP and all around nice guy, Glen Scales, has a lot of 
cool scripts for manipulating Exchange.  See:

You might also try something like ADSIEdit or LDP to explore the 
Configuration partion (look under Services -> Microsoft Exchange) if you are 
interesting in learning more about the places this data is stored.  The SMTP 
data is stored in the SMTP Virtual server section under each Exchange 
server.  The SMTP domains are stored in the Recipient Policies.  Just be 
careful when exploring the Configuration data, you can prematurely end the 
life of your Exchange organization.  :-)

Jim McBee
Blog:  http://www.**--****.com/ 
Free eBook:  http://www.**--****.com/ 

Re: Exchange 2003: Infos (SMTP ports + Domains) from script

Postby TWFydGluTQ » Wed, 05 Apr 2006 03:15:01 GMT

Excellent tracks...
Thanks a lot for your help!!

Martin M.

Similar Threads:

1.Script Bulk Change of Primary SMTP Address Domain?

We're bring an outside mail server into our Exchange server, and I need to 
alter the primary SMTP address for every user, I believe just the domain 
portion.  Rather than hand-walk through 300+ AD caccounts, is there an 
existing script or tool to do this on a bulk basis?



2.Windows 2003 / Exchange 2003 SMTP Address properties script

I'm working on a Groupwise to Exchange 2003 migration and am having a problem getting SMTP addresses correct.  There is no set pattern for the addresses of the users, so most are custom.  I have an excel spreadsheet that I lookup up the values from and populate the fields.  However, it does not appear to set the "Primary SMTP Address" correctly.
My steps:
1. Bind to the user object
2. Append the "proxyAddresses" array with my custom address
3. Set the "mail" value to this new address
4. Clear the "Auto update address" flag
5. Disconnect from the user

Using VBS code, I can set the "proxyAddresses" values as I want.  I can set the "mail" values as I want, but I cannot change the "Set as Primary" flag to be the custom address that I put in programatically.  If I do it manually, in ADU&C, it works fine.

Any ideas would be appreciated.

Brian Weigle

3.relay to another smtp domain without using port 25


I have an email domain for my own private emails.  However, since I'm 
running my Exchange 2003 at home and my ISP blocked all port 25 traffic in 
both direction, my Exchange server is basically useless except for testing 
within my local lan.  At the same time, my aunt's company has an Exchange 
2003 on SBS which I hope can help relay my private emails to my home using a 
port other than port 25.  I tried to create a connector for the address space on my aunt's Exchange but then I realize 
there is nowhere to configure which port to use and now I'm stuck.  Maybe 
this design won't work and I'm open to any options.

Would someone help provide some ideas to achieve the following:
1.  Send / Receive emails on the internet for 2 separate smtp domains of 2 
separate forests and organizations on one Exchange 2003 (SBS version);  in 
addition, my home ISP provide dynamic IP and my assigned IP keeps changing 
every few hours;
2.  Forward all emails to my Exchange 2003 server at home 
using a port other than port 25;
3.  Create an user account at with 2 email addresses is 
not an option.

Thanks in advance.

4.different port associate with SMTP port 25


Some ISPs don't allow clients to use port 25 to send email. Is there a way 
that I can set up a different listening port associates with smtp port 25 on 
exhcange 2003 for clients who can't relay using their ISP?

5.Recover all possible infos from exchange server

i have a script that give me some info about echange user:

email, name, surname, days from last password change etc.

syntax used is this:
' ***** Retrieve the records (Run the LDAP Query)
 SET rs = com.Execute

 IF rs.eof THEN
      wscript.echo "Nothing selected"
       contatore = 0
       DO WHILE NOT rs.EOF
             DNuser              = rs.fields(0)
             Pwdchanged       = rs.fields(1)
             strCname           = rs.fields(2)
             Accountstatus     = rs.fields(3)
             email                  = rs.fields(4)

bla bla bla

How to have the complete list of "rs.list"   var?

I search to obtain also:

account options
account expiration
logon script
member of
last logon
account status

i'm on the right way?

Thanks !!!!!

6. SBS 2003 Exchange setup - ISP blocks SMTP port 25

7. Exchange 2003 - alternate smtp port

8. Exchange and Windows Server 2003 R2 SP1- Cannot telnet to SMTP port 25

Return to Exchange 2000


Who is online

Users browsing this forum: No registered users and 6 guest