velcro.greens.org
domain. User beano is responsible.
He decides to autoreply to messages to any undefined
address@velcro.greens.org
.
beano creates a file .qmail-mx-default
in his
home directory. It looks like this:
|preline procmail proc-hooxnloops
@velcro.greens.org
and feeds them into procmail. (The preline program just puts the message in a format procmail will understand.)
The proc-hooxnloops
file tells procmail what to do.
proc-hooxnloops
looks like this:
This file tells procmail to look for messages that are not bounces
and feed them into formail. It tells procmail to tell formail
to generate a reply header (-r
),
add a loop detection line, and replace the From:
line.
The cat autoreply-velcro
command reads the reply body from
a file in beano's home directory.
The output of the formail and cat commands is combined and fed
into qmail-inject
beano wants to see any messages that are bounces or
looping, for troubleshooting. So the final paragraph in
proc-hooxnloops
forwards anything that got past
the second paragraph to him.