您的位置:首页 > 运维架构 > Linux

配置Trac 的 邮件提醒功能

2010-03-08 15:47 357 查看
在Centos上搭建的Trac server 同时已经和SVN一起搭配好了, 剩下就是配置它的邮件提醒功能。 邮件提醒, 首先需要一个邮件服务器也就是SMTP server, 我用了postfix 作为邮件服务器。

1. 首先 检查一下你的机器上有没有postfix

 

#service postfix status

2. 没有的话装一个:

#yum install postfix dovecot system-switch-mail system-switch-mail-gnome

3. 修改配置文件

 

#vi /etc/postfix/main.cf

 

 

queue_directory = /var/spool/postfix

 

command_directory = /usr/sbin

 

daemon_directory = /usr/libexec/postfix

mail_owner = postfix

myhostname = mail.lau.com

mydomain = lau.com

myorigin = $mydomain

inet_interfaces = all

mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain

unknown_local_recipient_reject_code = 550

mynetworks = 198.0.0.0/28, 127.0.0.0/8

relay_domains =

 

alias_maps = hash:/etc/aliases

alias_database = hash:/etc/aliases

home_mailbox = Maildir/

debug_peer_level = 2

 

debugger_command =

         PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin

         xxgdb $daemon_directory/$process_name $process_id & sleep 5

 

sendmail_path = /usr/sbin/sendmail.postfix

newaliases_path = /usr/bin/newaliases.postfix

mailq_path = /usr/bin/mailq.postfix

setgid_group = postdrop

html_directory = no

manpage_directory = /usr/share/man

sample_directory = /usr/share/doc/postfix-2.3.3/samples

readme_directory = /usr/share/doc/postfix-2.3.3/README_FILES

 

 

 

4. 启动
#service postfix start
5.配置好Trac用户的邮件地址
6. OK
 
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息