Mon 16 Oct 2006
- Login to site using PuTTY
- Create a directory to install to. I chose mkdir /var/www/myapps
- Change to required directory (cd /var/www/myapps)
- Download Gavin’s code (wget http://www.stewart.com.au/ip_relay/ip_relay-0.71.tgz)
- Unzip the contents (gunzip -c ip_relay-0.71.tgz | tar -xv)
- Edit the start up file (pico /etc/rc.d/inet.d/ip_relay)
- Add line /usr/bin/perl /var/www/myapps/ip_relay-0.71/ip_relay.pl -d 9925:<yourdomain.com>:25
- Exit editor (Control-X)
- Create symlink (ln -s /etc/rc.d/init.d/ip_relay /etc/rc.d/rc2.d/S90ip_relay)
- Change access rights for ip_relay (chmod 755 /etc/rc.d/init.d/ip_relay)
- Restart rc daemon (restart). You should see something like
Killing mysqld with pid nnnnn
Stopping httpd: [ OK ]
Starting httpd: [ OK ]
Resolving address (yourdomain.com)…..
…. determined as: xxx.xxx.xxx.xxx
Useing command line parameters:
local_port 9925
remote_addrs xxx.xxx.xxx.xxx
remote_port 25
bandwidth 0
forwarder 99 set.ip_relay.pl Version: 0.71
Copyright (C) 1999,2000 Gavin Stewart
ip_relay 0.71 runs as a daemon and therefore allows restarting through the site manager.
All you now need to do is edit your Email client (Outlook, Thunderbird or whatever you use) to use port 9925 instead of 25. This is probably under advanced settings. If you want to check that this is working, just type telnet yourdomain.com 9925, in a command window on your pc. If you get connect failed, then you have made a mistake.

