5 messages in net.sourceforge.lists.courier-maildropRe: [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:Re: [maildropl] Autorespond ProblemActions...
From:Devin Rubia (dev@thezone.net)
Date:Jun 3, 2004 6:59:46 am
List:net.sourceforge.lists.courier-maildrop

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.