0
Answered

Email Links

csonon 3 years ago • updated by Christian Zelaya 8 months ago 3

I am configuring MyCollab and have setup the system to use the default port. What I have done is configured my public IP with a No-IP service to allow me to access my system from anywhere. So for example I have mydomain.ddns.net and it redirects to my IP address to connect to My Collab. I then configured my router to redirect port 80 requests internally to port 8080 and to the internal server. This all works well, without issue.


The issue I have is that the emails send with the public IP address and the port. I can live with (although prefer not to) the IP address showing as they go to internal people only. I however need to remove the port information from the email as it causes it to not work. Is this possible?

Answered

If you use (or host) the public mail server then emails send with the public IP address and port, is it right? If you set up a local email server and use NO-IP service then I believe the system will not send with the public IP.


Regarding to the port, the default email port is 25 and in the next version we ask mail service will use this default port if it can not determine the specific port from user, so I guess your issue is removed. Please wait for the next release in the couple days. I will ask you confirm this issue is resolved with the next release in this thread as well.


Hai Nguyen

We have just released the new version of MyCollab. The default port if you do not enter is 25. I am not sure whether it is resolved your issue though but that is what we do :). Let me know the result please.


Regards,

Hai Nguyen

Excuse my English :(.
When trying to configure the mail notification service I receive the following error
I have my mail server in a hosting, my hosting provider mentions that the ports are enabled 22 143 465 993.


java: 1.8_144

php7

apache2

mysql


14:27:14,582 ERROR c.m.s.AppEventBus:42 - Error in event bus execution
com.mycollab.core.MyCollabException: org.apache.commons.mail.EmailException: Sending the email to the following server failed : smtp.cambiosalberdi.com:465
        at com.mycollab.module.mail.DefaultMailer.sendHTMLMail(DefaultMailer.java:107)
        at com.mycollab.module.mail.DefaultMailer.sendHTMLMail(DefaultMailer.java:117)
        at com.mycollab.module.mail.service.impl.ExtMailServiceImpl.sendHTMLMail(ExtMailServiceImpl.java:57)
        at com.mycollab.module.user.esb.SendUserInvitationCommand.execute(SendUserInvitationCommand.scala:58)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at com.google.common.eventbus.Subscriber.invokeSubscriberMethod(Subscriber.java:91)
        at com.google.common.eventbus.Subscriber$1.run(Subscriber.java:76)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
        at java.lang.Thread.run(Thread.java:748)
Caused by: org.apache.commons.mail.EmailException: Sending the email to the following server failed : smtp.cambiosalberdi.com:465
        at org.apache.commons.mail.Email.sendMimeMessage(Email.java:1421)
        at org.apache.commons.mail.Email.send(Email.java:1448)
        at com.mycollab.module.mail.DefaultMailer.sendHTMLMail(DefaultMailer.java:105)
        ... 12 common frames omitted
Caused by: com.sun.mail.util.MailConnectException: Couldn't connect to host, port: smtp.cambiosalberdi.com, 465; timeout 60000
        at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:2118)
        at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:712)
        at javax.mail.Service.connect(Service.java:388)
        at javax.mail.Service.connect(Service.java:246)
        at javax.mail.Service.connect(Service.java:195)
        at javax.mail.Transport.send0(Transport.java:254)
        at javax.mail.Transport.send(Transport.java:124)
        at org.apache.commons.mail.Email.sendMimeMessage(Email.java:1411)
        ... 14 common frames omitted
Caused by: java.net.UnknownHostException: smtp.cambiosalberdi.com
        at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:184)
        at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
        at java.net.Socket.connect(Socket.java:589)
        at com.sun.mail.util.SocketFetcher.createSocket(SocketFetcher.java:329)
        at com.sun.mail.util.SocketFetcher.getSocket(SocketFetcher.java:217)
        at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:2084)
        ... 21 common frames omitted