Hello,
I have been running the freebsdrocks.net website for several years now and I
have a client that is asking me if there is a way to tell the autoresponder
not to reply to spams. I did some digging and I found this artcile via
Google:
http://meepzor.com/packages/autoresponder/
I was looking at the examples at the bottom and then and I saw this:
- SNIP -
EXAMPLES
All of these examples are of usage in *.qmail* files, and assume that the *
autoresponder* script is invoked using the following single line in the *
.qmail* file:
*| /home/doe/autoresponder-script*
This is because *.qmail* files cannot contain continuation lines.
Therefore, the examples show modifications to the
*autoresponder-script*file, not the
*.qmail* file proper.
If */home/doe/autoresponder-script* contains:
*#!/bin/sh
/home/doe/autoresponder \
--from=john@nowhere.com \
--no-reply-to=mailer-dae...@.* \
--ignore-header=X-Spam-Status:^yes \
--subject=On holiday (was: %s) \
--file=$HOME/vacation.txt*This will cause all messages received by the
account to get an response back, *unless* the incoming message came from a
MAILER-DAEMON address *or* the value of the *X-Spam-Status* header field
starts with the word 'yes'. The subject of the response will be altered; if
the original subject was Meeting Tuesday, the subject of the automatic
response would be On holiday (was: Meeting Tuesday). *Note:* If this is
the only entry in the *.qmail* file, no copy of the original message will be
kept. - SNIP -
I am interested MOST in the section that says
*--ignore-header=X-Spam-Status:^yes \
*
Basically the way the freebsdrocks setup works is when a user is created
(via the CLI or qmailadmin itself) the files from ~vpopmail/skel are copied
to the users home dir. This includes a .qmail file (contents are | preline
-f /usr/local/bin/maildrop mailfilter ) and the mailfilter as well as a
Maildir with a .Spam folder in it. The way this works is if Spams come in
they are automagically filtered.
What my issue here is where (or how) does qmailadmin modify the .qmail file?
I was looking at the source of qmailadmin (latest) and I was looking at both
autorespond.c and .h and I cannot figure this out. Another idea I had was to
have a wrapper around autorespond. I just wanted to get some ideas from all
of you.
Please let me know if you need any additional information. Thank you for
your time.
Bill
http://www.goodcleanemail.com
http://www.freebsdrocks.net
!DSPAM:4cd2dc3a32714210113152!