OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
Export email addresses from exchange 5.5

From: Alex van den Bogaerdt (alexergens.op.het.net)
Date: Tue May 13 2003 - 10:57:23 CDT


This isn't finished work but maybe it's useful to some of you anyway:

On the exchange server create a file called "export.cmd" with content
(Type the tab-key for <tab> and fill in your server name:)

>---cut here---<
echo Obj-Class<tab>E-Mail addresses<tab>Secondary-Proxy-Addresses > outfile.txt
c:\exchsrvr\bin\admin.exe /e outfile.txt /d <name-of-server> /n /o ExportOptions.txt
>---cut here---<

Also create ExportOptions.txt with content

>---cut here---<
[Export]

ExportObject=Recipients
HiddenObjects=Yes
ColumnSeparator=9
>---cut here---<

This file depends on the standard settings of the exchange admin program
so perhaps you may want to check this. RTFM for details.

Now you can run the script "export" which will create the file "outfile.txt"
with a content in the format

<object-class><tab><primary addresses><tab><secondary addresses>

like this:

Mailbox
<tab>
SMTP:userdomain.example%X400:c=EXAMPLE;a= ;p=domain;o=WORKGROUP;s=user;
<tab>
smtp:aliasdomain.example%otheraliasdomain.example

It should be relatively easy to integrate this with the work of Ralf
and Patrick: http://postfix.state-of-mind.de/patrick.koetter/mailrelay/

regards,
Alex
--
Much of what looks like rudeness in hacker circles is not intended to give
offence. Rather, it's the product of the direct, cut-through-the-bullshit
communications style that is natural to people who are more concerned about
solving problems than making others feel warm and fuzzy.

http://www.tuxedo.org/~esr/faqs/smart-questions.html