cancel
Showing results for 
Search instead for 
Did you mean: 

Email configuration linux

primeup
Champ in-the-making
Champ in-the-making
Hello guys, i need help with the configuration of email on Alfresco!!

i'm at alfresco-global.properties and wrote there:


notification.email.siteinvite = true


mail.host = smtp.google.com
mail.port = 465
mail.username = myusername@gmail.com
mail.password = mypassword
mail.protocol = smtps
mail.smtps.starttls.enabled=true
mail.smtps.auth = true
mail.encoding=UTF-8


email.server.enabled=true
email.server.port = 25
email.server.domain = mydomain.com.br





Restarted alfresco, created a new folder with a new rule to send email whenever a new file is added to that foldar.
After that i put a file in this new folder, but none email is send to my email

What should i do??





Sorry for bad english, it is not my native language.

Thanks
5 REPLIES 5

mrogers
Star Contributor
Star Contributor
You should post any errors in your log file.     If there are none then the problem may be with gmail's spam filters.

mrogers
Star Contributor
Star Contributor
Just seen this.
NOTE: Google automatically rewrites the From line of any email you send via its SMTP server to the default Send mail as email address in your Gmail or Google Apps email account Settings. You need to be aware of this nuance because it affects the presentation of your email, from the point of view of the recepient, and it may also affect the Reply-To setting of some programs.

So you also need to set mail.from.enabled=false (or whatever the correct property name is)

primeup
Champ in-the-making
Champ in-the-making
The log show this errors:


2015-08-05 15:32:21,511 ERROR [org.alfresco.repo.action.executer.MailActionExecuter] [localhost-startStop-1] Failed to send email to mymail@domain.com: org.springframework.mail.MailAuthenticationException: Authentication failed; nested exception is javax.mail.AuthenticationFailedException: 534-5.7.14 <https://accounts.google.com/ContinueSignIn?sarp=1&scc=1&plt=AKgnsbtaj
534-5.7.14 41jAcN0-ligJtgNWUrLgx0KpPVQjoMSvf_nTS0GJ2-UvGcbLypGwMjYZmqMQNg2e07H7-i
534-5.7.14 lkibyJAxMCn7IG1J-KzdY0Wyuqq03toQ3mMo2FoCQKcf3nT6gBaptngSU1hRTyr9824yiD
534-5.7.14 z8sPQuQ2yx1Ps78iJ0LydK4S8DBnd_QqS1VEdInQwZg4zEy_BdUGNDUhbuqvbUp9QXNY-3
534-5.7.14 GhGcD9NZc5QkCafK3o99-w6p37aE> Please log in via your web browser and
534-5.7.14 then try again.
534-5.7.14  Learn more at
534 5.7.14  https://support.google.com/mail/answer/78754 20sm1798629qkp.39 - gsmtp


AND


2015-08-05 15:32:21,513 WARN  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] [localhost-startStop-1] Startup of 'email' subsystem, ID: [email, outbound] failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'mail' defined in URL [jar:file:/opt/alfresco-5.0.d/tomcat/webapps/alfresco/WEB-INF/lib/alfresco-repository-5.0.d.jar!/alfresco/subsystems/email/OutboundSMTP/outboundSMTP-context.xml]: Invocation of init method failed; nested exception is org.alfresco.error.AlfrescoRuntimeException: 07050001 Failed to send email to:mymail@domain.com




What should i do?

Thanks

tybion
Champ in-the-making
Champ in-the-making
Hello, Primeup.

This works fine for me on 5.0.d (with only the username and password changed in this post) ..


### E-mail site invitation setting ###
notification.email.siteinvite=true

### Email outbound settings ###
mail.host=smtp.gmail.com
mail.port=465
mail.username=myname@gmail.com
mail.password=mypassword
mail.protocol=smtps
mail.smtps.starttls.enable=true
mail.smtps.auth=true


I think the error message probably means what it says - your username or password are wrong.

I notice you have <strong>spaces</strong> around your '=' characters - maybe remove them on ALL lines?
And if you have pasted them in from somewhere, re-type them in case there are some weird characters.

Please let me know if this helps.

mrogers
Star Contributor
Star Contributor
Have you tried the steps in the google support document?