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:Kyle Johnson (kjoh@fixertec.net)
Date:Jun 28, 2006 11:39:14 am
List:net.sourceforge.lists.courier-users

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?

Also, I've done a test, so I know the rule is being read: mail:/usr/local/virtual/hanoveruniform.com/sodoherty # cat ./message.txt | /usr/local/bin/maildrop -V 10 -d sodo@hanoveruniform.com maildrop: authlib: groupid=1010 maildrop: authlib: userid=2008 maildrop: authlib: logname=sodo@hanoveruniform.com, home=/usr/local/virtual/hanoveruniform.com/sodoherty/, mail=/usr/local/virtual/hanoveruniform.com/sodoherty/ maildrop: Changing to /usr/local/virtual/hanoveruniform.com/sodoherty/ Message start at 0 bytes, envelope sender=sodo@hanoveruniform.com maildrop: Attempting .mailfilter Tokenized import Tokenized string: "HOME" Tokenized ; Tokenized ; Tokenized if Tokenized ( Tokenized regexp: /^X-DSPAM-Result: Spam/ Tokenized ) Tokenized ; Tokenized { Tokenized ; Tokenized to Tokenized string: ".Spam/" Tokenized ; Tokenized } Tokenized ; Tokenized ; Tokenized cc Tokenized string: "| /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" Tokenized ; Tokenized eof .mailfilter(1): import "HOME" .mailfilter(3): Evaluating IF condition. Matching /^X-DSPAM-Result: Spam/ against Steve O'Doherty will be on vacation starting Wed. 6/28 - returning Friday July 14th. Not matched. Matching /^X-DSPAM-Result: Spam/ against He will respond to your message at that time - If a Customer Service Rep can Not matched. Matching /^X-DSPAM-Result: Spam/ against be of assistance, please call 1-800-541-9709 Not matched. .mailfilter(3): Search of ^X-DSPAM-Result: Spam = 0 .mailfilter(3): IF evaluated, result=0 maildrop: Delivering to | /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 maildrop: Delivery complete. maildrop: Delivery complete.

Thanks again, Kyle

Hi everyone, I'm trying to use mailbot here, and I'm stuck. I've tried including a rule, similar to the one that is provided in the man page, in my ..mailfilter file, but with no luck. The rule is: if (/^To:.*kjoh@hanoveruniform.com.*/) { cc "| /usr/local/bin/mailbot -t /usr/local/virtual/fixertec.net/kjohnson/message -A 'From: kjoh@hanoveruniform.com' /usr/bin/mail" }

I have also tried: if (/^To:.*kjoh@hanoveruniform.com.*/) { cc "| /usr/local/bin/mailbot -t /home/admin/message -A 'From: kjoh@hanoveruniform.com' /usr/sbin/sendmail -f ''" }

I guess I'm looking for some more examples on mailbot usage, as well as where my error lies.