How-To: XWall Under Linux

Xwall is not available as a native Linux version. However it can run successfully under wine. Please post any questions in this regard here.

How-To: XWall Under Linux

Postby evilghost on Jan Fri 19, 2007 11:24 am

It is possible to run XWall under Linux using wine. In my case I am using Ubuntu Linux (Dapper Drake 6.06 LTS) with wine 0.9.9. Newer versions of wine have been reported to break the IE6 functionality so it is advisable to use an older version.

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.
evilghost
Site Admin
 
Posts: 629
Joined: Mar Mon 29, 2004 10:37 am

Postby Peter Banz on Jan Mon 22, 2007 12:29 pm

I assume you are using the windows F-prot engine for XWall. how about updating. Do you use the Linux version (w/cron) for that?
Peter Banz Ceratec Inc.
Support for XWall & ESAT http://support.ceratec.net
Phone (512) 285 2620 GMT-6 http://www.emailprofessor.com http://xwall.net
User avatar
Peter Banz
Site Admin
 
Posts: 2652
Joined: Jun Sun 01, 2003 11:08 pm
Location: Elgin, TX

Postby evilghost on Jan Mon 22, 2007 1:28 pm

Peter Banz wrote:I assume you are using the windows F-prot engine for XWall. how about updating. Do you use the Linux version (w/cron) for that?


I use this shell script to update the definitions, it's placed in /etc/cron.daily but you could use your own crontab or even /etc/cron.hourly if you wanted.

Code: Select all
#!/bin/sh
rm -rf /tmp/fprot
mkdir -p /tmp/fprot

wget --tries=3 --timeout=180 --directory-prefix=/tmp/fprot "http://updates.f-prot.com/cgi-bin/get_randomly?fp-def"
wget --tries=3 --timeout=180 --directory-prefix=/tmp/fprot "http://updates.f-prot.com/cgi-bin/get_randomly?macrdef2"

unzip -o /tmp/fprot/fp-def.zip -d /home/luser/wine/xwall/AntiVirus
unzip -o /tmp/fprot/macrdef2.zip -d /home/luser/wine/xwall/AntiVirus

rm -rf /tmp/fprot
evilghost
Site Admin
 
Posts: 629
Joined: Mar Mon 29, 2004 10:37 am


Return to Xwall under Linux

Who is online

Users browsing this forum: No registered users and 1 guest

cron