cancel
Showing results for 
Search instead for 
Did you mean: 

Error Sending notification mail for workflow

oluwasegzy
Champ in-the-making
Champ in-the-making
Hello All,

I created a rule on a space in my Home Space that should send accompanying mail to the next participator in my workflow but i got this error when mail is about being sent

segzy ERROR [action.executer.MailActionExecuter] Failed to send email to [vuvu]
org.springframework.mail.MailSendException: Mail server connection failed; nested exception is javax.mail.MessagingException: Could not connect to SMTP host: smtp.alfresco.com, port: 25;


Somebody please tell me what am doing wrong…. Is there a configuration i need to adjust?
4 REPLIES 4

cedvr
Champ in-the-making
Champ in-the-making
Hello,

Yes, it looks like the configuration is set by default to alfresco.

Here are the lines that should be appearing in the "alfresco-global.properties" in your tomcat shared folder:
#
# Outbound Email Configuration
#————-
mail.host=
mail.port=25
mail.username=anonymous
mail.password=
mail.encoding=UTF-8
mail.from.default=alfresco@alfresco.org
mail.smtp.auth=false

And replace accordingly to your server settings….

Hope this helps

oluwasegzy
Champ in-the-making
Champ in-the-making
Thanks;

I appreciate ur response, but i didnt even have theses lines in my alfresco-global properties before now and it throws the exception. I have added the lines anyway but i still keep having the same exception.

could not connect to SMTP host: localhost, port: 25;
  nested exception is:


Could it be the fact am using this port 25, is there any other correct port that can be used?  I am sending this mail to a separate mail server like yahoo, gmail




Have I gotten something wrong during installation

cedvr
Champ in-the-making
Champ in-the-making
It is strange that the error message still shows 'localhost'…
It would be helpful if you post your configuration…

Here are the two wiki within alfresco explaining the configuration for emails:
outbound: http://wiki.alfresco.com/wiki/Outbound_E-mail_Configuration
inbound: http://wiki.alfresco.com/wiki/Inbound_SMTP_Email_Server_Configuration#Inbound_email_service

oluwasegzy
Champ in-the-making
Champ in-the-making
Thanks for your support

I finally got it to work. I decided to use gmail smtp server to send the mail and it worked.

I think the problem i was having is that I was using my server IP address instead of using the smtp host for alfresco

This is the configuration i used


mail.host=smtp.gmail.com
mail.port=465
mail.protocol=smtps
mail.username=id.segzy@gmail.com
mail.password=genius234
mail.smtps.starttls.enable=true
mail.smtps.auth=true