* Re: Automatic mailing list creation, something like Google Groups
2005-05-21 13:55 Automatic mailing list creation, something like Google Groups Filippo Fadda
@ 2005-05-22 11:07 ` Mads Martin Joergensen
2005-05-23 8:19 ` Automatic mailing list creation, something like Google Filippo Fadda
2005-05-24 13:34 ` Automatic mailing list creation, something like Google Groups Morten K. Poulsen
2 siblings, 0 replies; 4+ messages in thread
From: Mads Martin Joergensen @ 2005-05-22 11:07 UTC (permalink / raw)
To: mlmmj
* Filippo Fadda <fifadd@tin.it> [May 21. 2005 15:56]:
> I'm creating something like Google Groups and I need two important features:
>
> 1) Each group is associated to a specific mailing list with the same
> group alias. For example peaceandlove@example.com is the mailing list
> related to the group identified as peaceandlove.
> I need that any "valid" mail sent to peaceandlove mailing list launch
> a PHP script that insert into the related group database the mail
> itself, like Google Groups works.
This might need a wrapper script around mlmmj-process. Having the
possibility to provide a DIR/control/postcommand is on the TODO list. I
can provide you with a patch to do what you want if you tell me exactly
what it is.
> 2) I need also to create a new mailing list each time that a new group
> is created and naturally to delete it when a group itself is deleted.
> The group is created via a web page. Is some way to do this? The mail
> server and the web server are not on the same PC, they are running on
> two different machines. I need to create some NFS link and run a
> script that create the directory and files needed by mlmmj? Can you
> suggest to me some way to do this? Have you an idea?
Take mlmmj-make-ml.sh and modify it to fit your needs.
> I'm running qmail on the mail server and Apache+PHP on the web server.
If you're running qmail, why not go with ezmlm which will give you
better performance since it's working with the very interns of the mail
server?
--
Mads Martin Joergensen, http://mmj.dk
"Why make things difficult, when it is possible to make them cryptic
and totally illogical, with just a little bit more effort?"
-- A. P. J.
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: Automatic mailing list creation, something like Google
2005-05-21 13:55 Automatic mailing list creation, something like Google Groups Filippo Fadda
2005-05-22 11:07 ` Mads Martin Joergensen
@ 2005-05-23 8:19 ` Filippo Fadda
2005-05-24 13:34 ` Automatic mailing list creation, something like Google Groups Morten K. Poulsen
2 siblings, 0 replies; 4+ messages in thread
From: Filippo Fadda @ 2005-05-23 8:19 UTC (permalink / raw)
To: mlmmj
At 13:07 22/05/2005, you wrote:
>* Filippo Fadda <fifadd@tin.it> [May 21. 2005 15:56]:
> > I'm creating something like Google Groups and I need two important
> features:
> >
> > 1) Each group is associated to a specific mailing list with the same
> > group alias. For example peaceandlove@example.com is the mailing list
> > related to the group identified as peaceandlove.
> > I need that any "valid" mail sent to peaceandlove mailing list launch
> > a PHP script that insert into the related group database the mail
> > itself, like Google Groups works.
>
>This might need a wrapper script around mlmmj-process. Having the
>possibility to provide a DIR/control/postcommand is on the TODO list. I
>can provide you with a patch to do what you want if you tell me exactly
>what it is.
Great! I will write you in the next days. It's not difficult, I think that
simply you can call a script with some parameter. The script makes some
check, as verify if the user has subscribed to the group, etc.
> > 2) I need also to create a new mailing list each time that a new group
> > is created and naturally to delete it when a group itself is deleted.
> > The group is created via a web page. Is some way to do this? The mail
> > server and the web server are not on the same PC, they are running on
> > two different machines. I need to create some NFS link and run a
> > script that create the directory and files needed by mlmmj? Can you
> > suggest to me some way to do this? Have you an idea?
>
>Take mlmmj-make-ml.sh and modify it to fit your needs.
So do you think that the NFS link between web server and mail server is the
only possible solution?
Is there some other method? Is it possibile for example configure a .qmail
to serve this purpose?
> > I'm running qmail on the mail server and Apache+PHP on the web server.
>
>If you're running qmail, why not go with ezmlm which will give you
>better performance since it's working with the very interns of the mail
>server?
Because ezmlm doesn't fit my needed. Actually I'm running Postfix with
Majordomo, and I have write an italian how-to related the issue (because
majordomo is designed for qmail and the documentation neglect some
important issues), but I want switch to qmail, because postfix loses a lot
of email message when it speaks with slowly mail server like hotmail, aol,
ecc. and in my opinion qmail is better designed.
I have configured postfix with dedicated transport processes but it lost
always messages, so I have decided to switch qmail.
Majordomo can manage easily a newsletter, because you can configure a one
way list: you can post only if you know a password. Instead ezmlm is based
on "moderation" concept and if you want configure a newsletter, you (the
admin) have to moderated each message that you send to the newsletter
itself. This is good for moderated mailing list, but not for newsletter.
I'm not an expert of ezmlm, if I'm wrong you can correct me. This is that I
have understand reading the documentation of ezmlm.
I have seen that with mlmmj you can configure a newsletter with a simple
hack. Just using an extra header cointaining a password, that mlmmmj
deletes first to delivery the message itself. This extra header will
contain the password to newsletter posting. You can restrict list post
using regular expression to stop all the messages that haven't this special
extra header. This is similar to majordomo makes.
Thank you
-Filippo Fadda
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Automatic mailing list creation, something like Google Groups
2005-05-21 13:55 Automatic mailing list creation, something like Google Groups Filippo Fadda
2005-05-22 11:07 ` Mads Martin Joergensen
2005-05-23 8:19 ` Automatic mailing list creation, something like Google Filippo Fadda
@ 2005-05-24 13:34 ` Morten K. Poulsen
2 siblings, 0 replies; 4+ messages in thread
From: Morten K. Poulsen @ 2005-05-24 13:34 UTC (permalink / raw)
To: mlmmj
On Mon, May 23, 2005 at 10:19:19AM +0200, Filippo Fadda wrote:
> At 13:07 22/05/2005, you wrote:
> >* Filippo Fadda <fifadd@tin.it> [May 21. 2005 15:56]:
> >> I need that any "valid" mail sent to peaceandlove mailing list launch a
> >> PHP script that insert into the related group database the mail itself,
> >> like Google Groups works.
> >
> >This might need a wrapper script around mlmmj-process.
It could probably also be done with an alias like
peaceandlove: "|/usr/bin/php /path/to/script.php","|/usr/bin/mlmmj-recieve -L
/var/spool/mlmmj/peaceandlove"
But the php script MUST output the mail.
Else you could take the wrapper approach and make a list.sh like
tmp=`mktemp /tmp/list.sh-XXXXXX`
cat >"$tmp"
/usr/bin/php /path/to/script.php <"$tmp"
/usr/bin/mlmmj-recieve -L "/var/spool/mlmmj/$1" <"$tmp"
and have the alias be something like
peaceandlove: "|/usr/local/bin/list.sh peaceandlove"
I do that for newsletters which need to fetch recipient lists from a database.
> >Take mlmmj-make-ml.sh and modify it to fit your needs.
>
> So do you think that the NFS link between web server and mail server is the
> only possible solution?
> Is there some other method? Is it possibile for example configure a .qmail to
> serve this purpose?
Or have a secret alias (with a password in some header) and make that alias a
shell script which creates the list. Then the web server can send a mail to
this alias, when a user creates a new group.
Morten
--
Morten K. Poulsen <morten@afdelingp.dk>
http://www.afdelingp.dk/
^ permalink raw reply [flat|nested] 4+ messages in thread