This is a discussion on Re: [courier-users] maildropfilter foreach within the Courier-Imap forums, part of the Mail Servers and Related category; This is a multi-part message in MIME format. --------------070207040700060205000009 Content-Type: text/plain; charset=ISO-8859-1; format=flowed ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
This is a multi-part message in MIME format.
--------------070207040700060205000009 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Jimmy Ott wrote: > hello to everyone, > > i try to implement a simple autoresponder as many of you already did or > use. i have a global maildroprc which redirects spam to other folder and > local .mailfilter for user filters. > > Courier has a wonderful little utility that will handle this for you called mailbot. It takes care of checking to see if the message is bulk or mailing list. According to the man page, mailbot won't respond if the original message has any of the following headers: Precedence: junk Precedence: bulk Precedence: list List-ID: if its MIME content type is "multipart/report" (this is the MIME content type for delivery status notifications) Which saves you the trouble. Mailbot also takes care of "remembering via a small database who has already received an autoreply so you don't keep sending out the same autoreply. > now i want to do the following, as an example a file called "aliases" > has email addresses of one user in it like follows: > You want to look at http://www.courier-mta.org/maildropfilter.html and the lookup() function. It does what you are looking for, but maildrop is a better solution to your problem. Here's what I have in my global maildroprc: #If there is a autoreply.txt file in the user's home directory, use it `test -f autoreply.txt` if ($RETURNCODE==0) { cc "| /usr/lib/courier/bin/mailbot -t autoreply.txt -d autoreply.db -D 7 -A 'Courier-Autoreply: 1'" } This will simply test to find out if there is an autoreply.txt file in the user's home directory. If there is, it gets sent by mailbot as the autoreply (but only once mailbot determines that none of the above mentioned headers were in the original and that the user isn't listed in the autoreply.db file as having received an autoreply in the past 7 days.) Jay -- Jay Lee <jlee@pbu.edu> Network/Systems Administrator Information Technology Department Philadelphia Biblical University -- --------------070207040700060205000009 Content-Type: text/x-vcard; charset=utf-8; name="jlee.vcf" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="jlee.vcf" begin:vcard fn:Jay Lee n:Lee;Jay org:Philadelphia Biblical University;Information Technology Department email;internet:jlee@pbu.edu title:Network/Systems Administrator x-mozilla-html:TRUE url:http://www.pbu.edu version:2.1 end:vcard --------------070207040700060205000009 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ --------------070207040700060205000009 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ courier-users mailing list courier-users@lists.sourceforge.net Unsubscribe: https://lists.sourceforge.net/lists/.../courier-users --------------070207040700060205000009-- |
![]() |
| Thread Tools | |
| Display Modes | |
|
|