Gitblit配置邮件服务器

之前有介绍过Gitblit及安装配置,当时只使用了最简单的http方式。最近由于再次安装、配置,发现了一些之前没有涉及的部分,比如使用ssh推送、https、生成证书、配置邮件服务等等。

由于在网上没有找到“直接”的答案,这里介绍如何配置邮件服务。说来配置邮件服务不是必需的,与之相关的功能包括:有变更时邮件通知,邮件分发证书。

配置邮件服务的方法就是修改Gitblit目录下的\data\gitblit.properties ,与之相关的配置项及解释如下。

假设你的发送邮件的邮箱地址为[email protected],密码为YYY。

  • mail.server:查找你邮箱的smtp服务地址,比如163的就是: smtp.163.com
  • mail.port:smtp服务的端口,默认是25
  • mail.username:即XXX
  • mail.password:YYY
  • mail.fromAddress:发送邮件的完整邮箱地址,比如[email protected]

# ip or hostname of smtp server
#
# SINCE 0.6.0
mail.server = smtp.163.com

# port to use for smtp requests
#
# SINCE 0.6.0
mail.port = 25

# debug the mail executor
#
# SINCE 0.6.0
mail.debug = false

# use SMTPs flag
mail.smtps = false

# use STARTTLS flag
#
# SINCE 1.6.0
mail.starttls = false

# if your smtp server requires authentication, supply the credentials here
#
# SINCE 0.6.0
mail.username = XXX 
# SINCE 0.6.0
mail.password = YYY

# from address for generated emails
#
# SINCE 0.6.0
mail.fromAddress = [email protected]

你可能感兴趣的:(Open,source)