3 Replies Latest reply: Jun 8, 2012 7:41 AM by 942219 RSS

    JavaMail Question

    942219
      I was looking for some help with JavaMail. I checked thru the forum and online resources but didn't see anything that would point me to a solution. Here is my question/problem:

      Up until 6/2/2012 I was able to send all emails thru JavaMail with no problem to external addresses. Now it seems I can't send certain emails out to external addresses thru JavaMail. The addresses end in @vtext and @txt.att.net so far that won't go thru to their destination.
      These are email to send text messages.

      Some of the debugging tests I tried
      ~ was to send to other carriers (Virgin Mobile and Sprint) thru same Java class and these go thru successfully.
      ~ created simple Java class to send to Yahoo and ##########@vtext.com and the Yahoo email arrives but not vtext message. Changed to a Virgin Mobile account and worked.

      ~ checked for firewall/filter or carrier mail server blocking internal by using Linux mail command on same server with successful text message arriving
      ~ the linux maillog is not flagging any issues and comparing to a successful carrier email to vtext is similar
      ~ the From has been changed and tested to see if that was a blocker. It was not

      I was wondering what could the differences be between using the "mail" command (success) and JavMail (not successful) configurations and some things to check for in which log files other than maillog?

      Turning Debug on:
      DEBUG: setDebug: JavaMail version 1.4.4
      DEBUG: getProvider() returning javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun Microsystems, Inc]
      DEBUG SMTP: useEhlo true, useAuth false
      DEBUG SMTP: trying to connect to host "localhost", port 25, isSSL false
      220 ef.ef.ef.com ESMTP Sendmail 8.13.8/8.13.8; Thu, 7 Jun 2012 07:45:51 -0400
      DEBUG SMTP: connected to host "localhost", port: 25

      EHLO ef.ef.ef.com
      250-ef.ef.ef.com Hello localhost.localdomain [127.0.0.1], pleased to meet you
      250-ENHANCEDSTATUSCODES
      250-PIPELINING
      250-8BITMIME
      250-SIZE
      250-DSN
      250-ETRN
      250-DELIVERBY
      250 HELP
      DEBUG SMTP: Found extension "ENHANCEDSTATUSCODES", arg ""
      DEBUG SMTP: Found extension "PIPELINING", arg ""
      DEBUG SMTP: Found extension "8BITMIME", arg ""
      DEBUG SMTP: Found extension "SIZE", arg ""
      DEBUG SMTP: Found extension "DSN", arg ""
      DEBUG SMTP: Found extension "ETRN", arg ""
      DEBUG SMTP: Found extension "DELIVERBY", arg ""
      DEBUG SMTP: Found extension "HELP", arg ""
      DEBUG SMTP: use8bit false
      MAIL FROM:<bdy@us.ef.com>
      250 2.1.0 <bdy@us.ef.com>... Sender ok
      RCPT TO:<9145555555@vtext.com>
      250 2.1.5 <9145555555@vtext.com>... Recipient ok
      RCPT TO:<9145555555@vtext.com>
      250 2.1.5 <9145555555@vtext.com>... Recipient ok
      RCPT TO:<matt@yahoo.com>
      250 2.1.5 <matt@yahoo.com>... Recipient ok
      DEBUG SMTP: Verified Addresses
      DEBUG SMTP: 9145555555@vtext.com
      DEBUG SMTP: 9145555555@vtext.com
      DEBUG SMTP: matt@yahoo.com
      DATA
      354 Enter mail, end with "." on a line by itself
      Date: Thu, 7 Jun 2012 07:45:51 -0400 (EDT)
      From: bdy@us.ef.com
      To: 9145555555@vtext.com
      Cc: 9145555555@vtext.com, matt@yahoo.com
      Message-ID: <2129362951.1.1339069551692.JavaMail.matt@ef.ef.ef.com>
      Subject: Test Outgoing with new from
      MIME-Version: 1.0
      Content-Type: multipart/mixed;
      boundary="----=_Part_0_844555908.1339069551677"

      ------=_Part_0_844555908.1339069551677
      Content-Type: text/html; charset=us-ascii
      Content-Transfer-Encoding: 7bit

      Server is sending messages?
      ------=_Part_0_844555908.1339069551677--
      .
      250 2.0.0 q57Bjpbo014089 Message accepted for delivery
      QUIT
      221 2.0.0 ef.ef.ef.com closing connection

      Thanks, Matt

      Edited by: user1339088 on Jun 7, 2012 5:02 AM