Kyle Johnson wrote:
This is a followup.
My .mailfilter file looks like:
import HOME
if (/^X-DSPAM-Result: Spam/)
{
to ".Spam/"
}
cc "| /usr/local/bin/mailbot -s 'Out-Of-Office Reply' -A 'From:
sodo...@hanoveruniform.com' -m
'/usr/local/virtual/hanoveruniform.com/sodoherty/message.txt'
/usr/sbin/sendmail -f '' kjoh...@fixertec.net"
I have found that, with the above rule, when email is sent to this
user
from a non-local domain, the autoreply does work - it sends to the
message to kjoh...@fixertec.net. There are a few questions:
1: I'd like the mail to go to the sender, not to a static address
(kjoh...@fixertec.net) - how can I do this?
2: The original email does not end up in the users inbox. How can I
do this?
3: Why does #2 happen?
Don't know why it doesn't go to the inbox. If all you have is a CC,
the normal delivery should still happen unless the mailbot program
is throwing an error (and in that case, the messages should stay in
the queue).
I use this for my vacation messages:
------------------------------------------------------
import RECIPIENT
if (! (/^X-Spam-Flag: YES/ || /^List-id:/) )
{
`/usr/lib/courier/bin/mailbot -A "From: $RECIPIENT" -d "./autoreplydb" -m
"./autoreply" /usr/lib/courier/bin/sendmail -f "$RECIPIENT"`
}
------------------------------------------------------
Note that the mailbot command is one long line.
This will send one reply per day per recipient. It only sends replies
to messages that do not look like mailing lists and are not marked as
spam.