Chinaunix

标题: postfix +mysql实现邮件监控 [打印本页]

作者: zhanghui8059    时间: 2008-08-29 14:03
标题: postfix +mysql实现邮件监控

代码
  添加数据表mail_watch   
CREATE TABLE `mail_watch` (   
  `sender` varchar(100)  NOT NULL,   
  `bcc` varchar(100)  NOT NULL,   
  PRIMARY KEY  (`sender`)   
)   
   
main.cf   
   
sender_bcc_maps = mysql:/etc/postfix/mail_watch.cf   
recipient_bcc_maps = mysql:/etc/postfix/mail_watch.cf   
   
mysql_watch.cf   
   
user = postfix   
password = xxxxx   
dbname = postfix   
table = mail_watch   
select_field = bcc   
where_field = sender   
hosts = localhost   


本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u2/75232/showart_1155743.html




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2