The CGI-Forum

Here you can read all entries on the board and/or make own entries. Have fun!
autoresponder - Wolfgang (xwolf@xwolf.com), 29.6.97-13:9:40
>i want to install an autoresponder..... and try and try and.....
>who knows an easy to install one ? please contact.
>my server is unix standard, i´m a perl beginner
>best regards from germany
>harald


Hi,
on newer UNIX-platforms you can find possibility for this, using

  • .forward
  • .procmailrc

One of these files you can place in your home-directory.
With the .forward you are able to evaluate simple scripts. It's more used
to forward mails to another email-address.
If you want to do more complex operations, the .procmailrc is IMO the best
solution.
This is how my procmailrc looks:


MAILDIR =/home/rzsuna/unrz/unrzc9/Mail
DEFAULT = /mail/rzsuna/unrzc9
LOGFILE = $MAILDIR/.maillog
FORMAIL = /local.stand/procmail/bin/formail
SHELL=/bin/sh # for other shells, this might need adjustment
MONTH=`date +%m-%y`
REALMSRC= $MAILDIR/Realm-SRC
REALMCODER= $MAILDIR/Realm-CODER
REALMWWW= $MAILDIR/Realm-WWW
WEBMASTER= $MAILDIR/WebmasterMail
AUSGANG= $MAILDIR/ausgang

#save Realmsrc-report to folder Realm-SRC
:0
* ^From.*(rom-src-owner@edg-linux.rz.uni-sb.de)
{
:0:
$REALMSRC
}
#save RealmWWW-report to folder Realm-WWW
:0
* ^From.*(rom-www-owner@edg-linux.rz.uni-sb.de)
{
:0:
$REALMWWW
}
#save Realmcoder-report to folder Realm-CODER
:0
* ^Subject.*Compile.Status
{
:0:
/dev/null
}
:0
* ^TO.*@board.rom.mud.de
{
:0:
/dev/null
}
:0
* ^From.*(Wolfgang.Wiese@rrze.uni-erlangen.de)
{
:0:
$AUSGANG
}
:0:
$DEFAULT



Instead of mailfolders you can address scripts there too. And also a
script that takes the email of the sender and mails automatically an
answer.

Ciao,
Wolfgang




New MessageReply tn thisReply on topicDeleteOverviewPreviousNext Mail this Mail topic Mail all
New messageReply to this messageEntry to this topicDelete entryAll entries Previous Entry Next EntryMail this message Mail this topic Mail all messages

Script written by
Wolfgang Wiese, feedback welcome.