Inbound e-mail and gmail.com accounts
I’ve tested Alfresco 4.0.d inbound email (to Space with Alias) configuration with Google Mail STMP, but mails not received…
To get the solution first increase logging level for subethamail package:
log4j.logger.org.subethamail.smtp.server=debug |
Let see the log events:
00:08:30,585 DEBUG [org.subethamail.smtp.server.Session] SMTP connection from mail-wg0-f45.google.com/74.125.82.45, new connection count: 1 00:08:30,586 DEBUG [org.subethamail.smtp.server.Session] Server: 220 alfresco.louise.hu ESMTP SubEthaSMTP 3.1.6 00:08:30,615 DEBUG [org.subethamail.smtp.server.Session] Client: EHLO mail-wg0-f45.google.com 00:08:30,615 DEBUG [org.subethamail.smtp.server.Session] Server: 250-alfresco.louise.hu 250-8BITMIME 250-STARTTLS 250 Ok 00:08:30,643 DEBUG [org.subethamail.smtp.server.Session] Client: STARTTLS 00:08:30,643 DEBUG [org.subethamail.smtp.server.Session] Server: 220 Ready to start TLS 00:08:30,673 DEBUG [org.subethamail.smtp.server.Session] Error reading client command: Socket closed java.net.SocketException: Socket closed at java.net.SocketInputStream.socketRead0(Native Method) at java.net.SocketInputStream.read(SocketInputStream.java:129) at java.net.SocketInputStream.read(SocketInputStream.java:182) at org.subethamail.smtp.io.CRLFTerminatedReader.read(CRLFTerminatedReader.java:194) at org.subethamail.smtp.io.CRLFTerminatedReader.readLine(CRLFTerminatedReader.java:135) at org.subethamail.smtp.server.Session.runCommandLoop(Session.java:200) at org.subethamail.smtp.server.Session.run(Session.java:125) |
As we read above, Google Mail SMTP tried to use TLS, but Alfresco was not configured with StartTLS support.
To take a quick fix to receive emails from gmail accounts, just hide TLS support in alfresco-global.properties:
email.server.hideTLS=true |