How do I disable e-mail relay on the RaQ?

Export to PDF | Export to DOC

There are two ways to configure a Cobalt RaQ to allow open mail relaying.   Please be advised that making this modification opens your machine up to use as a spam relay.

Method 1:

1. Telnet into RaQ; login as root. The password is the admin password used to access the web interface.

2. Edit the file /etc/mail/name_allow. Make the contents of the file contain top-level domain names, i.e.,


Include any other top-level domains you require.

Use the UNIX vi editor to edit /etc/mail/name_allow.
If you don’t know how to use vi, the following command will work. Type exactly what is below into the UNIX command prompt:

cat > /etc/mail/name_allow

Type exactly what is shown above. ^D means Control-D.

3. Restart sendmail (the mail delivery service).

Enter the following commands at the command prompt:

/etc/rc.d/init.d/sendmail stop
/etc/rc.d/init.d/sendmail start


Method 2:

This is an untested hack that completely opens your machine up to relaying.

Telnet into the RaQ
backup your copy of sendmail .cf
cp /etc/
edit the file /etc/

Search for the line:
R$*<@$+>$* $#error $@ 5.7.1 $: 551 we do not relay

Add a ‘#‘ sign to comment out this line – it should read
#R$*<@$+>$* $#error $@ 5.7.1 $: 551 we do not relay

Restart sendmail (as above) and test.

Leave a Reply

Your email address will not be published. Required fields are marked *