Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.
-
Hexren #1
Re: Mail Server
W> How do i go about setting up a mail server on my gateway machine to collect
W> and store all email locally from the outside world etc ?
---------------------------------------------
Have a look at fetchmail.
Hexren Guest
-
Setting up CF mail server to connect to ISP mail server
I would like to setup a testing evironment and use my ISP's mail server to test and create CF mail applications. When I tried connecting to the... -
Can I specify two Mail Servers in Mail Server Settings?
I have two Mail Servers and if one go down the other takes over. The do not have the same IP or name in DNS. This works fine exept in ColdFusion... -
Mail Server Help
I am using the devloper edition of coldfusion MX7, and am building a mailing list application. I want to configure the coldfusion adminstrator so... -
checking a mail server (exchange server)
Does anyone know if it is possible to connect to a Microsoft Exchange server using cfpop? I set all the parameters and I get either this: This... -
Hula Server -- Mail/Cal Server
All, I just noticed that Hulu Server (http://hula-project.org/index.php/Hula_Server) was released. They only mention Linux support at this time,... -
Jorn Argelo #2
Re: Mail Server
On Wed, 16 Feb 2005 00:12:21 +1000, Warren wrote
FreeBSD comes with sendmail, or you can install Postfix. Documentation can be> How do i go about setting up a mail server on my gateway machine to
> collect and store all email locally from the outside world etc ?
found on the respective websites. Google is your friend :-)
Cheers,
Jorn.
> --
> Yours Sincerely
> Shinjii
> [url]http://www.shinji.nq.nu[/url]
> _______________________________________________
> [email]freebsd-questions@freebsd.org[/email] mailing list
> [url]http://lists.freebsd.org/mailman/listinfo/freebsd-questions[/url]
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"Jorn Argelo Guest
-
reddy #3
MAIL SERVER
Hi ,
Is there any way to find out whether the mail server IP is valid and working , before executing the CFMAIL tag.
i am using macromedia MX.
regards,
reddy
reddy Guest
-
Abinidi #4
Re: MAIL SERVER
Try opening a telnet connection to port 25 at that Ip, it should return the hostname of the mail server. This will tell you that it is listening for connections.
Abinidi Guest
-
PaulH #5
Re: MAIL SERVER
you might try this for a programming solution.
<cfset mailHost="yourMailHostGoesHere">
<cfset mailPort=25>
<cfset isOK=true>
<cftry>
<cfset
socket=createObject("java","java.net.Socket").init (mailHost,javacast("int",mailP
ort))>
<cfset printStreamObj=createObject("java","java.io.PrintS tream")>
<cfset inputStreamObj=createObject("java","java.io.DataIn putStream")>
<cfset connected=socket.isConnected()>
<cfset host=socket.getInetAddress().getHostName()>
<cfset IP=socket.getInetAddress().getHostAddress()>
<cfset printStream=printStreamObj.init(socket.getOutputSt ream())>
<cfset inputStream=inputStreamObj.init(socket.getInputStr eam())>
<cfset printStream.println("HELO")>
<cfset output=inputStream.readLine()>
<cfset socket.close()>
<cfcatch type="Object">
<cfset isOK=false>
<cfset errorMessage=cfcatch.message>
</cfcatch>
</cftry>
<cfoutput>
<cfif isOK>
<b>host</b>: #host#<br>
<b>IP</b>: #IP#<br>
<b>connected</b>: #connected#<br>
<b>HELO message</b>: #output#
<cfelse>
mail server #mailHost# can't be reached: #errorMessage#
</cfif>
</cfoutput>
PaulH Guest
-
PaulH #6
Re: MAIL SERVER
thinking some more (probably a bad thing) this might be simpler:
<cfscript>
function checkSMTPServer(mailHost,mailPort,user,password) {
var isOk=true;
var
urlName=createObject("java","javax.mail.URLName"). init(arguments.mailHost);
var mailProps=createObject("java","java.lang.System"). getProperties(); //null
prop
var
mailSession=createObject("java","javax.mail.Sessio n").getInstance(mailProps);
var
smtpTransport=createObject("java","com.sun.mail.sm tp.SMTPTransport").init(mailSe
ssion,urlName);
try {
smtpTransport.connect(arguments.mailHost,javacast( "int",arguments.mailPort),ar
guments.user,arguments.password);
isOk=smtpTransport.isConnected();
smtpTransport.close();
}
catch (Any e) {
isoK=false;
}
return isOk;
}
</cfscript>
<cfdump var="#checkSMTPServer('yourMailServerGoesHere',25, '','')#">
PaulH Guest
-
jray #7
Mail Server
I have a situation at work and I need some big help understanding something so
any information, charts or whatever is welcome. I need to know what really
happens when CFMAIL is used. I need to know the full flow and what it does and
where it goes. This also is important when there is an attachment that is being
used.
Also, is it possible to use Authenication on the file that is being attached?
Meaning, when I attach a file, I know the server goes out the server the file
is on and grab it, but is there a way to authenicate that the server has the
right to grab it.
If you use a virtual directory, anyone can get access to it. I want to be able
to use a VD when using CFMAIL but I don't want the VD to be able to be access
via HTTP.
Thanks for the information and this is a REALLY hot issue right now.
Jim Ray
jray Guest



Reply With Quote

