Automatic mailing list creation, something like Google Groups
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 [email protected] 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.
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?
I'm running qmail on the mail server and Apache+PHP on the web server.
Best regards.
-Filippo Fadda
Quoted 8 lines · Filippo Fadda
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 [email protected] 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.
Quoted 7 lines
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.
Quoted 1 line
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?
Signature · 4 lines
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.Re: Automatic mailing list creation, something like Google
In reply to Filippo FaddaQuoted 11 lines · you
Quoted 1 line · Filippo Fadda
I'm creating something like Google Groups and I need two important
features:
Quoted 7 lines
1) Each group is associated to a specific mailing list with the same group alias. For example [email protected] 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.
Quoted 4 lines
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.
Quoted 9 lines
Quoted 7 lines
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.shand 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?
Quoted 5 lines
Quoted 1 line
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
Quoted 7 lines · Filippo Fadda
Quoted 6 lines · you
Quoted 3 lines · Filippo Fadda
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.
Quoted 6 lines
Quoted 1 line
Take
mlmmj-make-ml.shand 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
Signature · 2 lines
Morten K. Poulsen <[email protected]> http://www.afdelingp.dk/