Missing Property "mail.smtp.auth" in JavaMail Spec Appendix A

Hi folks,
I tried to connect to my Mail Server via JavaMail over SMTP in oder to send an Email. The Mail Server needs Authentication. I always got the warning: 530 Authorization required, even though I had set my username and Passwort in my javax.mail.Transport object. I took a look into the Spec and there was no property like "mail.smtp.auth". In the FAQ I found it, recently.
I don't know if this should be reported as a bug. Perhaps somoene who is involved in the documentation writing reads this and changes this little fault.
Thanks,
Greets Juan.

Hi Juan,
take a look at the API doc -> package com.sun.mail.smtp.. here ou can find the properties.
Appendix A is old.
greetings,
Filo

Similar Messages

  • AuthenticationFailedException when using JNDI and JavaMail with SMTP auth

    Hi all - I've been banging my head on this one for awhile now - hopefully someone else has done this.
    We are working in a servlet container (tomcat), and need obtain a mail session from JNDI. We do this as follows:
                   Context initCtx = new InitialContext();
                   Context envCtx = (Context) initCtx.lookup("java:comp/env");
                   Session mailSession=(Session) envCtx.lookup("mailSession/trumpetinc");so far so good. The jndi entry for the mail session is configured in server.xml as follows:
              <Resource name="mailSession/trumpetinc" scope="Shareable" type="javax.mail.Session"/>
              <ResourceParams name="mailSession/trumpetinc">
                <parameter>
                  <name>mail.smtp.host</name>
                  <value>mail.server.com</value>
                </parameter>
                <parameter>
                  <name>mail.smtp.password</name>
                  <value>ABCDEFG</value>
                </parameter>
                <parameter>
                  <name>mail.smtp.user</name>
                  <value>trumpet_kevin</value>
                </parameter>
             <parameter>
               <name>mail.smtp.auth</name>
               <value>true</value>
             </parameter>
              </ResourceParams>With the above, whenever we hit Transport.send(msg), we got an AuthenticationFailedException thrown. I have run into this before with SMTP authentication, so I decided to try using the transport.sendMessage() method instead.
    So, I get the transport:
    Transport trans = mailSession.getTransport("smtp");
    trans.connect();Then I send my message using:
    msg.saveChanges();
    trans.sendMessage(msg, msg.getAllRecipients());and finally, I close the transport:
    trans.close();Unfortunately, I'm still getting the exception. Is it possible that my connect() method is not picking up the JNDI properties set in the server.xml file (this seems likely)? If so, what's the best way for me to get those properties so I can set them explicitly in the connect() method?
    Thanks in advance,
    - Kevin

    Hi,
    I have faced the same problem and after some googling and trying I have discovered what causes the AuthenticationFailedException exception. I just wanted to share the knowedge maybe it will be helpfull to others.
    Here it is what the API says:
    To use SMTP authentication you'll need to set the mail.smtp.auth property (see below) and provide the SMTP Transport with a username and password when connecting to the SMTP server. You can do this using one of the following approaches:
    1.Provide an Authenticator object when creating your mail Session and provide the username and password information during the Authenticator callback.
    Note that the mail.smtp.user property can be set to provide a default username for the callback, but the password will still need to be supplied explicitly.
    This approach allows you to use the static Transport send method to send messages.
    2.Call the Transport connect method explicitly with username and password arguments.
    This approach requires you to explicitly manage a Transport object and use the Transport sendMessage method to send the message. The transport.java demo program demonstrates how to manage a Transport object. The following is roughly equivalent to the static Transport send method, but supplies the needed username and password:
    Using the Transport.connect makes the JNDI not very helpfull for configuration.
    It seems that using just the mail.smtp.user and mail.smtp.pass is not sufficient for the authentication.
    so, the solution is :
    just place these to lines in the JNDI configuration:
              username="test"
              password="test1"
    so it should looks as follows:
              <Resource name="mail/Session" auth="Container"
              type="javax.mail.Session"
              username="test"
              password="test1"
              mail.transport.protocol="smtp"
              mail.smtp.auth="true"     
              mail.smtp.host="localhost"
              mail.smtp.port="25"
              mail.smtp.user="test"
              mail.smtp.password="test1"
    />
    where test and test1 are the user's credentials
    Regards,
    Kiril
    Message was edited by:
    Kireto
    Message was edited by:
    Kireto

  • Setting the JavaMail properties especially: mail.smtp.timeout

    Hello,
    I am desperately trying to set the mail.smtp.timeout on a Spring JavaMailSenderImpl.
    Here is what I undertook:
    <bean id="mailSender" class="org.springframework.mail.javamail.JavaMailSenderImpl">
    <property name="host" value="${mail.server}"/>
    <property name="port" value="${mail.port}"/>
    <property name="javaMailProperties">
    <props>
    <prop key="mail.smtp.connectiontimeout">1000</prop>
    <prop key="mail.smtp.timeout">1000</prop>
    </props>
    </property>
    </bean>
    The javaMailProperties seem to be completely ignored by my Java Mail implementation. Can anyone please help?
    If I can't set this property through Spring, how can I set it?
    Thanks in advance,
    Julien.

    I notice the API documentation for com.sun.mail.smtp says that property should be an int. Is it possible that Spring doesn't know that, and sets it as a String by default? And that you should be specifying the property type somehow?
    Note: I know nothing about Spring except what it's for. This is just speculation.

  • Missing SMTP AUTH

    Hi,
    when we test mta with telnet mail.server 25 communication looks like this:
    ehlo someone
    250-blah.blah Hello xxxxpleased
    to meet you
    250-ENHANCEDSTATUSCODES
    250-PIPELINING
    250-EXPN
    250-VERB
    250-8BITMIME
    250-SIZE
    250-DSN
    250-ETRN
    250-DELIVERBY
    250 HELP
    we are missing SMTP AUTH (both internal and external IP addresses). Any ideas?
    Thanks,
    Neven

    Check the tcp_local channel settings in the imta.cnf :
    http://docs.sun.com/source/817-6267/mta_config.html#wp1067820
    when modifying, do not forget to recompile your config.
    Cheers, Ben

  • OS X's Mail app and SMTP auth

    We're having a problem with OS X's Mail app connecting to Tiger Server's mail server. We have the server set up to not always require SMTP auth (all SMTP auth settings unchecked in Settings > Advanced > Security), and to allow relay from only a given set of networks (Settings > Relay). In theory, this means that if you're on one of the specified networks, you're not required to authenticate, otherwise you are. This according to Apple's documentation.
    From a bit of packet sniffing, it looks like:
    1. If a user on an allowed network tries to send mail through the server, the server does not return authorization as an option.
    2. If the user has password authentication specified in Mail's SMTP Server settings, it refuses to send. If they set SMTP auth to None, the Mail app will send.
    IOW, Mail doesn't send if Authorization is enabled in the Mail app, but not given as an option by the mail server. Has anyone else seen this? Is this a bug in Mail or Postfix?

    If you have networks entered in
    'Accept SMTP relay only from these hosts and
    networks'
    Clients on these networks don't need to authenticate
    for local delivery or relay.
    So it does what you are looking for.
    Jeff
    Well, goddarn it - so it does!
    I was testing various permutation (10.3.4) just recently and it just wouldn't relay without auth if any of them was selected (honest!). That was with the trusted relay....
    ...but I just tried it again and it's fine!
    I had put it down to just another 'glitch' in the documentation.
    Oh well - glad you were there to point it out Jeff!
    Whilst we are on the subject - do you know of any way to tie authentication (outwith trusted network) to specified users? I was thinking there might be a Postfix parameter for this (sorry, I should just look them all up but maybe someone knows it already)?
    Thank, and sorry for any earlier confusion!
    -david.

  • Mail 2.0 + SMTP auth + qmail

    On our SMTP servers (running qmail), we're currently not requiring SMTP auth, but it does work with other clients...just not with Apple Mail.
    If you connect to our SMTP server from another provider's network, there's a notification which tells the client that SMTP auth is required, so it works from another network.
    On our own network, however, SMTP auth is not required, so Mail never receives the notification of SMTP auth being possible, so it just times out when trying to authenticate.
    This is all on port 25, no SSL/TLS/etc., and all UNs/PWs are in cleartext.
    We're going to be requiring SMTP auth in the near future, so I need to figure this out for our Mac users (and myself).
    My feeling is that once we require SMTP auth, that notification will go to the client, and it will work, but I'm not sure, and I'm unable to get our admins to give me a test server to play with/test things out.
    Any ideas/thoughts?
    Thanks in advance...

    Hello,
    Mail, in all versions, has always timed out whenever a separate, "hard" authentication is not required, but attempted anyway. The difference has always appeared to me to relate to the fact that Mail will perform SMTP after POP3 authentication, WITHOUT having any authentication specified in the outgoing server settings. When the separate authentication is required, it should work fine.
    The difference may be that other mail clients stop their authentication actions when connection is successful, without it, but Mail proceeds to do what it is told to do -- if Password authentication is selected, ask no questions, just do it.
    In the Mail Setup Assistant now used in Mail 2.0, it is possible to select that the Outgoing Server requires authentication, but then NOT fill in the Password and Username if not needed. As far as I can tell, this does not seem different from specifying None in previous versions.
    Ernie

  • Mail and SMTP auth (RFC 1918 error) ?

    I've an iMac and a Macbook (both with Mac OS X 10.5.3). Both connected to Internet using Airport via my WiFi router (with NAT activated on this router). This behavior is working fine since almost 2 years.
    I was using (and I'm still using) Thunderbird (last version) to read and send my emails on the iMac, and Mac OS X Mail on the Macbook.
    Everything was fine until yesterday. My provider has change is SMTP server so that authentification is now required when sending message.
    So I've activated SMTP auth in Thunderbird and all is fine. And do the same under Mail (with password option). But it doesn't work with Mail, I've got a SMTP connexion error.
    When I choose the diagnostic button, I find that SMTP connexion (EHLO) is fine, then saying my IP address (192.168.x.x) is private according to RFC 1918 and ending the connexion (QUIT).
    I have the same error on my iMac, though it just work fine with Thunderbird.
    So it seems to me Mail can't connect because of this behavior. But I don't understand why my IP address in Mail dialog with my provider SMTP server is not NATed by my router, like all other IP traffic.
    And I don't know what to do to correct this problem.

    Well, as SMTP authentification is only required to forward mail to another domain, I try to send an mail to my wife who is on the same domain as myself. It work fine with authentification disabled using Thunderbird but don't work with Mail.
    As it use to work fine until I change the configuration, I try to delete my account informations and create a new one as it was 2 days ago (without SMTP auth) but it still doesn't work even if I've got no problem with Thunderbird.
    Anyone as an idea about all this mess ? My only clue is the Mail connection diag which show connect, helo (with my private IP), server response 550 RFC 1918 and quit. Even if I found this behavior very strange, the result of the diag is the same with or without SMTP auth actived. So I suppose it was already the same before when it was working fine...

  • Javamail ignoring mail.smtp.host?

    Hi all,
    I have some code that looks like this (OK, this is oversimplified):
    private void sendMessage(SMTPMessage message, String username, String domain) throws MessagingException
    bq. String mxHost = getMXHostnames(domain)[0]; \\ Properties sessionProperties = new Properties(); \\ sessionProperties.put("mail.smtp.host", mxHost ); // This line is important! \\ Session session = Session.getInstance(sessionProperties); \\ URLName targetUrl = new URLName("SMTP", mxHost, 25, null, null, null); \\ SMTPTransport transport = new SMTPTransport(session, targetUrl);     Address[] addr = new Address[]() {new InternetAddress(username \\ + '@' + domain)}; \\ transport.send(message, addrArray);
    username and domain are variables containing a target address, and getMXHostnames() is a function returning an array of MX host names, sorted in order of preference, for a supplied domain name (I can verify that this works, or at least that it generates an array of very plausible-looking domain names, none of which is "localhost".
    When I run this code, however, I get:
    javax.mail.MessagingException: Could not connect to SMTP host: localhost, port: 25
    Where is that "localhost" coming from? I specified a value for mail.smtp.host, and it's not localhost! (An example is "mx1.balanced.swarthy.mail.dreamhost.com", for webmail hosted by DreamHost.)
    Any help would be much appreciated.
    Thanks much,
    Avrom

    drvijayy2k2 wrote:
    sessionProperties.put("mail.smtp.host", mxHost ); // This line is important! what mail.smtp.host is just like demo..
    use yours...
    ex
    smtp.gmail.com
    Sorry, I should have made it a bit clearer what I'm trying to do. This isn't mail client; it is (and yes, I know the FAQ suggests that
    JavaMail isn't quite appropriate for this, so maybe I shouldn't be
    asking this question at all^1^) an originating SMTP server. At
    some point in the SMTP server chain, you have to connect to the
    receiving server. I'm hoping that I can do that directly; if I can't, I
    need to find out how to discover the appropriate relay to get it there.
    (Do all originators need to connect to an "upstream" server for which
    they have an account? How do the upstream servers send mail, in that
    case?)
    "My" SMTP server, I assume you mean, is the server I have an account on and a password for. But (IIUC), the MX servers listed in a site's WHOIS entry are public receiving servers--they're what smtp.google.com (for example) uses to deliver messages to email addresses at that web site. Surely they can't require usernames and passwords, because they need to have a general ability to receive email from outside. (These are different from SMTP originators, which are really only for the use of a select few.)
    (Anyway, why would you list servers in a WHOIS entry when they require an account? You can inform your account holders of your SMTP servers without using WHOIS).
    bshannon, sorry, but there's something I'm failing to see in the
    samples (possibly due to my not seeing it, rather than its not being there). All of them assume you use your session object in the
    construction of the MimeMessage: new MimeMessage(session). I've already
    received and processed a MimeMessage from the actual client; if I don't
    intantiate my own transport, how do I tell the SmtpMessage about my
    session (with customized properties, especially smtp host)?
    I really don't want to put the session in the message constructor if I
    can possibly help it--because the same MimeMessage might go to a bunch
    of different receiving smtp hosts (if it has a long to line, for
    example). Re-reading the content for each of them seems wildly
    inefficient compared to creating a single Mime message, and then
    creating different sessions to send the message to different places.
    drvijayy2k2, I understand that thread and in fact have posted on it. But again, that person was trying to create a client that connected to an SMTP provider. I'm trying to be the SMTP provider, and deliver mail to receiving servers.
    ^1^On the other hand, I've looked at extensible Java servers available on the net, and they all really seem to be primarily intended as SMTP receivers, not SMTP originators. I've actually got a (home-brewed, and currently pretty basic) receiving SMTP system working just fine (and the server component of my originator fine; it's the bit that sends the mail along that I'm having trouble with), but I need to provide a way to send mail, not just receive it. If JavaMail isn't robust enough (as the FAQ suggests) for this purpose, then it looks like eventually I'll need an entirely home-brewed system, but for my prototype, time to completion is rather more important than real robustness. I don't expect the prototype to need to handle a big load, for example.

  • Setting 'mail.smtp.localhost' to make things work

    Hello
    I was getting this error with my initial attempts to send myself an email using JavaMail:
    javax.mail.MessagingException: 501 Syntactically invalid HELO argument(s)
    After hunting around for a while I came across references to doing this:
    props.put( "mail.smtp.localhost", "localhost" )
    So I tried it, and it works!
    I'm happy about that, but I would like to find out why? I just cannot seem to find an answer anywhere.
    I run Windows XP, and my hosts file has not been changed - localhost is still there, as shipped. When I call this:
    InetAddress.getLocalHost().getHostName()
    I get the $COMPUTERNAME value for my PC which happenes to be "HARRY_PC".
    My real concern is what will happen when I deploy my application to other machines - is this little 'hack' likely to break things?
    Hmm...
    Many thanks!
    Harry Mantheakis
    London, UK

    Thanks for that link.
    I had actually looked at it earlier, and next to the 'mail.smtp.localhost' property it reads:
    Local host name. Defaults to InetAddress.getLocalHost().getHostName(). Should not normally need to be set if your JDK and your name service are configured properly.
    Which begs the question: how should my JDK and/or my name service be configured?
    I am sorry to say that I have no idea what JDK configurations to consider, and I do not think a name service is used in my simple test application.
    Regards
    Harry Mantheakis
    London, UK

  • Trouble sending SMTP AUTH

    I am having difficulty sending mail to an smtp server that requires authentication.
    The mail messages are valid so I snipped only the connection code:
            boolean DEBUG = true;
            Properties p = new Properties();
            p.put("mail.smtp.host", "mail._myhost.com");
            javax.mail.Session s = javax.mail.Session.getDefaultInstance(p, null);
            s.setPasswordAuthentication(
                    new URLName("mail._myhost.com"),
                    new PasswordAuthentication("_myuser","_mypass")
            s.setDebug(DEBUG);
    myhost, myuser, and _mypass are all valid.
    The smtp server is James 2.1.2 from apache/jakarta and this option works without authentication on a test mail server. There is no option is changing authentication on the intended server (obviously).
    The exception I get is:
    javax.mail.SendFailedException: Sending failed; nested exception is: javax.mail.SendFailedException: Invalid Addresses; nested exception is:
    javax.mail.SendFailedException: 530 Authentication Required
    I would appreciate any help anyone may give me in correcting my code or pointing to where I may start looking for an answer.
    Thank you in advance for your help if you have any experience that may aid me in finding a solution.
    MB

    Bump.
    I can confirm AUTH working with perl libraries.
    Is javamail as buggy as some are claiming? I have not had problems up to this point and I am stumped with smtp AUTH.
    Thanks for your help.

  • Sending mail to yahoo using javamail

    hello,
    i have a javamail code which able to send mail within my domain (mailserver ) .
    but when i try to send mail to any yahoo id then i get following error :--
    javax.mail.SendFailedException: Invalid Addresses;
    please, anyone help me ; what should i do modification in my existing code for sending mail to yahoomail account.
    the code which is working properly for my doamin is:--
    import java.util.*;
    import java.io.*;
    import javax.mail.*;
    import javax.mail.internet.*;
    import javax.activation.*;
    public class SendMailUsage {
    public static void main(String[] args) {
    // SUBSTITUTE YOUR EMAIL ADDRESSES HERE!!!
    String to = "[email protected]";
    String from = "[email protected]";
    // SUBSTITUTE YOUR ISP'S MAIL SERVER HERE!!!
    String host = "172.13.2.48";
    // Create properties for the Session
    Properties props = new Properties();
    // If using static Transport.send(),
    // need to specify the mail server here
    props.put("mail.smtp.host", host);
    // To see what is going on behind the scene
    props.put("mail.debug", "false");
    // Get a session
    Session session = Session.getInstance(props);
    try {
    // Get a Transport object to send e-mail
    Transport bus = session.getTransport("smtp");
    bus.connect();
    Message msg = new MimeMessage(session);
    msg.setFrom(new InternetAddress(from));
    InternetAddress[] address = {new InternetAddress(to)};
    msg.setRecipients(Message.RecipientType.TO, address);
    msg.setSubject("Test E-Mail through mojax developers");
    msg.setSentDate(new Date());
    // Set message content and send
    setTextContent(msg);
    msg.saveChanges();
    bus.sendMessage(msg, address);
    bus.close();
    catch (MessagingException mex) {
    // Prints all nested (chained) exceptions as well
    mex.printStackTrace();
    // How to access nested exceptions
    while (mex.getNextException() != null) {
    // Get next exception in chain
    Exception ex = mex.getNextException();
    ex.printStackTrace();
    if (!(ex instanceof MessagingException)) break;
    else mex = (MessagingException)ex;
    // A simple, single-part text/plain e-mail.
    public static void setTextContent(Message msg) throws MessagingException {
    // Set message content
    String mytxt = "this mail is generated by java";
    msg.setText(mytxt);
    // Alternate form
    msg.setContent(mytxt, "text/plain");
    } //End of class

    Turn on session debugging to get the protocol trace. Your mail server
    is probably saying more about why the send failed than what you've
    included here.
    Then read the FAQ for likely problems.

  • SMTP-auth via mailx results in service unavailable

    Why do my attempts to use mailx with Gandi SMTP fail with 'Service unavailable'?
    I have the following ~/.mailrc file which is recognised by mailx:
    set smtp=smtps://mail.gandi.net:465
    set smtp-auth=login
    set smtp-auth-user=harry@XXXXXXX
    set smtp-auth-password=XXXXXXX
    set from=harry@XXXXXXX
    set ssl-verify=ignore
    set nss-config-dir=/Users/neville/Thunderbird
    The result is below.
    From MAILER-DAEMON  Thu Dec 20 15:41:47 2012
    Return-Path: <>
    X-Original-To: [email protected]
    Delivered-To: [email protected]
    Received: by G4-N-2.local (Postfix)
              id D4E2DA382D6; Thu, 20 Dec 2012 15:41:47 +0000 (GMT)
    Date: Thu, 20 Dec 2012 15:41:47 +0000 (GMT)
    From: [email protected] (Mail Delivery System)
    Subject: Undelivered Mail Returned to Sender
    To: [email protected]
    Auto-Submitted: auto-replied
    MIME-Version: 1.0
    Content-Type: multipart/report; report-type=delivery-status;
              boundary="78E73A382D4.1356018107/G4-N-2.local"
    Message-Id: <[email protected]>
    This is a MIME-encapsulated message.
    --78E73A382D4.1356018107/G4-N-2.local
    Content-Description: Notification
    Content-Type: text/plain; charset=us-ascii
    This is the mail system at host G4-N-2.local.
    I'm sorry to have to inform you that your message could not
    be delivered to one or more recipients. It's attached below.
    For further assistance, please send mail to postmaster.
    If you do so, please include this problem report. You can
    delete your own text from the attached returned message.
                       The mail system
    <neville@XXXXXXX>: host spool.mail.gandi.net[217.70.184.6] said: 554 5.7.1
        Service unavailable; Client host [XXXXXXX] blocked using
        pbl.spamhaus.org; http://www.spamhaus.org/query/bl?ip=XXXXXXX (in
        reply to RCPT TO command)
    --78E73A382D4.1356018107/G4-N-2.local
    Content-Description: Delivery report
    Content-Type: message/delivery-status
    Reporting-MTA: dns; G4-N-2.local
    X-Postfix-Queue-ID: 78E73A382D4
    X-Postfix-Sender: rfc822; [email protected]
    Arrival-Date: Thu, 20 Dec 2012 15:41:47 +0000 (GMT)
    Final-Recipient: rfc822; neville@XXXXXXX
    Action: failed
    Status: 5.7.1
    Remote-MTA: dns; spool.mail.gandi.net
    Diagnostic-Code: smtp; 554 5.7.1 Service unavailable; Client host
        [XXXXXXX] blocked using pbl.spamhaus.org;
        http://www.spamhaus.org/query/bl?ip=XXXXXXX
    --78E73A382D4.1356018107/G4-N-2.local
    Content-Description: Undelivered Message
    Content-Type: message/rfc822
    Received: by G4-N-2.local (Postfix, from userid 501)
              id 78E73A382D4; Thu, 20 Dec 2012 15:41:47 +0000 (GMT)
    To: neville@XXXXXXX
    Subject: test
    Message-Id: <[email protected]>
    Date: Thu, 20 Dec 2012 15:41:47 +0000 (GMT)
    From: [email protected] (Neville Hillyer)
    test email
    --78E73A382D4.1356018107/G4-N-2.local--

    http://www.spamhaus.org says:
    Mail servers only run spam filters such as Spamhaus PBL on port 25, so if you find you are being blocked by the PBL when you try to send mail to your mail server that means you are not communicating with the mail server on the 'authenticated' port 587 but you're still on port 25. This means your 'SMTP Authentication' is not working correctly.
    http://wiki.gandi.net/en/mail/standard-settings#smtp-account says:
    SMTP Account
    Name server : mail.gandi.net
    Port : 25, 465 (with SSL) or 587 (try one or the other)
    TLS or SSL: yes
    SMTP Authentication : yes, using the same settings as for the POP / IMAP account
    I was trying to use the same settings I have used for several years with Thunderbird and Apple Mail, ie SSL on port 465.
    Is there something wrong with my settings which could be preventing mailx from using port 465?
    A few debug tips would be appreciated.
    Your link causes me to ask:  Does the mailx on Leopard support SMTP directly?

  • How to add X-authenticated header with SMTP-auth

    I have smtp-auth working here. I also have normal mail header to see what ip the message is coming from. But I'd like to add X-authenticated to signature the mail is authenticated by end user.
    Can I do that? What parameter i can use for message filter?
    Many thanks.
    Chris

    Currently you can't ; however, you should open a case with IronPort and request that feature - the more that request the feature the better the chance for it to get implemented. My company has already requested this feature. We asked for a variable and a condition that we could use in filters.

  • Pop before smtp and smtp auth

    Hi Jay,
    hope all is well with you.
    what is pop before smtp and how to see if it is enabled?
    what is smtp auth and how to see if it is enabled? Is it enabled by default on MS 6.x?
    what happens if smtp auth is not enabled? Will my mail server be a relay?
    Is there any additional configuration that should be done on messaging server to allow connection for dial-up users?
    thanks,

    Hi Jay,
    hope all is well with you.
    what is pop before smtp and how to see if it is
    enabled?Pop before SMTP is a very old, and little used method for "authenticating" users. There is virtually no reason to turn this on, anymore.
    It's done through the MMP, and is the only reason to actually use the SMTP proxy that's part of MMP.
    I would not go there unless your environment requires it. Most do not. Most clients support SMTP authentication, which is much better, and is on by default.
    >
    what is smtp auth and how to see if it is enabled? Is
    it enabled by default on MS 6.x?See above. Yes, smtp authentication is on by default.
    >
    what happens if smtp auth is not enabled? Will my
    mail server be a relay?Totally different issue.
    No.
    If smtp auth is off, if you have external users, they likely will not be allowed to send to other external users..
    >
    Is there any additional configuration that should be
    done on messaging server to allow connection for
    dial-up users?If "dial-up users" means that they come from ip addresses outside your network, then smtp auth will allow them full access.
    thanks,

  • "mail.smtp.from" is not working for me

    There seem to be zero other posts like this, so I'm probably just doing something obviously dumb,
    but for me, setting the mail.smtp.from property seems to have no effect.
    The debug output shown below says to me that while the property has been set, the transport is using the From address not the value of the property.
    Any suggestions for what might be causing this?
    //set:
    Properties prop = new Properties();
    prop.put("mail.smtp.host", SMTPServers ); //see below
    prop.put("mail.smtp.from","[email protected]");
    sessions{i} = Session.getInstance(prop, null);
    //use:
    System.out.println("(session mail.smtp.from is '" + sessions{i}.getProperty("mail.smtp.from") + "')");
    sessions{i}.setDebug(true);
    mimeMsg = generateMimeMsg(msg, sessions{i});
    Transport.send(mimeMsg);
    //the console output:
    (session mail.smtp.from is '[email protected]')
    DEBUG SMTP SENT: mail from: <[email protected]>
    //note - Looks like this forum's software is grabbing my square brackets,
    so {i} in this post stands for opensquarebracket i closesquarebracket...

    I haven't read the FAQ, at least not lately. I'm just stating an interpretation of the behaviour that you described.
    Normally, system properties are used to specify defaults that can be overridden. It doesn't make sense to me to have to set a system property to "override" something that you do normally in your code. As a designer, it's obvious to me that the system property should be the default value for "from" and it should be possible to override that on a message-by-message basis by explicitly setting (and thus overriding) the from-address. And you confirm that it really does work that way. I'm not surprised at all. I would suggest that if the FAQ doesn't say that, then it needs to be fixed.

Maybe you are looking for

  • Would you buy an n200 when firmware upgrade a problem or go with nan

    My dealer has both the n200 and nano with n200 a bit lower in price.Would you go with n200 if no firmware upgrade seems to exist or go for the nano?Does the n200 have decent firmware in it so upgrade not needed?Is there firmware out there to stop the

  • How do I know the daq card is collecting data i.e. has been triggered trigger

    I want to alert the user that the daq card is collecting data after he pushes the trigger switch.  I wish to update a message text box when it has been triggered.  Thanks,  PCI-6221 37 pin

  • Is there any way i can upgrade my mac to increase speed

    here is my spec   Model Name:          iMac   Model Identifier:          iMac12,2   Processor Name:          Intel Core i5   Processor Speed:          2.7 GHz   Number of Processors:          1   Total Number of Cores:          4   L2 Cache (per Core

  • Why ProfileAdapterRepository is called so? where is the Adapter in it?

    Does anyone know why ProfileAdapterRepository is called so. You won't see the word Adapter in any other repository name. Do we have an implementation of adapter pattern in ProfileRepository? /atg/commerce/claimable/ClaimableRepository /atg/commerce/i

  • Vbak-kztlf is not filled in va01

    In transaction VA01 vbak-kztlf field is not filled automatically from customer master record. I checked that the complete delivery flag is empty in the master record also in the sales document. How can i solve this problem? Thanking you in advance. K