Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.

  1. #1

    Default 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

  2. Similar Questions and Discussions

    1. 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...
    2. 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...
    3. 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...
    4. 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...
    5. 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,...
  3. #2

    Default Re: Mail Server

    On Wed, 16 Feb 2005 00:12:21 +1000, Warren wrote
    > 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 ?
    FreeBSD comes with sendmail, or you can install Postfix. Documentation can be
    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

  4. #3

    Default 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

  5. #4

    Default 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

  6. #5

    Default 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

  7. #6

    Default 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

  8. #7

    Default 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

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139