Re: 間違いメールいっぱいきませんか?


[ Follow Ups ] [ Post Followup ] [ DIGIWEB 日本語Users' BBS ] (PR) [レンタルサーバー]

Posted by masui on August 06日 (1997年) 11時22分15秒:

In Reply to: Re: 間違いメールいっぱいきませんか? posted by mktz on August 06日 (1997年) 01時43分57秒:

たとえば次のようにして、最後のところにwebmaster,sales宛て以外の
メールに対してはwrong.txtが配送されるような設定をしてはいかがで
しょう?(これで正しいでしょうか?→皆さん)

VERBOSE=off
SENDMAIL=/usr/lib/sendmail
MAILDIR=$HOME/mail
PMDIR=$HOME/.procmail
LOGFILE=$PMDIR/log
FILEDIR=$HOME/fileserver

:0
* ^TO*webmaster
! user1@domain.com

:0
* ^TO*sales
! user2@domain2.com

といろいろ書いておいて、
最後に
:0
* ^TO*
*!^FROM_DEAMON
*!^X-Loop: wrong@mydomain.com
|(formail -r -A "Precedence: junk"\
-I"From: Auto Reply from mycompany " \
-I"Subject: Information Request" \
-A "X-Loop: wrong@mydomain.com";\
cat $FILEDIR/wrong.txt )|$SENDMAIL -t



Follow Ups:



Post a Followup

名前:
メールアドレス:

題名:

内容:

関連URL:
関連URLのタイトル:
関連画像のURL:


[ Follow Ups ] [ Post Followup ] [ DIGIWEB 日本語Users' BBS ]