X
X
Create an autoresponder for every incoming e-mail sent to reto@example.com
-
Create an e-mail text for your autoreply.
cd /home/username/Maildir
vi info.txt
You don't have to create an e-mail header. Just start with the reply text at the first line.
-
Initially:
./conv2iso.sh info.txt — (iconv -f UTF-8 -t ISO-8859-1 -o ".$1" "$1")
-
vi .procmailrc
# Autoresponder
:0 c
* !^From +reto
* !^Subject:.*Re:
* !^FROM_DAEMON
* !^X-Loop: reto@example.com
* ^TOreto
| (formail -rI"From: spam@example.ch" -A"X-Loop: \
reto@example.com" ; cat info.txt) | /usr/sbin/sendmail -oi -t
It's a good advice to use another sender address for this purpose.
See also:
[ Procmail ] - [ 4 Debugging ]
copyright by retoh - created with mytexi
$Id: procmail.mtxi,v 1.21 2007/04/06 07:44:08 webcms Exp $