4 messages in net.sourceforge.lists.courier-usersRe: [courier-users] Ok, I can't figur...
FromSent OnAttachments
David RodalApr 16, 2003 1:23 pm 
Mark JanssenApr 16, 2003 2:22 pm 
Sam VarshavchikApr 16, 2003 2:29 pm 
Mike LemoineApr 16, 2003 2:54 pm 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: [courier-users] Ok, I can't figure it out. How do I bounce mail to sender.Actions...
From:Mike Lemoine (sv@reshape.com)
Date:Apr 16, 2003 2:54:45 pm
List:net.sourceforge.lists.courier-users

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.