On Sun, Feb 04, 2001 at 01:59:51AM -0500, Ian Jacobs wrote:
> Hi folks,
>
> I thought I'd look at procmail as a way of routing email
> for my new domain "purplecrayon.org". The following recipe
> seems to do what I want it to do:
> 1) Forward mail to N people on the purple crayon mailing list
> 2) Give me a copy
> 3) Put a copy in a mailbox that will be used to build
> an HTML archive
Here is what I use for fogo right now, though it's not very good
and I should be using something else (like real list software.)
/etc/postfix/aliases has:
fogo-dist: :include:/usr/local/lists/fogo
fogo-request: gerald
/usr/local/lists/fogo is a flat text file of email addresses.
/etc/postfix/virtual has:
impressive.net un.impressive.net
@impressive.net gerald
which causes
[email protected] to go to gerald. (along with
anything else that isn't explicitly listed in the aliases file)
~gerald/.procmailrc has:
ARCHIVEDIR=`date +%Y/%m/%d`
UMASK=022
# archive an extra copy of fogo stuff
:0c
* ^TO.*
[email protected]
$HOME/archives/fogo/$ARCHIVEDIR/.
UMASK=077
:0c
* ^TO.*
[email protected]
| $HOME/bin/sleep-and-update-fogo-archive
# fogo mailing list (munge a bit, then forward to dist alias)
:0
* ^TO.*
[email protected]
{
:0f
| formail -I"List-Id: <fogo.impressive.net>" \
-I"List-Help: <
http://impressive.net/people/gerald/1999/12/fogo/>" \
-I"List-Archive: <
http://impressive.net/archives/fogo/>"
:0
!
[email protected]
}
(I did s/fogo/sample/ on that last one to prevent spambots from
sending directly to the fogo-dist address.)
> Here's the question: Should I not be using procmail at all?
> I haven't tried out SmartList or anything else.
probably not, because without real list software you don't have
very good bounce/loop detection (I think postfix will catch most
of the loops that I care about, though I don't know for sure),
and you lack other features like:
- restricting the ability to post to those on the dist list
(fortunately, spam hasn't become a problem on fogo yet)
- letting people add/remove themselves to the list automatically
I keep meaning to install Mailman [1] on un, but never get around
to it. (in part because I think there are a few things that I
won't like, like the URIs it uses for its web interfaces.)
[1]
http://www.list.org/
--
Gerald Oskoboiny <
[email protected]>
http://impressive.net/people/gerald/