[EMAIL PROTECTED] wrote:
> A few versions back (I think 1.00 but I could be wrong) of qmail, I
> seem to recall someone posted a very simple way to send an automatic reply
> for all messages that came _into_ a user's Mailbox (or Maildir for that
> matter) by adding one or two lines to the .qmail file in the user's home
> directory.
>
> The directives in the .qmail file in the user's home directory simply cat
> the contents of a textfile in the user's home directory back to the
> original sender. I can't seem to find reference to this in the FAQ or in
> the docs of version 1.03 now and I was wondering if there is as simple and
> staightforward way of doing this now. If so, what are the directives in
> the .qmail file to do this ?
[tillman][/var/qmail/alias]$ cat .qmail-ping
# This alias simply sends a "pong" message back to the recipient
# It's used both to remotely confirm qmail operation and as an
# example of how to do an auto-responder under qmail.
#
# Note that this sends any responses/bounces to *another* account
# by faking the "from" header.
#
# Tillman Hodgson, Nov 15/98 11:00pm
#
|/var/qmail/bin/qmail-inject -- "$SENDER" < ./auto/ping.txt
[tillman][/var/qmail/alias/auto]$ cat ping.txt
From: Automatic Reply System <[EMAIL PROTECTED]>
Cc:
Subject: Pong!
This is an automatically generated message.
----------------------------------------------------
It's an email pinger, of sorts :-)
Standard disclaimers:
* It does no loop checking. This is a very bad thing.
* I got the idea for this by searching the archives one day after I couldn't
get the rate-limited autoresponder to work right. 5 minutes after doing this,
the r-l autoresponder problem worked itself out. I should probably be using
that, but this is the example you asked for.
* There's undoubtedly better ways of doing this: I am not a qmail guru by any
means
- Tillman