I recommend using winetools to facilitate the installation of DCOM98, WSH, IE6, and more.
1) Install wine and winetools. Your distribution may have wine and winetools in the repository (apt/yum). If not you can get winetools from http://www.von-thadden.de/Joachim/WineTools/ and wine from http://www.winehq.org/
2) As a non-root user run winetools. You will be prompted throughout the process and it's very straight forward.
3) Winetools: Perform a 'Base Setup'.
....a) Create a windows drive.
....b) Install TTF Arial, in my case the mirror was down so I modified /usr/local/bin/winetools and changed the URL in line #1225 to http://umn.dl.sourceforge.net/sourcefor ... rial32.exe
....c) Install DCOM98
....d) Install the MFC classes. The webhost they are located on requires that the http-referer match the parent domain so winetools will not work for this installation. Instead type the following in a command line.
- Code: Select all
cd ~/.wine/c/windows/system32
wget --referer=http://www.dlldump.com http://www.dlldump.com/dllfiles/M/mfc40.dll
wget --referer=http://www.dlldump.com http://www.dlldump.com/dllfiles/M/mfc42.dll
....e) Install IE6, ignore the warning about MFC not being installed. Newer versions of WINE may cause IE6 to fail to install. It may be necessary to down-grade to an earlier version, the 0.9.x versions don't seem to have a problem with IE6.
4) Install 'Windows System Software'
....a) Install the MS VB6 Runtime
....b) Install MDAC 2.8
....c) Install Windows Script 5.6
....d) Install Common Controls 5.0
5) Move the csript.exe into the correct directory
- Code: Select all
mv ~/.wine/c/windows/system32/unknown/cscript.exe ~/.wine/c/windows/system32
6) Wineconsole must be used with mbserver.exe, Wine can be used with mbadmin.exe. mbserver.exe must be run with root if you plan to have XWall listen on TCP 25 (SMTP) or any other priv port (ports below 1024 TCP). Below is the bash script I use to launch mbserver.exe
- Code: Select all
#!/bin/sh
export WINEDEBUG=fixme-all,err-all,warn-all,-all
sudo nice --adjustment=20 wineconsole mbserver.exe
7) Modify XWALL.INI in your editor of choice, you must set these options.
....a) SMTPIPAddress=a.b.c.d (where a.b.c.d is the IP address you want to bind XWall to)
....b) DNSUseUDP=True
....c) CheckOnAccessScanner=False
....d) ForceScreenOutput=True
8) Install XWall into Wine. I performed the initial installation of XWall on a Win32 machine and moved the XWall directory to the Linux machine. For the Win32 installation I installed XWall to "C:\Xwall", after installation I moved the XWall directory to "~/.wine/c/XWall".
9) That's it. Use "wine mbadmin.exe" to launch the XWall GUI Administration program. Use the bash script (I named mine xwall.sh) to run mbserver.exe, the actual XWall MTA.
10) For security purposes I recommend you remove the following symlinks.
- Code: Select all
cd ~/.wine/dosdevices
rm d: h: z:
Notes: At this point your wine installation should be fully functional and support all facets of XWall inclusive of UDM. I am using XOCR with Xwall running in Wine without issue; I have found that uudwin works faster than uud32win. I am also using F-Prot for the antivirus.
