procmail
[Top] [All Lists]

Re: procmail form /etc/aliases

1996-09-11 00:44:44
On Tuesday 10 September 96, at 18 h 34, the keyboard of "B. Engineer" 
<bne(_at_)baynestudio(_dot_)com> wrote:

Now, I do not want to create user accounts for every email address so I 
can use procmail to process it. So I decided to take my working script 
and use it where its called directly from /etc/aliases as 
testing-mailbot:"|/usr/local/bin/procmail /zen1/info/procmail"

The solution I use is to create *one* account which will receive all the 
mail which needs to be automatically processed. I use the "maillist" 
account (I have SmartList, too) and I edit its ".procmailrc".

-------
aliases:

testing-mailbot: maillist

---------
~maillist/.procmailrc:

:0
* ^TO*testing-mailbot(_at_)my(_dot_)dom(_dot_)ain
* !^FROM_DAEMON
* !^X-Loop: testing-mailbot(_at_)my(_dot_)dom(_dot_)ain
| (formail -rt -A"Precedence: junk" \
          -A"From: someone" \
           -A"X-Loop: testing-mailbot(_at_)my(_dot_)dom(_dot_)ain" \
            ;\
          echo "Reply from mailbot") | \
    $SENDMAIL -t

<Prev in Thread] Current Thread [Next in Thread>