1 message in net.sourceforge.lists.courier-maildrop[maildropl] Maildrop, EoC and Postfix
FromSent OnAttachments
Markus TörnqvistAug 13, 2003 12:31 pm 
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:[maildropl] Maildrop, EoC and PostfixActions...
From:Markus Törnqvist (mj@nysv.org)
Date:Aug 13, 2003 12:31:42 pm
List:net.sourceforge.lists.courier-maildrop

Hello!

I'm trying to set up Enemies of Carlotta[1] with Maildrop, but can't figure it out. I asked on EoC's mailing list, but no-one knew. EoC's documentation gives the following procmail recipe:

:0 * ? enemies-of-carlotta --name=$RECIPIENT --is-list | enemies-of-carlotta --incoming

Which appears to mean "if $RECIPIENT is a mailinglist, forward the mail to the list." How do I say the same in Maildrop? I get some results, but nothing that works perfectly, nothing that's as elegant as the procmail solution, which I never bothered to try out.

I have a test list called mjt2-borg where mjt and mjt2 are subscribers. It is naturally owned by mjt2, and /etc/aliases lists that mjt2-borg goes to mjt2. How is Postfix or Maildrop or EoC supposed to know about list-unsubscribe and other such email adresses, do I have to list all of them in /etc/aliases or something? Sorry, I know it has nothing to do with Maildrop, but someone might still know ;)

So back to the point, referring to the mailfilter far down:

If I have "cc '|enemies-of-carlotta --name=$RECIPIENT --is-list'" when mailing mjt2, I get a message that the message bounced, for not being a list, but mjt2 gets a copy correctly. If I have "to '|enemies-of-carlotta --name=$RECIPIENT --is-list'" I get just a bounce notice, mjt2 gets nothing.

Then again, if I use "cc '|enemies-of-carlotta --name=$RECIPIENT --is-list'" when I mail mjt2-borg, I get it twice, mjt2 gets it once. If I use "to '|enemies-of-carlotta --name=$RECIPIENT --is-list'" in the same situation, nothing gets through anywhere.

So, the following seems the best solution, but when mailing a non-list, I get a bounce message that's not really true, and when mailing a list the owner gets one message, the others get two messages.

foreach (/^(To|Cc): .*/) { RECIPIENT=getaddr($MATCH) SENDER=$FROM

cc '|enemies-of-carlotta --name=$RECIPIENT --is-list' if ($EXITCODE == 0) { cc '|enemies-of-carlotta --incoming' } else { to $DEFAULT } }

I don't think it's a bug in EoC that the others get two messages, there must be something wrong with the CCs; does anyone see something obviously b0rked? And how do I suppress the bounce, if I mail a non-list?

Thanks!

[1] http://www.iki.fi/liw/eoc/