今天看了 maillog 出現了一些錯誤訊息

Nov 16 15:44:32 mail postfix/local[64690]: 498962B7EA5: to=<xxx@xxx.xxx.xxx>, relay=local, delay=1, status=bounced (Command died with status 255: " /usr/local/www/cgi-bin/openwebmail/vacation.pl -t60s -a xxx@xxx.xxx.xxx  xx". Command output: Insecure dependency in piped open while running setuid at /usr/local/www/cgi-bin/openwebmail/vacation.pl line 421. )

原來此程式 vacation.pl 為 openwebmail 的「自動回覆功能」,但不知為何一直出錯,酷學園裡的 egmo 找到解決方式,在 vacation.pl 大概 421 行的地方

將原本的

#open(MAIL, "|$sendmail -oi -t '$from'") or die "Can't run sendmail: $!\n";
open(MAIL, "|$sendmail -oi -f '$to' '$from'") or die "Can't run sendmail: $!\n";
print MAIL $msg;
close MAIL;

改成

open(MAIL, "|$sendmail -oi -t '$from'") or die "Can't run sendmail: $!\n";
#open(MAIL, "|$sendmail -oi -f '$to' '$from'") or die "Can't run sendmail: $!\n";
print MAIL $msg;
close MAIL;
arrow
arrow
    全站熱搜

    Bojack 發表在 痞客邦 留言(0) 人氣()