You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@openmeetings.apache.org by Stelios <ch...@gmail.com> on 2014/02/25 12:23:33 UTC

Openmeetings can't send mail through exim

Hello all,

I have installed successfully openmeetings, and I have also configured exim
so that I can send emails to external servers (I have tested through telnet
and everything is ok).

But when I try to create a new user, or reset password openmeetings won't
send the email.
I have configured openmeetings' settings like this: http://is.gd/JLz717

In the openmeetings.log I find this exception (where myhost.mydomain.gr =
the FQDN, to which I also connect trhough telnet), repeating(for every mail
delivery attempt I suppose):


DEBUG 02-25 13:09:34.319 o.a.o.u.m.MailHandler:201 [taskExecutor-3] -
Message sending in progress
DEBUG 02-25 13:09:34.319 o.a.o.u.m.MailHandler:202 [taskExecutor-3] -   To:
chefarov@gmail.com
DEBUG 02-25 13:09:34.319 o.a.o.u.m.MailHandler:203 [taskExecutor-3] -
Subject: OpenMeetings password reset
DEBUG 02-25 13:09:34.319 o.a.o.u.m.MailHandler:165 [taskExecutor-3] -
getMimeMessage
DEBUG 02-25 13:09:34.319 o.a.o.u.m.MailHandler:133 [taskExecutor-3] -
getBasicMimeMessage
ERROR 02-25 13:09:34.359 o.a.o.u.m.MailHandler:211 [taskExecutor-2] - Error
while sending message
javax.mail.SendFailedException: Send failure
(javax.mail.MessagingException: Could not connect to SMTP host:
myhost.mydomain.gr, port: 25 (java.net.ConnectException: Connection
refused))
    at javax.mail.Transport.send(Transport.java:163)
~[geronimo-javamail_1.4_spec-bundle-1.7.1.jar:1.7.1]
    at javax.mail.Transport.send(Transport.java:48)
~[geronimo-javamail_1.4_spec-bundle-1.7.1.jar:1.7.1]
    at
org.apache.openmeetings.utils.mail.MailHandler$1.run(MailHandler.java:207)
~[openmeetings-2.2.0-RELEASE.jar:na]
    at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
[na:1.6.0_45]
    at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
[na:1.6.0_45]
    at java.lang.Thread.run(Thread.java:662) [na:1.6.0_45]
Caused by: javax.mail.MessagingException: Could not connect to SMTP host:
myhost.mydomain.gr, port: 25 (java.net.ConnectException: Connection refused)
    at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1961)
~[mail-jar-1.4.7.jar:1.4.7]
    at
com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:654)
~[mail-jar-1.4.7.jar:1.4.7]
    at javax.mail.Service.connect(Service.java:274)
~[geronimo-javamail_1.4_spec-bundle-1.7.1.jar:1.7.1]
    at javax.mail.Service.connect(Service.java:91)
~[geronimo-javamail_1.4_spec-bundle-1.7.1.jar:1.7.1]
    at javax.mail.Service.connect(Service.java:76)
~[geronimo-javamail_1.4_spec-bundle-1.7.1.jar:1.7.1]
    at javax.mail.Transport.send(Transport.java:94)
~[geronimo-javamail_1.4_spec-bundle-1.7.1.jar:1.7.1]
    ... 5 common frames omitted
Caused by: java.net.ConnectException: Connection refused
    at java.net.PlainSocketImpl.socketConnect(Native Method) ~[na:1.6.0_45]
    at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
~[na:1.6.0_45]
    at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
~[na:1.6.0_45]
    at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
~[na:1.6.0_45]
    at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
~[na:1.6.0_45]
    at java.net.Socket.connect(Socket.java:529) ~[na:1.6.0_45]
    at java.net.Socket.connect(Socket.java:478) ~[na:1.6.0_45]
    at com.sun.mail.util.SocketFetcher.createSocket(SocketFetcher.java:321)
~[mail-jar-1.4.7.jar:1.4.7]
    at com.sun.mail.util.SocketFetcher.getSocket(SocketFetcher.java:237)
~[mail-jar-1.4.7.jar:1.4.7]
    at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1927)
~[mail-jar-1.4.7.jar:1.4.7]
    ... 10 common frames omitted


Any suggestions?


Thanks for your time

Re: Openmeetings can't send mail through exim

Posted by rahul bhola <rb...@gmail.com>.
u need to change the configuration files from ur smtp server to accept
trafic from all. Currently it is only acception from localhost.

Re: Openmeetings can't send mail through exim

Posted by Stelios <ch...@gmail.com>.
Hello

As I mentioned I am able to send email to external gmail recipient when I
connect to localhost through telnet. Thus the port: 25 can't be
closed/blocked for outgoing traffic, right?

If I nmap locahost (25 is  open)
If I nmap cineserver.3p.tuc.gr (FQDN)  (25 is closed... I tried to open
through iptables ... no luck) , but that can't be the problem when
*sending*email. I suppose it would be a problem for
*receiving* emails... right?

Btw if I  netstat -tulpn | grep :25
tcp        0      0 127.0.0.1:25            0.0.0.0:*
LISTEN      3506/exim4
tcp        0      0 147.27.23.52:25         0.0.0.0:*
LISTEN      3506/exim4
tcp6       0      0 ::1:25                  :::*
LISTEN      3506/exim4

so exim daemon is listening through 25 , it can't send trhough other port i
suppose :P

Anyway I can create users manually or let it open I suppose :)

Re: Openmeetings can't send mail through exim

Posted by rahul bhola <rb...@gmail.com>.
it is showing couldn't connect. Do an nmap on the SMTP server to check if
the port is open or not


On Tue, Feb 25, 2014 at 4:57 PM, Vasiliy Degtyarev <va...@unipro.ru> wrote:

>  Please check SMTP host and port configuration.
>
> I suppose that the smtp port 25 is not available.
>
> Thanks,
> Vasiliy
>
>
>
> On 25.02.2014 18:23, Stelios wrote:
>
>   Hello all,
>
>  I have installed successfully openmeetings, and I have also configured
> exim so that I can send emails to external servers (I have tested through
> telnet and everything is ok).
>
>  But when I try to create a new user, or reset password openmeetings won't
> send the email.
>  I have configured openmeetings' settings like this: http://is.gd/JLz717
>
>  In the openmeetings.log I find this exception (where myhost.mydomain.gr= the FQDN, to which I also connect trhough telnet), repeating(for every
> mail delivery attempt I suppose):
>
>
> DEBUG 02-25 13:09:34.319 o.a.o.u.m.MailHandler:201 [taskExecutor-3] -
> Message sending in progress
> DEBUG 02-25 13:09:34.319 o.a.o.u.m.MailHandler:202 [taskExecutor-3] -
> To: chefarov@gmail.com
> DEBUG 02-25 13:09:34.319 o.a.o.u.m.MailHandler:203 [taskExecutor-3] -
> Subject: OpenMeetings password reset
> DEBUG 02-25 13:09:34.319 o.a.o.u.m.MailHandler:165 [taskExecutor-3] -
> getMimeMessage
> DEBUG 02-25 13:09:34.319 o.a.o.u.m.MailHandler:133 [taskExecutor-3] -
> getBasicMimeMessage
> ERROR 02-25 13:09:34.359 o.a.o.u.m.MailHandler:211 [taskExecutor-2] -
> Error while sending message
> javax.mail.SendFailedException: Send failure
> (javax.mail.MessagingException: Could not connect to SMTP host:
> myhost.mydomain.gr, port: 25 (java.net.ConnectException: Connection
> refused))
>     at javax.mail.Transport.send(Transport.java:163)
> ~[geronimo-javamail_1.4_spec-bundle-1.7.1.jar:1.7.1]
>     at javax.mail.Transport.send(Transport.java:48)
> ~[geronimo-javamail_1.4_spec-bundle-1.7.1.jar:1.7.1]
>     at
> org.apache.openmeetings.utils.mail.MailHandler$1.run(MailHandler.java:207)
> ~[openmeetings-2.2.0-RELEASE.jar:na]
>     at
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
> [na:1.6.0_45]
>     at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
> [na:1.6.0_45]
>     at java.lang.Thread.run(Thread.java:662) [na:1.6.0_45]
> Caused by: javax.mail.MessagingException: Could not connect to SMTP host:
> myhost.mydomain.gr, port: 25 (java.net.ConnectException: Connection
> refused)
>     at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1961)
> ~[mail-jar-1.4.7.jar:1.4.7]
>     at
> com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:654)
> ~[mail-jar-1.4.7.jar:1.4.7]
>     at javax.mail.Service.connect(Service.java:274)
> ~[geronimo-javamail_1.4_spec-bundle-1.7.1.jar:1.7.1]
>     at javax.mail.Service.connect(Service.java:91)
> ~[geronimo-javamail_1.4_spec-bundle-1.7.1.jar:1.7.1]
>     at javax.mail.Service.connect(Service.java:76)
> ~[geronimo-javamail_1.4_spec-bundle-1.7.1.jar:1.7.1]
>     at javax.mail.Transport.send(Transport.java:94)
> ~[geronimo-javamail_1.4_spec-bundle-1.7.1.jar:1.7.1]
>     ... 5 common frames omitted
> Caused by: java.net.ConnectException: Connection refused
>     at java.net.PlainSocketImpl.socketConnect(Native Method) ~[na:1.6.0_45]
>     at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
> ~[na:1.6.0_45]
>     at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
> ~[na:1.6.0_45]
>     at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
> ~[na:1.6.0_45]
>     at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
> ~[na:1.6.0_45]
>     at java.net.Socket.connect(Socket.java:529) ~[na:1.6.0_45]
>     at java.net.Socket.connect(Socket.java:478) ~[na:1.6.0_45]
>     at
> com.sun.mail.util.SocketFetcher.createSocket(SocketFetcher.java:321)
> ~[mail-jar-1.4.7.jar:1.4.7]
>     at com.sun.mail.util.SocketFetcher.getSocket(SocketFetcher.java:237)
> ~[mail-jar-1.4.7.jar:1.4.7]
>     at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1927)
> ~[mail-jar-1.4.7.jar:1.4.7]
>     ... 10 common frames omitted
>
>
>  Any suggestions?
>
>
>  Thanks for your time
>
>
>


-- 
Rahul Bhola
B.E.
computers
Core Member
Department of backstage
Bits Pilani KK Birla Goa Campus

Re: Openmeetings can't send mail through exim

Posted by Vasiliy Degtyarev <va...@unipro.ru>.
Please check SMTP host and port configuration.

I suppose that the smtp port 25 is not available.

Thanks,
Vasiliy


On 25.02.2014 18:23, Stelios wrote:
> Hello all,
>
> I have installed successfully openmeetings, and I have also configured 
> exim so that I can send emails to external servers (I have tested 
> through telnet and everything is ok).
>
> But when I try to create a new user, or reset password openmeetings 
> won't send the email.
> I have configured openmeetings' settings like this: http://is.gd/JLz717
>
> In the openmeetings.log I find this exception (where 
> myhost.mydomain.gr <http://myhost.mydomain.gr> = the FQDN, to which I 
> also connect trhough telnet), repeating(for every mail delivery 
> attempt I suppose):
>
>
> DEBUG 02-25 13:09:34.319 o.a.o.u.m.MailHandler:201 [taskExecutor-3] - 
> Message sending in progress
> DEBUG 02-25 13:09:34.319 o.a.o.u.m.MailHandler:202 [taskExecutor-3] 
> -   To: chefarov@gmail.com <ma...@gmail.com>
> DEBUG 02-25 13:09:34.319 o.a.o.u.m.MailHandler:203 [taskExecutor-3] 
> -   Subject: OpenMeetings password reset
> DEBUG 02-25 13:09:34.319 o.a.o.u.m.MailHandler:165 [taskExecutor-3] - 
> getMimeMessage
> DEBUG 02-25 13:09:34.319 o.a.o.u.m.MailHandler:133 [taskExecutor-3] - 
> getBasicMimeMessage
> ERROR 02-25 13:09:34.359 o.a.o.u.m.MailHandler:211 [taskExecutor-2] - 
> Error while sending message
> javax.mail.SendFailedException: Send failure 
> (javax.mail.MessagingException: Could not connect to SMTP host: 
> myhost.mydomain.gr <http://myhost.mydomain.gr>, port: 25 
> (java.net.ConnectException: Connection refused))
>     at javax.mail.Transport.send(Transport.java:163) 
> ~[geronimo-javamail_1.4_spec-bundle-1.7.1.jar:1.7.1]
>     at javax.mail.Transport.send(Transport.java:48) 
> ~[geronimo-javamail_1.4_spec-bundle-1.7.1.jar:1.7.1]
>     at 
> org.apache.openmeetings.utils.mail.MailHandler$1.run(MailHandler.java:207) 
> ~[openmeetings-2.2.0-RELEASE.jar:na]
>     at 
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895) 
> [na:1.6.0_45]
>     at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918) 
> [na:1.6.0_45]
>     at java.lang.Thread.run(Thread.java:662) [na:1.6.0_45]
> Caused by: javax.mail.MessagingException: Could not connect to SMTP 
> host: myhost.mydomain.gr <http://myhost.mydomain.gr>, port: 25 
> (java.net.ConnectException: Connection refused)
>     at 
> com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1961) 
> ~[mail-jar-1.4.7.jar:1.4.7]
>     at 
> com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:654) ~[mail-jar-1.4.7.jar:1.4.7]
>     at javax.mail.Service.connect(Service.java:274) 
> ~[geronimo-javamail_1.4_spec-bundle-1.7.1.jar:1.7.1]
>     at javax.mail.Service.connect(Service.java:91) 
> ~[geronimo-javamail_1.4_spec-bundle-1.7.1.jar:1.7.1]
>     at javax.mail.Service.connect(Service.java:76) 
> ~[geronimo-javamail_1.4_spec-bundle-1.7.1.jar:1.7.1]
>     at javax.mail.Transport.send(Transport.java:94) 
> ~[geronimo-javamail_1.4_spec-bundle-1.7.1.jar:1.7.1]
>     ... 5 common frames omitted
> Caused by: java.net.ConnectException: Connection refused
>     at java.net.PlainSocketImpl.socketConnect(Native Method) 
> ~[na:1.6.0_45]
>     at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351) 
> ~[na:1.6.0_45]
>     at 
> java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213) 
> ~[na:1.6.0_45]
>     at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200) 
> ~[na:1.6.0_45]
>     at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366) 
> ~[na:1.6.0_45]
>     at java.net.Socket.connect(Socket.java:529) ~[na:1.6.0_45]
>     at java.net.Socket.connect(Socket.java:478) ~[na:1.6.0_45]
>     at 
> com.sun.mail.util.SocketFetcher.createSocket(SocketFetcher.java:321) 
> ~[mail-jar-1.4.7.jar:1.4.7]
>     at 
> com.sun.mail.util.SocketFetcher.getSocket(SocketFetcher.java:237) 
> ~[mail-jar-1.4.7.jar:1.4.7]
>     at 
> com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1927) 
> ~[mail-jar-1.4.7.jar:1.4.7]
>     ... 10 common frames omitted
>
>
> Any suggestions?
>
>
> Thanks for your time