Good Morning Guillermo,
>mhh I see.. I will add allowed IP(s) to relay domains .. every cf server
>admin must have a way to relay the way I mention before :) will need more
>time to make it but hope its worth it
We do the same for all our cf servers as many of the websites use mail
tags. We made a function, that we called "reverse relay" for lack of a
better expression, and we use a table that has the IP address ranges for
the servers to control what is allowed to send mail out. We condense the IP
address so it is just a number, eg., 61.8.15.53 becomes 6181553, then it is
easy to compare. This is the snippet from rcpt.cfm:
<cfset testIP = replace(form.RemoteIP, ".", "", "all")>
<cfquery name="getFrom1" datasource="iMS">
select Domain
from RevRelayDomains
where IPStart <= #TestIP#
and IPEnd >= #TestIP#
</cfquery>
<cfif getFrom1.RecordCount and hopcount lt 2><!--- its a local server so OK
--->
result=accept
etc....
It works well, we do not have to worry about what the production server's
admins are up to, they can send mail :-), and we only have to add more
subnets of IP addresses to the RevRelayDomains table as the place grows.
--
Yours,
Kym
========================================================================
This list server is Powered by iMS
'The Swiss Army Knife of Mail Servers'
--------------------------------------
To leave this list please complete the form at
http://www.CoolFusion.com/iMS.htm
List archives: http://www.mail-archive.com/infusion-email%40eoscape.com/
========================================================================