11 messages in net.sourceforge.lists.courier-usersRe: [courier-users] mailbot useage
FromSent OnAttachments
Kyle JohnsonJun 27, 2006 6:04 pm 
Kyle JohnsonJun 28, 2006 11:39 am 
Bowie BaileyJun 28, 2006 12:11 pm 
Bowie BaileyJun 28, 2006 12:31 pm 
Kyle JohnsonJun 28, 2006 12:49 pm 
Bowie BaileyJun 28, 2006 1:31 pm 
Kyle JohnsonJun 28, 2006 5:22 pm 
Kyle JohnsonJun 29, 2006 6:01 am 
Bowie BaileyJun 29, 2006 6:14 am 
Kyle JohnsonJun 29, 2006 6:22 am 
Bowie BaileyJun 29, 2006 7:49 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: [courier-users] mailbot useageActions...
From:Bowie Bailey (Bowi@BUC.com)
Date:Jun 28, 2006 12:11:46 pm
List:net.sourceforge.lists.courier-users

Kyle Johnson wrote:

This is a followup.

My .mailfilter file looks like: import HOME

if (/^X-DSPAM-Result: Spam/) { to ".Spam/" }

cc "| /usr/local/bin/mailbot -s 'Out-Of-Office Reply' -A 'From: sodo@hanoveruniform.com' -m '/usr/local/virtual/hanoveruniform.com/sodoherty/message.txt' /usr/sbin/sendmail -f '' kjoh@fixertec.net"

I have found that, with the above rule, when email is sent to this user from a non-local domain, the autoreply does work - it sends to the message to kjoh@fixertec.net. There are a few questions: 1: I'd like the mail to go to the sender, not to a static address (kjoh@fixertec.net) - how can I do this? 2: The original email does not end up in the users inbox. How can I do this? 3: Why does #2 happen?

Don't know why it doesn't go to the inbox. If all you have is a CC, the normal delivery should still happen unless the mailbot program is throwing an error (and in that case, the messages should stay in the queue).

I use this for my vacation messages:

------------------------------------------------------ import RECIPIENT if (! (/^X-Spam-Flag: YES/ || /^List-id:/) ) { `/usr/lib/courier/bin/mailbot -A "From: $RECIPIENT" -d "./autoreplydb" -m "./autoreply" /usr/lib/courier/bin/sendmail -f "$RECIPIENT"` }

------------------------------------------------------

Note that the mailbot command is one long line.

This will send one reply per day per recipient. It only sends replies to messages that do not look like mailing lists and are not marked as spam.