cancel
Showing results for 
Search instead for 
Did you mean: 

Never succeed in Email sending out

andy2_0
Champ in-the-making
Champ in-the-making
[Alfresco Server]
CentOS 6.3, 64bit, Alfresco Community 4.2.e

[Email settings] in alfresco-global.properties:
### E-mail site invitation setting ###
notification.email.siteinvite=true

#imap.server.enabled=true
#imap.server.port=993
#imap.server.host=imap.gmail.com


#
# Outbound Email Configuration
#————-
mail.host=smtp.163.com
mail.port=25
mail.username=xxxxxxx@163.com
mail.password=**********
mail.encoding=UTF-8
mail.from.default=xxxxxxx@163.com
mail.smtp.auth=true

#
# Alfresco Email Service and Email Server
#————-
# Enable/Disable the inbound email service.  The service could be used by processes other than
# the Email Server (e.g. direct RMI access) so this flag is independent of the Email Service.
#————-
#email.inbound.enabled=true

# Email Server properties
#————-
#email.server.enabled=true
#email.server.port=25
#email.server.domain=fandasoft.com
#email.inbound.unknownUser=anonymous


[Error Log]
2013-12-25 23:19:32,269  ERROR [action.executer.MailActionExecuter] [http-apr-8182-exec-3] Failed to send email to xxxxx@xxxxxx.com
org.springframework.mail.MailAuthenticationException: Authentication failed; nested exception is javax.mail.AuthenticationFailedException
        at org.springframework.mail.javamail.JavaMailSenderImpl.doSend(JavaMailSenderImpl.java:392)


Caused by: javax.mail.AuthenticationFailedException
        at javax.mail.Service.connect(Service.java:306)
        at org.alfresco.repo.mail.AlfrescoJavaMailSender$TransportFactory.makeObject(AlfrescoJavaMailSender.java:71)



I searched the internet, it's said that the email can be configured thru [admin console] - [email configuration], but in CE 4.2.e I can't find any menus related to email configuration in [admin console]

Anybody please help on it??  Thanks a lot!

6 REPLIES 6

bisana
Champ on-the-rise
Champ on-the-rise
Hi you log shows
<bold> Caused by: javax.mail.AuthenticationFailedException </bold>
please check for authentication
also please make sure the mail (SMTP) service is working on the alfresco server
thanks

andy2_0
Champ in-the-making
Champ in-the-making
Thanks for response!

SMTP server is not working on alfresco server. It's a public SMTP server located somewhere. (Actually you can ping it: smtp.163.com)
We can send email thru a Java-written program with the same settings.

Thanks!

rjohnson
Star Contributor
Star Contributor
I had similar problems and ended up setting further properties in alfresco-global.properties as below.


# Additional Java Mail properties for SMTP protocol
mail.smtp.auth=true
mail.smtp.debug=false
mail.smtp.timeout=30000
mail.smtp.starttls.enable=false

# Additional Java Mail properties for SMTPS protocol
mail.smtps.auth=false
mail.smtps.starttls.enable=false


They might work for you.

andy2_0
Champ in-the-making
Champ in-the-making
it works, thanks for your help!!

bisana
Champ on-the-rise
Champ on-the-rise
Hi
One command line can you do this
mail -s "Hi I am testing" youremaiid@yordomain.con < messagefile.txt
and see whether you abe to receive the email
thanks
Joseph

andy2_0
Champ in-the-making
Champ in-the-making
Thanks for your reply!