On Wed, Jun 02, 2004 at 02:23:34PM -0700, Ray Hauge wrote:
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.
p dont think wrote:
Why not? I have the same setup and have a series of "home"
directories for my virtual users that contain not much more than mail
filter files. They are *not* the same as local user /home/...
directories, mind you.
Well, I do have the "home" directory setup that you are talking about
with just a Maildir folder that is not in the /home slice. That part is
working just fine though. The problem I'm having is more with the
autoreponder not being sent. Even if I can use a .mailfilter or
.forward file in their "home" directory, that still wouldn't fix my poor
script ;)
(Ugh, topposted - reformatted)
(The script in question)
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 ''"
}
First off, I hope it's your mail client putting in those horrible
mailto: links.
Anyway, if you put a .mailfilter in the users' $HOME directories, you
can do away with the 'if' statement.
Hmm, what "sendmail" are you using? If you are using "the" sendmail,
try using:
/usr/local/sbin/sendmail -t -f ''"
instead.