Chinaunix首页 | 论坛 | 博客
  • 博客访问: 7402644
  • 博文数量: 1756
  • 博客积分: 18684
  • 博客等级: 上将
  • 技术积分: 16232
  • 用 户 组: 普通用户
  • 注册时间: 2010-06-02 10:28
个人简介

啥也没写

文章分类

全部博文(1756)

文章存档

2024年(2)

2023年(44)

2022年(39)

2021年(46)

2020年(43)

2019年(27)

2018年(44)

2017年(50)

2016年(47)

2015年(15)

2014年(21)

2013年(43)

2012年(143)

2011年(228)

2010年(263)

2009年(384)

2008年(246)

2007年(30)

2006年(38)

2005年(2)

2004年(1)

分类: LINUX

2010-08-24 23:44:00

今天弄好的自动回复,,第一封邮件可以,发第二封,,怎么也收到到邮件了,再用别一个邮箱发也是这样,,保能收到第一封邮件,第二封怎么也收不到,。。
看[root@linglingshang2009 local_autorespond_forward]# cat config.php|grep vaca
global $forward_data, $sq_vacation_file, $vacation_file,
       $vacation_delete, $forward_file, $maintain_forwarding,
       $sq_vacation_subject_file, $ldap_lookup_ftp_server,
       $vacation_path, $laf_prefs_file,
       $local_delivery_syntax, $vacation_command_quotes, $www_initialize,
       $vacation_subject_default, $vacation_message_default,
// server to maintain vacation and/or .forward files: "ftp" or "suid"
// of the binary that writes vacation messages and .forward
$laf_prefs_file = '.vacation.pref';
// subject line for the vacation message
$sq_vacation_subject_file = '.vacation.subj';
// This is the name of the file that holds the raw vacation message text
$sq_vacation_file = '.vacation.sq';
// This is the name of vacation file, which holds the vacation message
$vacation_file = '.vacation.msg';
// like to be deleted when the vacation message is removed
$vacation_delete = '.vacation.db';
// You may define a default vacation subject and message for your
// $vacation_subject_default = 'Out-of-office Reply';
// $vacation_message_default = "Thank you for your email, however I am currently out of the office.  Please be assured that I will reply as soon as I am able.\n\nThank you for your patience.\n\n";
$vacation_subject_default = '';
$vacation_message_default = "";
// when the user turns on the vacation message? 
// This usually corresponds to executing the vacation program
// vacation database.
// requires it to be configured with "--enable-vacation".
// when the user changes her vacation message?
// This usually corresponds to executing the vacation program
// vacation database.
// requires it to be configured with "--enable-vacation".
// $www_initialize = '/usr/bin/vacation -I';
$www_initialize = '/usr/bin/sudo -u ###USERNAME### /usr/bin/vacation -I';
// This is the path to the vacation executable
// needed here, such as to change the vacation
// $vacation_path = '/usr/bin/vacation -t1';
$vacation_path = '/usr/bin/vacation';
// By default, aliases will be added to the vacation command
// have the aliases listed in the vacation command in full
// the vacation command in the .forward file.  You can change
// $vacation_command_quotes = '';
$vacation_command_quotes = '"';
// address for user authentication (login), but a vacation
// by a comma) as the vacation command.
// $forward_file_format_pattern = array('/(.*)(^.+?\/usr\/bin\/vacation.+?$)(.*?)(, '/(\n){2,}/');
// If you use the -h option for the vacation binary,
 
找查了那些.vacation.的文件,,
[root@linglingshang2009 test]# find / -name ".vacation.pref" -print
/home/test/.vacation.pref
结果在/home/test下面,每个打开看了一下,发现.vacation.db最可疑,
用strings 查看了,发现发过的邮件都在这里面,就死马当活马医了一回,直接清空
>.vacation.db
再发邮件,,竟又可以也,不过也只是一封,知道问题出在这里了,清空一下又可以发一次了,后来试了改权限,不让写出,收到一封错误的邮件。再GOOGLE了一下,,终于看到我想要的答案了!
大家直接看原文吧:
/usr/bin/vacation -I -r -t0 test
 
真是一波N折呀,不过终于知道问题的所在了,,也可以安心的睡觉了,,哈哈
阅读(2606) | 评论(1) | 转发(0) |
给主人留下些什么吧!~~

chinaunix网友2010-08-26 09:19:26

Download More than 1000 free IT eBooks: http://free-ebooks.appspot.com