How to findout whether the mail server supports STARTTLS or not?

Hi,
In my application I want to use explict SSL over SMTP, IMAP and POP3 by using the property "mail.<protocol>.starttls.enable"
. I did see the documentation for mail.<protocol>.starttls.enable property as
"If true, enables the use of the <code>STARTTLS</code> command (if
supported by the server) to switch the connection to a TLS-protected
connection before issuing any login commands".
How do I findout whether the server supports STARTTLS or not?
What will be the outcome if I use the property "mail.<protocol>.starttls.enable" though the server doe's not support STARTTLS? plain text connection will be there or will it throw any exception?
Thanks in advance!
PrasadKT

The "mail.<protocol>.starttls.enable" property will use STARTTLS if the server
supports it, and won't if it doesn't. Not using it might cause later commands to fail.
Newer versions of JavaMail also have a "mail.<protocol>.starttls.required"
property that will cause the connection to fail if the server doesn't support
STARTTLS.

Similar Messages

  • How to check whether the Application Server directory exits or not

    Hi,
    I have a selection screen in which I give the Application server file name(UNIX file) as input. Here, I would like to check whether the Server directory exists or not.
    Let us say, the path I gave in the selection screen is /usr/sap/tmp/testfile.txt . Here, the file name is testfile.txt and the server directory is /usr/sap/tmp . I would like to check whether this directory /usr/sap/tmp exists in the server or not. I am not bothered about the file name as I am going to write data into the file. I am mainly concerned about whether the directory exists in the server or not. and one more thing... this is the Application Server path not the Local path.
    Can anyone help me on the same how to check whether the server directory exists or not.
    Thanks in advance.
    Best Regards,
    Pradeep.

    Also you can use the FM EPS_GET_DIRECTORY_LISTING for this purpose.
      Store the directory name
        l_dpath = p_file+0(l_no).
      Validate the directory of the application server
        CALL FUNCTION 'EPS_GET_DIRECTORY_LISTING'
          EXPORTING
            dir_name               = l_dpath
          TABLES
            dir_list               = l_i_dlist
          EXCEPTIONS
            invalid_eps_subdir     = 1
            sapgparam_failed       = 2
            build_directory_failed = 3
            no_authorization       = 4
            read_directory_failed  = 5
            too_many_read_errors   = 6
            empty_directory_list   = 7
            OTHERS                 = 8.
      If any problem occurs with the directory then display proper
      error message
        IF sy-subrc <> 0.
        Display error message
          MESSAGE e018 WITH 'Problem with directory entered'(008).
        ENDIF. " sy-subrc <> 0
    Regards,
    Joy.

  • How to check whether the Application Server file has already been opened?

    Hi Experts,
    I have a query related to Application Server file. I am using multithreading concept to process the data and write it in to a single file.
    For example, I have 4 workprocesses. Each workprocess will process the data and whenever it has a record available it will access the file and write it directly.
    Problem is the statements that are written in the workprocess is same and I want to check the status whether the file has been opened or not ?
    Thanks in advance!!!
    Thanks,
    Babu Kilari

    Depends on the structure, and whether the data needs to be sorted in some way in the final file.
    In any case, I don't think there will be a significant performance difference between using OPEN DATASET again and getting funny with Unix commands.
    If you don't need to sort the final file, you can use strings to read, concatenate and write the data even without line-based DO ENDDO loops, this works pretty fast.
    I hope we are not talking about GBytes of data
    Thomas

  • How to check whether the user has a certificate or not?

    Hi everyone.
    We're currently finishing a web project and the last step is to check whether users accessing the application have a valid certificate or not.
    Users with a valid certificate can access all the data. Users without any certificate installed on their browsers may still proceed, but they won't be able to see all data. Please note that the lack of a certificate doesn't mean an error - it's just another use case.
    Is there any way to check whether users have a certificate installed on their browsers?
    Thanks in advance.
    Edit: sorry, I forgot to post some tech details. We're using Struts 1.2 on a Tomcat 5 app server.
    Message was edited by:
    advaca

    I am not sure how Tomcat handles this, but you need to use two-way (mutual authentication) request but not enforce SSL between Tomcat and the client browser. This will make the browser prompt the user for the cert they want to send. Then you'll need to tackle the other part of your problem, getting the correct content displayed depending on whether the user sent a cert or not. I'm even less help there than I was on the first part of your question.
    So, yeah - good luck with that
    Lee

  • How to check whether the report is being called or not

    Iam using srw.run_report.for calling another report. I have registered both the report in oracle apps11.0.3. When i run the master report in oracle apps I want to see whether the second report is called or not. How to check this.
    Thanks.

    try to check it in C:\Reports6i\Bin
    C:\Reports6i\Bin <-- this may varry depending on the location of your reports.
    btw, are you generating a pdf file?

  • How to check whether a Oracle server is installed or not ?

    Hi,
    How cani check whether a Machine has oracle server installed or not ?
    I have a machine where i have the client tools installed but not server. In that case how can i check whether this machine has oracle server is installed or not?
    Thanks in Advance..

    user11000236 wrote:
    Hi,
    How cani check whether a Machine has oracle server installed or not ?
    I have a machine where i have the client tools installed but not server. In that case how can i check whether this machine has oracle server is installed or not?
    Thanks in Advance..http://tinyurl.com/ngunhv
    Kamran Agayev A. (10g OCP)
    http://kamranagayev.wordpress.com
    [Step by Step install Oracle on Linux and Automate the installation using Shell Script |http://kamranagayev.wordpress.com/2009/05/01/step-by-step-installing-oracle-database-10g-release-2-on-linux-centos-and-automate-the-installation-using-linux-shell-script/]

  • How to find whether the output file is generated or not?

    Hi,
    I ran EDI 855 program for one of our customer. The program succesfully completed and it shows in the logfile that few documents got processed and few lines got processed. But the output file in the outbound directory shows the file size as zero.
    Can anyone please let me know what could be the problem.
    And please let me know how to check whether flatfile is generated succesfully for the request run for any customer.
    Thanks in advance.
    Satya

    Hi Venkat,
    As every one have already explained other points,in standard SAP there is no provision to determine as if the sales order is intercompany or not.
    But if you  want you can create a user status as normal sales order and intercompany sales order.So by checking the status at table level or in order you can determine if it is Intercompany or normal sales order.
    Best way is to create a different document type itself which will be exclusively used for intercompany orders.So it will be easy for reporting and tracking purpose.
    Reward points if useful
    Regards,
    Amrish Purohit

  • How to find whether the sales order is intercompany or not?

    Hi guys,
    I created a sales order. In that i changed the plant which is there in other company code. so it bcomes like a intercompany sales order. but the problem is if i go to change mode how can I findout it as intercompany sales order.
    thanks & regards.
    venkat

    Hi Venkat,
    As every one have already explained other points,in standard SAP there is no provision to determine as if the sales order is intercompany or not.
    But if you  want you can create a user status as normal sales order and intercompany sales order.So by checking the status at table level or in order you can determine if it is Intercompany or normal sales order.
    Best way is to create a different document type itself which will be exclusively used for intercompany orders.So it will be easy for reporting and tracking purpose.
    Reward points if useful
    Regards,
    Amrish Purohit

  • How to check whether the new records are inserted or not in SSIS

    Hi All,
    I have a SSIS package which insert data from Table A  to Table B . I need to insert only new records to Table B. If any record is not there it should insert the record if not ignore that record.
    I used Lookup Transformation but it doesn't works from me, which tab should i need to select? Like in General tab we have  ignore failure, Fail Component,Redirect rows to no match output, Redirect rows to error output?
    Please help me on this issue. 
    Thanks, Shyam Reddy.

    On what basis you're doing the lookup? Are you using correct column for the lookup? It should be based on common columns based on which tables are related (mostly primary key column)
    Can you also show the column tab to see how you've done the mapping  ?
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • How to check whether the Workflow event is triggered or not ?

    Hello All,
        My scenario is like this :
    1. Go to MM02
    2. Change a material of any view other than the classification.
    3. Save it.
    4. Go to transaction SWEL and check there .
    5. An entry has been created in that across the object type Y01BUS1001.
    6. Now I can check in the Transaction CFG1 the Log details.
    7. This is correct.
    8. Now the same procedure is not working when I change the material for the classification View.
    9. Do i need to check something else ?
    10. When the classification data is changed for a material the Object type Y01BUS1003 has to be triggered.
    Can any one help me out ?
    Regards,
    Deepu.K

    Hi,
    If you are using the Event collector, you can check in from RSA1-> Tools-> Event collector. You cannot trace whether that event was raised from anywhere I think
    Regards

  • Problem when ping the mail server.

    i want to ensure whether the mail server is started in the particular machine.thru the java code how can i ping.

    Sexy liddle Servlet for yer;-
    import java.io.*;
    import javax.servlet.http.*;
    public class TestPingServlet extends HttpServlet {
    public void doGet(HttpServletRequest request, HttpServletResponse response) {
       try {
          response.setContentType("text/plain");
          String target = request.getParameter("ip");
          PrintWriter out = response.getWriter();
          Process pingProc = Runtime.getRuntime().exec(new String[] { "ping", target });
          BufferedReader procOutput = new BufferedReader(new InputStreamReader(pingProc.getInputStream()));
          String line;
             while((line = procOutput.readLine()) != null) {
                out.println(line);
             pingProc.waitFor();
         out.close();
       catch(Exception e) {
             e.printStackTrace();
    }

  • How to set up a mail server with a private DNS and relay over a public mail

    How to set up the mail server that we can send and pick up emails inside and outside?
    Our private network has the DNS name dnsname1.private.
    We have our privat DNS Server and he can forward requests to outside over our router.
    Our public emails are hosted by an internet provider. This dns name is dnsname2.com and dnsname2.org.
    How we have to set up our mail server that we can pick up our emails from our public dnsname2.com?
    And when we write an email how we have to set up it that the dnsname is dansname2.com and not dnsname1.private?

    If you want to move your mailservice to your own (internal) server, start by making sure you can recieve traffic on port TCP 25 (SMTP). Some ISPs blocks this port, especially on "non business" connections.
    Can you send mail from your LAN directly to where your mail is hosted using port 25 TCP or do you have to relay via your ISP?
    You have a static public IP?

  • Can no longer access blueyonder emails on iphone.I get the following error message: The mail server 'imap4.blueyonder.co.uk is not responding', how do I fix pls?

    Hi there
    As I've mentioned above, I can't seem to access my emails from my blueyonder account on my iphone. When I first set up my account on the phone, I had no problems at all receiving emails. Then recently, just out of the blue I get the following error message: 'Cannot Get Mail, The Mail Server 'imap4.blueyonder.co.uk' is not responding.  Verfiy that you have entered the correct account info in mail settings.  I definitely have the right settings, I even checked with Virgin but they are not able to assist with my problem. Has anyone else experienced this problem, if so,how did you fix it? If you could explain in simple terms as I'm not tech savvy!
    Many thanks!

    http://www.apple.com/uk/support/iphone/mail/
    work through this

  • How can I find out the mail server from email address?

    Hi:
    How can I find out the mail server from email address?
    for example: If I know the email address is [email protected],
    how to find the pop3 and smtp mail server?
    THANK YOU

    You can't tell by the email address since you can pretty much put whatever you want in there (especially if the SMTP server is not filtering anything).
    The header may be able to tell you something. There is a Received header value which looks like it has the routing information although I am not sure if this is a complete trace or just the last hop the message took.
    Sean

  • If I install the Mail server on a Mac Mini as a server, can my users utilize Outlook as their mail client and how will it be different for them?

    If I install the Mail server on a Mac Mini as a server, can my users utilize Outlook as their mail client and how will it be different for them?

    Your users can utilize Outlook no matter where your email is hosted at.
    how will it be different for them
    different from what?

Maybe you are looking for