So, you are basically trying to relay from the test server to the live server? If you are trying to allow that IP to relay, you need to do the following on the live machine (the one you are relaying through for the test script):
Code:
touch /etc/alwaysrelay
echo "IP#" >> /etc/alwaysrelay
Edit the IP# with the IP number for the test machine.
Since the /etc/relayhosts file can't be manually edited as antirelayd will wipe any changes you make to it, you can add the file mentioned above called /etc/alwaysrelay and add the IP into that file for to allow that IP to relay through your server. The /usr/sbin/antirelayd script will look for that file and then add the IP into relayhosts file for you.