Quantcast
Channel: iRedMail
Viewing all articles
Browse latest Browse all 14118

Android Email client/Mail sending through JAVA issue

$
0
0

==== Required information ====
- iRedMail version: 0.9.0
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Web server (Apache or Nginx):Apache2
- Linux/BSD distribution name and version: Ubuntu 14.04
- Related log if you're reporting an issue:
====

We are using the  Iredmail over web access but we are facing issues while configuring the standard Android client for our mail server.

We are entering the static IP/Domain name for both pop3 and SMTP
Security Type - We have tried all possible combinations (STARTTLS,SSL/TLS)

We are getting an error like this-" Could not open connection to the server"

Further, while sending any mail grammatically through Java mail API, we are getting the following error message:

Exception in thread "main" java.lang.RuntimeException: javax.mail.MessagingException: Could not connect to SMTP host: thedpl.in, port: 587;
  nested exception is:
    java.net.ConnectException: Connection refused: connect
    at utility.SendMailAttachmentDPL.main(SendMailAttachmentDPL.java:91)
Caused by: javax.mail.MessagingException: Could not connect to SMTP host: thedpl.in, port: 587;
  nested exception is:
    java.net.ConnectException: Connection refused: connect
    at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1934)
    at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:638)
    at javax.mail.Service.connect(Service.java:317)
    at javax.mail.Service.connect(Service.java:176)
    at javax.mail.Service.connect(Service.java:125)
    at javax.mail.Transport.send0(Transport.java:194)
    at javax.mail.Transport.send(Transport.java:124)
    at utility.SendMailAttachmentDPL.main(SendMailAttachmentDPL.java:86)
Caused by: java.net.ConnectException: Connection refused: connect
    at java.net.DualStackPlainSocketImpl.connect0(Native Method)
    at java.net.DualStackPlainSocketImpl.socketConnect(Unknown Source)
    at java.net.AbstractPlainSocketImpl.doConnect(Unknown Source)
    at java.net.AbstractPlainSocketImpl.connectToAddress(Unknown Source)
    at java.net.AbstractPlainSocketImpl.connect(Unknown Source)
    at java.net.PlainSocketImpl.connect(Unknown Source)
    at java.net.SocksSocketImpl.connect(Unknown Source)
    at java.net.Socket.connect(Unknown Source)
    at java.net.Socket.connect(Unknown Source)
    at com.sun.mail.util.SocketFetcher.createSocket(SocketFetcher.java:288)
    at com.sun.mail.util.SocketFetcher.getSocket(SocketFetcher.java:231)
    at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1900)
    ... 7 more


Viewing all articles
Browse latest Browse all 14118

Trending Articles