cancel
Showing results for 
Search instead for 
Did you mean: 

Newbie Rule Question

mdo10025
Champ in-the-making
Champ in-the-making
I am using Alfresco 2.0 Community on Windows 2003 server. I created a rule that will send an email to one user when a document is sent for approval. However, I am seeing the following error:

[org.alfresco.repo.action.executer.MailActionExecuter] Failed to send email to null
org.springframework.mail.MailSendException: Mail server connection failed; nested exception is javax.lang.MessagingException: Could not connection to SMTP host: mail.server.com, port: 25; nested exception is: java.net.SocketException: Software caused connection abort: connect javax.mail.MessagingException:

I tried editing custom.repository.properties as well as repository.properties files but still the same error. Any help would be greatly appreciated.
5 REPLIES 5

gavinc
Champ in-the-making
Champ in-the-making
This indicates that you have either mis-configured the email settings or there isn't an email server on the machine, hence the connection failed message.

mdo10025
Champ in-the-making
Champ in-the-making
I have smtp service running on this server. This is what I have in the custom.repository.properties file.

mail.host= mail.pixi.com
mail.port=25
mail.username=ourname@pixi.com
mail.password=ourpassword
mail.header=
mail.from.default=webmaster@ourdomain.com

I tried putting the above info in the repository.properties file but had the same error. Is there something else I'm supposed to set? Thanks.

gavinc
Champ in-the-making
Champ in-the-making
It may be that you have a space at the beginning of the host name i.e.

mail.host= mail.pixi.com

Try removing the space so it reads:

mail.host=mail.pixi.com

or if you are running the email server on the same server you could try 'localhost'.

mdo10025
Champ in-the-making
Champ in-the-making
My error: in the properties file, there is no space in the mail.host entry. When you say email server, do you mean whether I run the smtp service on the same server as Alfresco? If not, can you clarify? Many thanks.

gavinc
Champ in-the-making
Champ in-the-making
Yes, i meant if the SMTP and Alfresco servers are on the same machine you maybe be able to use 'localhost' as the mail.host entry.