cancel
Showing results for 
Search instead for 
Did you mean: 

Setting up SMTP with 3.4

mcollins323
Champ in-the-making
Champ in-the-making
I am not seeing my notifications being sent out.

First, it seems like I have 2 files in play:
C:\Alfresco3.4\tomcat\webapps\alfresco\WEB-INF\classes\alfresco\subsystems\email\OutboundSMTP\outboundSMTP.properties

and or

C:\Alfresco3.4\tomcat\shared\classes\alfresco-global.properties

I entered the same in both files but I am still not seeing emails. 

Does Share use the same setting?   

Is there a test webscript I can run?

mail.host=111.111.111.11
mail.port=###
mail.username=xxx
mail.password=_xxx
mail.encoding=UTF-8
mail.from.default=xxx
mail.smtp.auth=true
mail.protocol=smtp

#use these properties to send test message during start of subsystem
mail.testmessage.send=false
mail.testmessage.to=xxx@gmail.com
mail.testmessage.subject=Outbound SMTP
mail.testmessage.text=The Outbound SMTP email subsystem is working.
4 REPLIES 4

loftux
Star Contributor
Star Contributor
Since I see an gmail address, I assume that is what you are trying to user.
Then you have an answer in this thread http://forums.alfresco.com/en/viewtopic.php?f=9&t=36053
If it still doesn't work following advice there, then post the error log when you have set the send test message to true.

mcollins323
Champ in-the-making
Champ in-the-making
Thanks for your reply.

My mail server is my own and not gmail.  I am using port 587.  My Outlook uses the same settings and works fine.

The error I am getting in the error log is below:
08:42:05,214 User:admin ERROR [action.executer.MailActionExecuter] Failed to send email to mike@supportxxx.com
org.springframework.mail.MailSendException; nested exception details (1) are:
Failed message 1:
javax.mail.SendFailedException: Invalid Addresses;
  nested exception is:
   com.sun.mail.smtp.SMTPAddressFailedException: 550 You must log in to send mail on this port.

   at com.sun.mail.smtp.SMTPTransport.rcptTo(SMTPTransport.java:1196)
   at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:584)
   at org.springframework.mail.javamail.JavaMailSenderImpl.doSend(JavaMailSenderImpl.java:402)
   at org.springframework.mail.javamail.JavaMailSenderImpl.send(JavaMailSenderImpl.java:341)
   at org.springframework.mail.javamail.JavaMailSenderImpl.send(JavaMailSenderImpl.java:356)


I have the username and password,  It's like Alfresco did not autenticate yet.

loftux
Star Contributor
Star Contributor
If you look at my reply in that thread you can see some settings to change that applies to not just gmail. Try those and see if it helps.

mcollins323
Champ in-the-making
Champ in-the-making
Well,

I am moving over to use Google and I am authenticating ok but now getting the below.

If I use a wrong password it does give me an authintication error.  Do you need to do something on the Google settings?  I did select outgoing to use UTF-8.

13:38:06,089 User:admin ERROR [action.executer.MailActionExecuter] Failed to send email to mike@supportobjective.com
org.springframework.mail.MailSendException; nested exception details (1) are:
Failed message 1:
javax.mail.MessagingException: IOException while sending message;
  nested exception is:
   java.io.UnsupportedEncodingException: UTF-8  
   at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:625)
   at org.springframework.mail.javamail.JavaMailSenderImpl.doSend(JavaMailSenderImpl.java:402)
   at org.springframework.mail.javamail.JavaMailSenderImpl.send(JavaMailSenderImpl.java:341)
   at org.springframework.mail.javamail.JavaMailSenderImpl.send(JavaMailSenderImpl.java:356)
   at org.springframework.mail.javamail.JavaMailSenderImpl.send(JavaMailSenderImpl.java:345)
   at org.alfresco.repo.action.executer.MailActionExecuter.executeImpl(MailActionExecuter.java:439)
   at org.alfresco.repo.action.executer.ActionExecuterAbstractBase.execute(ActionExecuterAbstractBase.java:133)


Caused by: org.springframework.mail.MailSendException; nested exceptions (1) are:
Failed message 1: javax.mail.MessagingException: IOException while sending message;
  nested exception is:
   java.io.UnsupportedEncodingException: UTF-8  
   at org.springframework.mail.javamail.JavaMailSenderImpl.doSend(JavaMailSenderImpl.java:421)
   at org.springframework.mail.javamail.JavaMailSenderImpl.send(JavaMailSenderImpl.java:341)
   at org.springframework.mail.javamail.JavaMailSenderImpl.send(JavaMailSenderImpl.java:356)
   at org.springframework.mail.javamail.JavaMailSenderImpl.send(JavaMailSenderImpl.java:345)
   at org.alfresco.repo.action.executer.MailActionExecuter.executeImpl(MailActionExecuter.java:439)
   … 147 more

So this looks like javamail not liking that value.  Does javamail want something else?

M