There are two stages to setting up the autoresponder
- Log in to your site manager
- Click on Site Applications
- Click on Auto Responder 1.0 (First item under EMail)
- Accept terms and conditions
- Click on Finish
2. Configure on a per user basis
- Login to Site or User manager (mydomain.com/manager or mydomain.com/users)
- Click on EMail/FTP Management
- Click on Users (in left hand column) if using the Site Manager
- Click on the desired user name if using the Site Manager
- Click on EMail/FTP Management in the new window if using the Site Manager
- Click on AutoResponder in left hand column
- Click on Edit
- Ensure Auto Responder is enabled
- Enter a Subject and Message. The $ character is not allowed.
- Click on Finish
NOTE: The Auto responder will only reply once per email address it receives each day; some older installations will only reply once per email address. If you want to change this behaviour, you will have to edit the hidden file /etc/virt_users/username/.autoreplay.sh using your favourite editor.
To reply to every email, remove the line echo $SrcMailAdd >> $UserListFile (or just comment it out by putting a # at the start of the line)
To reply once per day, ensure that the definition for UserListFile is
To disable the Autoresponder, clear the check box against “Enable Service”
WARNING: Following this procedure will turn port 9925 into an open relay for your server and so is NOT recommended
Some ISPs block access to port 25 so that you have to send email using their SMTP server. This can be a real pain, so what do we do? The simple answer is to set up a proxy on your web server so that you access a different port. Your web server will forward the conversation to port 25. All we need is a piece of software to do this relaying. One is available from Gavin Stewart
. Here is how to implement it so that you access your SMTP server via port 9925 instead of port 25.
- 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:
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.