procmail
[Top] [All Lists]

Re: generate

2000-09-23 00:10:13
Yes, it is quite easy when using formail tool and sendmail. 
Here is a simple example gathered from the web and that can be used to
generate an automatic reply upon succefull condition:

# start the new recipe
:0
# match a spammer address for example
* ^From(_dot_)*foo(_at_)bar(_dot_)com
# bypass daemon mail
* !^FROM_DAEMON
* !^FROM_MAILER
# avoid loops
* !^X-Loop: me(_at_)myhost(_dot_)me
# start the composition of the mail with the formail tool
# make sure that the $SENDMAIL variable is set to the complete path to
# your mail transport agent
# put your bla bla bla in the echo
# don't forget the leading '\'
| (formail -rk \
        -A "X-Loop: me(_at_)myhost(_dot_)me" \
        -A "Precedence: junk"; \
   echo "Please don't send me any more mail";\
   echo "This is an automated response";\
   echo "I'll never see your message";\
   echo "So, GO AWAY" ) | $SENDMAIL -t -oi


see respectively formail and sendmail man page for more information


-- Life is not fair But the root password helps --

Gregoire Welraeds
greg(_at_)perceval(_dot_)be
Perceval Development team

On Thu, 21 Sep 2000, Jurgis Orups wrote:

Date: Thu, 21 Sep 2000 21:34:38 +0300 (EEST)
From: Jurgis Orups <jurgis(_at_)viesite(_dot_)edu(_dot_)lv>
To: procmail(_at_)Lists(_dot_)RWTH-Aachen(_dot_)DE
Subject: generate

Hi!
I want to know is it possible that procmail generate e-mail with text "bla
bla bla" when the new mail arrives?

Thanx!
George


_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail





_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

<Prev in Thread] Current Thread [Next in Thread>
  • generate, Jurgis Orups
    • Re: generate, Greg <=