<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Unable to start the Alfresco Email Subsystem in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/unable-to-start-the-alfresco-email-subsystem/m-p/22694#M9888</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear All,&lt;/P&gt;&lt;P&gt;We are not able to start the alfresco email subsystem as we are using the default SMTP port 25.&lt;/P&gt;&lt;P&gt;During the alfresco service start-up we are getting the below attached errors, Kindly check and advice on this.&lt;/P&gt;&lt;P&gt;As we cannot start the alfresco services via root id, Do we have any option to start only email service via root id.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;# Outbound Email Configuration&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;mail.host=XXXXXXXXXXXX&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;mail.port=25&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;mail.encoding=UTF-8&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;mail.from.default=XXXXXXXXXXXX&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;mail.smtp.auth=false&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;#Inbound Email Configuration&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;email.inbound.enabled=true&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;email.server.enabled=true&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;email.server.port=25&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;email.server.domain=XXXXXXXXXXXX&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Error log message. :-&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2017-10-05 16:24:28,423 INFO&amp;nbsp; [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] [localhost-startStop-1] Starting 'email' subsystem, ID: [email, inbound]&lt;BR /&gt;2017-10-05 16:24:28,501 WARN&amp;nbsp; [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] [localhost-startStop-1] Startup of 'email' subsystem, ID: [email, inbound] failed&lt;BR /&gt;java.lang.RuntimeException: java.net.BindException:&lt;STRONG&gt; Permission denied (Bind failed)&lt;/STRONG&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;at org.subethamail.smtp.server.SMTPServer.start(SMTPServer.java:292)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;at org.alfresco.email.server.impl.subetha.SubethaEmailServer.startup(SubethaEmailServer.java:90)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;at org.alfresco.email.server.EmailServer.onBootstrap(EmailServer.java:289)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;at org.springframework.extensions.surf.util.AbstractLifecycleBean.onApplicationEvent(AbstractLifecycleBean.java:56)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:96)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;at org.alfresco.repo.management.subsystems.ChildApplicationContextFactory$ChildApplicationContext.publishEvent(ChildApplicationContextFactory.java:569)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:954)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:482)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;at org.alfresco.repo.management.subsystems.ChildApplicationContextFactory$ApplicationContextState.start(ChildApplicationContextFactory.java:824)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;at org.alfresco.repo.management.subsystems.AbstractPropertyBackedBean.start(AbstractPropertyBackedBean.java:1098)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;at org.alfresco.repo.management.subsystems.AbstractPropertyBackedBean.onApplicationEvent(AbstractPropertyBackedBean.java:637)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;at org.alfresco.repo.management.SafeApplicationEventMulticaster.multicastEventInternal(SafeApplicationEventMulticaster.java:214)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;at org.alfresco.repo.management.SafeApplicationEventMulticaster.multicastEvent(SafeApplicationEventMulticaster.java:185)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:334)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:954)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:482)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:410)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:306)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:112)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;at org.alfresco.web.app.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:70)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:5118)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5634)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:899)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:875)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:652)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:679)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1966)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;at java.util.concurrent.FutureTask.run(FutureTask.java:266)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;at java.lang.Thread.run(Thread.java:748)&lt;BR /&gt;Caused by: java.net.BindException: Permission denied (Bind failed)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;at java.net.PlainSocketImpl.socketBind(Native Method)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;at java.net.AbstractPlainSocketImpl.bind(AbstractPlainSocketImpl.java:387)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;at java.net.ServerSocket.bind(ServerSocket.java:375)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;at org.subethamail.smtp.server.SMTPServer.createServerSocket(SMTPServer.java:334)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;at org.subethamail.smtp.server.SMTPServer.start(SMTPServer.java:288)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;... 32 more&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 05 Oct 2017 11:06:23 GMT</pubDate>
    <dc:creator>ganesh_batwal</dc:creator>
    <dc:date>2017-10-05T11:06:23Z</dc:date>
    <item>
      <title>Unable to start the Alfresco Email Subsystem</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/unable-to-start-the-alfresco-email-subsystem/m-p/22694#M9888</link>
      <description>Dear All,We are not able to start the alfresco email subsystem as we are using the default SMTP port 25.During the alfresco service start-up we are getting the below attached errors, Kindly check and advice on this.As we cannot start the alfresco services via root id, Do we have any option to start</description>
      <pubDate>Thu, 05 Oct 2017 11:06:23 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/unable-to-start-the-alfresco-email-subsystem/m-p/22694#M9888</guid>
      <dc:creator>ganesh_batwal</dc:creator>
      <dc:date>2017-10-05T11:06:23Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to start the Alfresco Email Subsystem</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/unable-to-start-the-alfresco-email-subsystem/m-p/22695#M9889</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You cannot bind on the privileged port 25. You must specify a different port for the inbound email server and use NAT tools like iptables to redirect incomming traffic.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Oct 2017 11:19:22 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/unable-to-start-the-alfresco-email-subsystem/m-p/22695#M9889</guid>
      <dc:creator>afaust</dc:creator>
      <dc:date>2017-10-05T11:19:22Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to start the Alfresco Email Subsystem</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/unable-to-start-the-alfresco-email-subsystem/m-p/22696#M9890</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for an advice.&lt;/P&gt;&lt;P&gt;I tried changing the default port from 25 to 1025, After port changing we are able to start the service ..but while sending email received the below mention mail server connection time out errors.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;fyi..&lt;/P&gt;&lt;P&gt;Added the below mention IP NAT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 25 -j REDIRECT --to-port 1025&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Failed to send email to [ganesh.batwal] : org.springframework.mail.MailSendException: Mail server connection failed; nested exception is com.sun.mail.util.MailConnectException: Couldn't connect to host, port: mailapp.jetairways.com, 1025; timeout -1;&lt;BR /&gt;&amp;nbsp; nested exception is:&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;java.net.ConnectException: Connection timed out (Connection timed out). Failed messages: com.sun.mail.util.MailConnectException: Couldn't connect to host, port: mailapp.jetairways.com, 1025; timeout -1;&lt;BR /&gt;&amp;nbsp; nested exception is:&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;java.net.ConnectException: Connection timed out (Connection timed out); message exceptions (1) are:&lt;BR /&gt;Failed message 1: com.sun.mail.util.MailConnectException: Couldn't connect to host, port: mailapp.jetairways.com, 1025; timeout -1;&lt;BR /&gt;&amp;nbsp; nested exception is:&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;java.net.ConnectException: Connection timed out (Connection timed out)&lt;BR /&gt;2017-10-05 15:49:50,009 ERROR [org.alfresco.repo.action.executer.MailActionExecuter] [mailAsyncAction3] Failed to send email to [ganesh.batwal] : org.springframework.mail.MailSendException: Mail server connection failed; nested exception is com.sun.mail.util.MailConnectException: Couldn't connect to host, port: mailapp.jetairways.com, 1025; timeout -1;&lt;BR /&gt;&amp;nbsp; nested exception is:&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;java.net.ConnectException: Connection timed out (Connection timed out). Failed messages: com.sun.mail.util.MailConnectException: Couldn't connect to host, port: mailapp.jetairways.com, 1025; timeout -1;&lt;BR /&gt;&amp;nbsp; nested exception is:&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;java.net.ConnectException: Connection timed out (Connection timed out); message exceptions (1) are:&lt;BR /&gt;Failed message 1: com.sun.mail.util.MailConnectException: Couldn't connect to host, port: mailapp.jetairways.com, 1025; timeout -1;&lt;BR /&gt;&amp;nbsp; nested exception is:&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;java.net.ConnectException: Connection timed out (Connection timed out)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Oct 2017 11:30:36 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/unable-to-start-the-alfresco-email-subsystem/m-p/22696#M9890</guid>
      <dc:creator>ganesh_batwal</dc:creator>
      <dc:date>2017-10-05T11:30:36Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to start the Alfresco Email Subsystem</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/unable-to-start-the-alfresco-email-subsystem/m-p/22697#M9891</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would include something like this in your service startup script (in my case the port is 1125).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;iptables -t nat -A OUTPUT -d localhost -p tcp --dport 25 -j REDIRECT --to-ports 1125&lt;BR /&gt;iptables -t nat -A PREROUTING -d $HOSTNAME -p tcp --dport 25 -j REDIRECT --to-ports 1125&lt;BR /&gt;iptables -t nat -A OUTPUT -d $HOSTNAME -p tcp --dport 25 -j REDIRECT --to-ports 1125&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;P&gt;--C.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Oct 2017 13:33:37 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/unable-to-start-the-alfresco-email-subsystem/m-p/22697#M9891</guid>
      <dc:creator>cesarista</dc:creator>
      <dc:date>2017-10-05T13:33:37Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to start the Alfresco Email Subsystem</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/unable-to-start-the-alfresco-email-subsystem/m-p/22698#M9892</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am confused about what you are trying to do. You have adjusted your INBOUND email config to use the non-privileged port of 1025, but then you are showing a stack trace where you are trying to SEND mail, which would be OUTBOUND, and the stack trace says it is trying to connect to mailapp.jetairways.com via port 1025, which probably doesn't make sense. Maybe you changed mail.port to 1025 when you should have changed email.server.port to 1025 and left mail.port set to 25, if that is the port that your mail server is listening on.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would get outbound mail working first. Once you are satisfied that is good, then worry about inbound.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Oct 2017 16:23:02 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/unable-to-start-the-alfresco-email-subsystem/m-p/22698#M9892</guid>
      <dc:creator>jpotts</dc:creator>
      <dc:date>2017-10-05T16:23:02Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to start the Alfresco Email Subsystem</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/unable-to-start-the-alfresco-email-subsystem/m-p/22699#M9893</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you all for your valuable support. We are able to start the email subsystem with below changes.&lt;/P&gt;&lt;P&gt;fyi..&lt;/P&gt;&lt;P&gt;1.Updated the port detail in alfresco-global.properties.. For Outbound "mail.port=25" and Inbound "email.server.port=1125"&lt;/P&gt;&lt;P&gt;2. Added the NAT for port rerouteing&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;iptables -t nat -A OUTPUT -d localhost -p tcp --dport 25 -j REDIRECT --to-ports 1125&lt;BR /&gt;iptables -t nat -A PREROUTING -d $HOSTNAME -p tcp --dport 25 -j REDIRECT --to-ports 1125&lt;BR /&gt;iptables -t nat -A OUTPUT -d $HOSTNAME -p tcp --dport 25 -j REDIRECT --to-ports 1125&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Oct 2017 06:43:41 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/unable-to-start-the-alfresco-email-subsystem/m-p/22699#M9893</guid>
      <dc:creator>ganesh_batwal</dc:creator>
      <dc:date>2017-10-06T06:43:41Z</dc:date>
    </item>
  </channel>
</rss>

