There is a problem in the FusionMail code that occurs if a sender is a local
account and the recipient is an invalid user in a local domain.  When this
occurs FusionMail will put the mail into a loop.  The reason that this
happens is because FusionMail blindly allows any local user to send mail to
any destination.  To alleviate the problem, make the following changes:

RCPT.CFM

Insert the following line directly above the "getuser" query:

<!--- check if domain is local --->
<cfquery name="localdomain" datasource="iMS">
select domain from domainaliases
where domainaliases.domain='#todomain#'
</cfquery>


Then, in the directly after the "getlocalsender" query, insert the
following:

   <cfif getlocalsender.recordcount gt 0>
<!--- we need to check if the recipient is a local domain but user not
found --->
     <cfif (localdomain.recordcount gt 0) and (getuser.recordcount lt 1)>
     result=unknownuser
     <cfabort>
     <cfelse>
      result=relay
     </cfif>
   <cfelse>

Please let me know if there are any problems or quesitons.

Regards,

Howie Hamlin
--
inFusion Project Manager; On-Line Data Solutions, Inc. (631)737-4668
===================================================
Please vote for iMS in the Most Innovative category here:
*** http://www.sys-con.com/ColdFusion/readerschoice2000/ ***
===================================================
Check out inFusion Mail Server - the world's most configurable email server
*** inFusion Authenticator for IIS is now released! (download from
CoolFusion.com) ***
http://www.teletrends.com and http://www.coolfusion.com
Software and utilities for ColdFusion, iHTML, Website, NTMail
Latest versions available from our web site (inFusion Authenticator version
2.0 for WebSite and NTMail is now released)



==============================================
     This list server is Power by iMS
  'The Swiss Army Knife of Mail Servers'
   -------------------------------------
To leave this list please complete the form at 
http://www.CoolFusion.com/iMS.htm
==============================================

Reply via email to