配置Alfresco的SMTP Server

原文:http://wiki.alfresco.com/wiki/Outbound_E-mail_Configuration#SMTP_configuration

 

The mailService implementation is provided by Spring and the configuration can be customised by setting various key value pairs in javaMailProperties.

Alfresco provides configuration for the most common scenarios, however if you need a greater level of control then you can over-ride the out of the box configuration. Typically you may want to add or remove properties.

All the configuration you may need can be found at 

$TOMCAT_HOME/webapps/alfresco/WEB-INF/classes/alfresco/subsystems/email/OutboundSMTP/outboundSMTP.properties but do not modify this file, set up your own

$TOMCAT_HOME/shared/classes/alfresco/extension/subsystems/email/OutboundSMTP/outbound 

or directly in the

$TOMCAT_HOME/shared/classes/alfresco-global.properties 

file.

GMAIL

Gmail (gmail.com) requires the use of SMTPS

This example shows how to configure two additional java mail properties directly to: <TOMCAT_HOME>/classes/alfresco-global.properties:

# Sample Gmail settings
mail.host=smtp.gmail.com
mail.port=465
mail.username=user@gmail.com
mail.password=password
mail.protocol=smtps
mail.smtps.starttls.enable=true
mail.smtps.auth=true

 

ZIMBRA

# Sample Zimbra settings
Not authenticated.

mail.host=zimbra.<your company>
mail.port=25
mail.username=anonymous
mail.password=
# Set this value to UTF-8 or similar for encoding of email messages as required
mail.encoding=UTF-8
# Set this value to 7bit or similar for Asian encoding of email headers as required
mail.header=
mail.from.default=<default from address>
mail.smtp.auth=false
mail.smtp.timeout=30000

You're done

posted @ 2013-03-13 14:23  迷路dê流氓  阅读(488)  评论(0)    收藏  举报