5 messages in net.sourceforge.lists.courier-maildrop[maildropl] Autorespond Problem
FromSent OnAttachments
Ray HaugeJun 2, 2004 1:57 pm 
p dont thinkJun 2, 2004 2:20 pm 
Ray HaugeJun 2, 2004 2:23 pm 
Devin RubiaJun 3, 2004 6:59 am 
Ray HaugeJun 3, 2004 8:33 am 
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:[maildropl] Autorespond ProblemActions...
From:Ray Hauge (ra@usscreen.com)
Date:Jun 2, 2004 1:57:48 pm
List:net.sourceforge.lists.courier-maildrop

Hello,

I've been trying to get our postfix/MySQL system to automatically respond to emails when sent certain individules. Most of the people at my company are set up as virtual users on the server, not a local user... so I can't use a .mailfilter or .forward file. So, I've just be creating different sections in the maildroprc file. Here is the script that I've come up with so far to handle this task (obviously it's not working)

if (/^Delivered-To: te@address.com <mailto:te@address.com>/ && /^To:
*.*te@address.com.*/) { cc "| mailbot -t $HOME/autoresponse \ -d $HOME/autoresponsedb -A 'From: te@address.com
<mailto:te@address.com>' \ -s 'AUTO RESPONSE - Out of the office.' -D 1 \ /usr/local/sbin/sendmail -f ''" }

I've also added

cc "!myem@address.com"

inside the above IF statement, so I know that that section of code is firing
correctly. I've also made sure all the paths and permissions are set
appropriately. I'm pretty much stuck at this point and any help would be
appreciated.

Thanks, Ray