On Tue, 27 Apr 1999, Jim wrote:
> I have mail working on my linuxbox. Send and receive ok with not probs at
> all. But now I want to setup an "Autoresponder" so that when someone emails
> one of the accounts, it gives a notification that the message has been
> received. I did some reading in a sendmail book that I have, and I did
> some tweaking of the /etc/aliases file. But no luck.
I had a similar question a few weeks ago regarding an
"auto-responder". In my case, however, I wanted users
to be able to send me an e-mail with "fetch pgp key"
in the subject line, and for my mail server to reply
with my PGP key in the message.
One of the responses I received (and the one I'm using)
uses the MUA mutt to do this. If you have mutt installed,
this should be no problem. All I had to do was add the
following to my .procmailrc file.
:0 h
* ^Subject:[ ]+\/(fetch)[ ]+pgp\>.*
| mutt -s "Re: $MATCH" `formail -rtzxTo:` </home/jeremy/pgpkey.asc
Now that I look at it, it would reply if the subject
line was "fetch pgp". The only things you would have
to change are the "fetch" and "pgp" sections, and the
file which it sends back (/home/jeremy/pgpkey.asc).
Create the message you want to be sent back to the
remote user, place it in a file, and put the filename
in the line above.
HTH,
Jeremy
-------------------------------------------------------
To automatically retrieve my PGP key via e-mail, send a
blank message with the subject line "fetch pgp key".