2 Jun 2004 22:57
Autorespond Problem
Ray Hauge <ray <at> usscreen.com>
2004-06-02 20:57:43 GMT
2004-06-02 20:57:43 GMT
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: test <at> address.com <mailto:test <at> address.com>/ && /^To: *.*test <at> address.com.*/)
{
cc "| mailbot -t $HOME/autoresponse \
-d $HOME/autoresponsedb -A 'From: test <at> address.com <mailto:test <at> address.com>' \
-s 'AUTO RESPONSE - Out of the office.' -D 1 \
/usr/local/sbin/sendmail -f ''"
}
I've also added
cc "!myemail <at> 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
-------------------------------------------------------
(Continue reading)
RSS Feed