cancel
Showing results for 
Search instead for 
Did you mean: 

Strange SMTP settings pulled - community 3.4b [solved]

gnevzmaja
Champ in-the-making
Champ in-the-making
I have a following problem with my email configuration:
No mater how I set outband mail settings Im getting this error, even none of my config files contains string "smtp.alfresco.com". As this smtp setting is present in default outboundSMTP.properties which I changed I did content search for  "smtp.alfresco.com" trhrough all my  alfresco folder and only place it was found was in log file?#$?##

How is this possible and where does Alfresco pull this old setting from?

log file
15:48:59,765 User:gnevzmaja ERROR [action.executer.MailActionExecuter] Failed to send email to gnevzmaja@jugo-trade.com
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;
  nested exception is:
   java.net.SocketException: Network is unreachable: connect
:
:
Caused by: javax.mail.MessagingException: Could not connect to SMTP host: smtp.alfresco.com, port: 25;
  nested exception is:
   java.net.SocketException: Network is unreachable: connect
:
:
Caused by: java.net.SocketException: Network is unreachable: connect

I tried several configurations for my outboundSMTP.properties file but I always get the same above error in log file

1st config
mail.host=mail.jugo-trade.com
mail.port=25
mail.username=alfresco@jugo-trade.com
mail.password=xxxxxxx
mail.encoding=UTF-8
mail.from.default=alfresco@jugo-trade.com
mail.smtp.auth=false
mail.protocol=smtp

2nd config
mail.host=smtp.gmail.com
mail.port=465
mail.username=gnevzmaja@gmail.com
mail.password=xxxxxxxx
mail.encoding=UTF-8
mail.from.default=alfresco@jugo-trade.com
mail.smtp.auth=false
mail.smtps.auth=true
mail.protocol=smtps
mail.smtps.starttls.enable=true

Is there a solution for this? Am I missing something?
Thank you in advance.
4 REPLIES 4

mrogers
Star Contributor
Star Contributor
your configuration settings should be in alfresco-global.properties

gnevzmaja
Champ in-the-making
Champ in-the-making
Thank You mrogers!
One more question anout alfresco-global.properties:

I have 3 such files in some of the subfolders of \tomcat\webapps\alfresco\WEB-INF\classes\alfresco\
\tomcat\webapps\alfresco\WEB-INF\classes\alfresco\module\org_alfresco_module_dod5015\alfresco-global.properties
\tomcat\webapps\alfresco\WEB-INF\classes\alfresco\module\org_alfresco_module_wcmquickstart\alfresco-global.properties
\tomcat\webapps\alfresco\WEB-INF\classes\alfresco\module\test\alfresco-global.properties

In root \tomcat\webapps\alfresco\WEB-INF\classes\alfresco\ I dont have alfresco-global.properties, only alfresco-shared.properties


should I make one new A:\tomcat\webapps\alfresco\WEB-INF\classes\alfresco\alfresco-global.properties file or use and edit any of one existing and mentioned above?
And what use is then
\tomcat\webapps\alfresco\WEB-INF\classes\alfresco\subsystems\email\OutboundSMTP\outboundSMTP.properties?

Thanx again for your time

mrogers
Star Contributor
Star Contributor
http://wiki.alfresco.com/wiki/Repository_Configuration

You should consider the stuff below WEB-INF to be read only.   It will get overwritten during an upgrade or a redeploy.

Create an alfresco-global.properties file in /tomcat/shared/classes/alfresco-global.properties

gnevzmaja
Champ in-the-making
Champ in-the-making
It works! Thanx again mrogers for clear and simple guidelines. There was actually alfresco-global.properties file in /tomcat/shared/classes/

You should consider the stuff below WEB-INF to be read only. It will get overwritten during an upgrade or a redeploy.
Also thanx for this tip, I did actually change lots of .properties files below WEB-INF for purpose of language localisation of share.
It would be good moment to back those up…

Regards