phreek.org


Thursday, February 28, 2008

Enable TLS On Your IIS 6.0 SMTP Virtual Server

For this you’ll need an IIS 6.0 server with the web and SMTP components installed, as well as the IIS 6.0 Resource Kit Tools.

Install the SelfSSL component from the IIS 6.0 Resource Kit Tools.

Create a new web site in IIS and note it’s site ID by clicking on the “Web Sites” parent in the tree on the left and looking for the number under the “Identifier” column. Open the properties of your new site and set a port for SSL (I chose 442 to avoid conflicts with any pre-existing SSL sites)

Open Start -> Programs -> IIS Resource Kit -> SelfSSL and at the command prompt run (replacing variables to suit your environment):

selfssl /S:<site-ID> /V:3650 /N:CN=<hostname> /P:<site-ssl-port>

So for example I ran:

selfssl /S:87257621 /V:3650 /N:CN=SMTPGWY /P:442

You should make sure that the <hostname> is the same as that of the server on which you are running the SMTP virtual server.

Open your new site and export the certificate as a PFX file.

Delete the web site, then open the SMTP virtual server properties and open the “Access” tab.

Click the “Certificate” button and follow the wizard to import your PFX.

You can check that TLS has been enabled for receiving email by telnetting to your SMTP virtual server on port 25 and, after the SMTP banner has been displayed, enter “EHLO testserver”. In the list of data returned there should be two lines reading “TLS” and “STARTTLS” which mean your SMTP server is ready to use TLS security when receiving emails.

To send email to remote hosts with TLS enabled:
From the “Delivery” tab in the properties of your SMTP virtual server, select “Outbound Security” and tick “TLS Encryption” to enable TLS when sending email to remote servers.

NB: Enabling this option means the SMTP virtual server will require TLS support on ALL remote hosts it tries to send mail to. If TLS is not available, mail will sit in the outbound queue until it expires, an event log entry will be generated under the System event log and an NDR will be sent to the original sender of the email. You can work around this issue by using 2 SMTP virtual servers, one with TLS enabled, the other without, and setting up routing groups on your Exchange server to route outbound email via the TLS-enabled SMTP virtual server only if you are certain that the target domain supports TLS.

Posted by darko in • Windows
(0) Comments | (0) Trackbacks | Permalink

Thursday, January 31, 2008

How to reinstall GRUB after overwriting your MBR

So tonight I decided to install FreeBSD 7.0RC1 and try it out. While I’m sure I chose to leave the MBR unchanged, it went ahead and overwrote my MBR with the FreeBSD boot loader.

Fortunately I always keep a copy of Trinity Rescue Kit (A Linux-based rescue CD) handy for times like these and was able to recover my Fedora 8 desktop by booting into Trinity, typing “grub” at the command prompt and then entering:

install (hd1,0)/boot/grub/stage1 d (hd0) (hd1,0)/boot/grub/stage2 p (hd1,0)/boot/grub/menu.lst

This assumes your Windows drive and partition are the first dive/partition on the first disk. I run Windows on a separate physical drive (Primary IDE or SATA 1) because Windows will only boot if it’s installed on the first physical disk in a system.

Your /boot/grub/menu.lst should be similar to (from my Fedora 8 box):

default=0
timeout=5
splashimage=(hd1,0)/boot/grub/splash.xpm.gz
hiddenmenu
title Fedora (2.6.23.14-115-fc8)
    root (hd1,0)
    kernel /boot/vmlinuz-2.6.23.14-115-fc8 ro root=LABEL=/ rhgb quiet
    initrd /boot/initrd-2.6.23.14-115.fc8.img
title Windows XP
    rootnoverify (hd0,0)
    makeactive
    chainloader +1
Posted by darko in • Linux
(0) Comments | (0) Trackbacks | Permalink

Monday, January 28, 2008

Change Windows XP Setup Files Default Source Location

Want to change the default location Windows XP searches for its setup files if you’ve copied them from the CD to your hard drive?

Open Start -> Run -> regedit, browse to HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion and change the SourcePath value to the location of your setup files.

Posted by darko in • Windows
(0) Comments | (0) Trackbacks | Permalink

Friday, January 25, 2008

How to Enable Compiz on Fedora Core 8

These are the steps I took to enable Compiz on Fedora 8 with a GeForce FX5200 video card. They are a combination of instructions from this howto and a post somewhere on Fedora Forum

1. Open a terminal and su to root

2. Enable the Livna repository

rpm -Uvh http://rpm.livna.org/livna-release-8.rpm

2. Install Nvidia drivers

yum install kmod-nvidia xorg-x11-drv-nvidia

3. Open a terminal and type “init 3”, this will drop back to text console mode. Login as root.

4. Edit “/etc/X11/xorg.conf” with the following information:

Section “Module”
Load “dbe”
Load “extmod”

Section “Device”
Option “TripleBuffer” “true”
Option “RenderAccel” “true”

Section “Extensions”
Option “Composite” “Enable”

Section “Screen”
Option “AddARGBGLXVisuals” “true”

Section “ServerLayout”
Option “AIGLX” “true”

5. Run the following command to Install the necessary software. This will take some time and require a reboot if your kernel gets upgraded.

yum -v install emerald-themes compiz-fusion-extras emerald compiz-fusion compiz-manager compiz-fusion-extras-gnome gnome-compiz-manager libcompizconfig compiz-fusion-gnome ccsm

6. Go to System-> Preferences -> Personal -> Session. Click on the startup tab and click Add. Enter the following details:

Under the name field, type: Emerald
Under the command field type: emerald –replace

7. Reboot PC.

8. Go to System-> Preferences -> Look and Feel -> Desktop Effects. Click on ¨Enable desktop effects¨ and check on the two boxes. You should receive a message saying desktop effects have been enabled. Click “Keep settings” and you’re done.

Posted by darko in • Linux
(0) Comments | (0) Trackbacks | Permalink

Thursday, September 13, 2007

Testing spam/AV filters

testmail@testmail.phreek.org

Hopefully some spambots catch my email address and start mailing me.

Posted by darko in • MIscellaneous
(0) Comments | (0) Trackbacks | Permalink

Thursday, September 06, 2007

US Transports Armed Nuclear Missles By Mistake

“We have a Broken Arrow”
“A what?”
“A Broken Arrow. It’s when we lose a nuclear weapon.”
“I don’t know what’s scarier, the fact that we lost nukes or the fact that it happens often enough that we have a name for it”

Original link (Slashdot)
News article

Posted by darko in • MIscellaneous
(0) Comments | (0) Trackbacks | Permalink

Tuesday, July 03, 2007

Changes for phreek.org

As you can see, I’ve made some changes. I’ve moved to a great little CMS called ExpressionEngine which provides blogging among other features.

Other projects in progress are a PHP script to allow users to search the Kruel.org project file database, and various fixes and updates to my Uptimes Project.

Other than that, this week I started a new job in IT support for a well known Australian company which so far seems to be fairly interesting (if you can judge that from 2 days work) and found that my Woolworth’s shares have more than doubled in value since I got them about 4yrs ago. Fun times.

Posted by darko in • MIscellaneous
(0) Comments | (0) Trackbacks | Permalink
Page 2 of 2 pages  <  1 2