David Rodal wrote:
I have a user that will go on vacation for 2 weeks. They want
to bounce their email to the sender with a message saying
they are on vacation.
Courier can do this right?
I am running courier 0.41.0
on redhat linux 8.0
we are running with virtual domains.
You can do it with .mailfilter... what I've got here is:
cc $DEFAULT
xfilter "/var/local/courier/bin/reformail -r -t"
/^To:.*/
getaddr($MATCH) =~ /^.*/;
MATCH=tolower($MATCH)
`fgrep -ix "$MATCH" vacation.lst 2>&1 >/dev/null || { \
echo "$MATCH" >>vacation.lst ; \
exit 1 ; \
} `
if ( $RETURNCODE == 0 )
exit
to "| ( cat - ; echo ''; cat vacation.msg) | /usr/lib/sendmail -t -f ''"
--
That will deliver to their box, then check to see if the sender has been
replied to.. if not, it'll send them the contents of vacation.msg...
Mostly stolen from the maildropex manpage.
Unfortunately, I had to pull out the file locking part, and not use the
gdbm option, because lockfiles don't seem to get cleaned up.
Once again, if anyone on the list knows why the lockfiles are being left
behind, and how to fix it, I'd love to know.