To consolidate the non-www and www versions of my site, I've added the following to htaccess:

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTP_HOST} ^www.estateagentsespana.com [NC]
RewriteRule ^(.*)$ http://estateagentsespana.com/$1 [L,R=301]
</IfModule>
This is now causing problems with Matt Wright's Formmail program that I use.

Formmail is generating this error message:
The form attempting to use FormMail resides at http://estateagentsespana.com/basicreg.htm, which is not allowed to access this cgi script.
If you are attempting to configure FormMail to run with this form, you need to add the following to @referers, explained in detail in the README file.

Add 'estateagentsespana.com' to your @referers array.
However, the domain name is already in the @referrers array.

@referers = ('estateagentsespana.com','198.38.82.122');

Can anybody suggest what the problem might be and the solution?

Thanks in advance