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