[xmail] Re: Mailman Xmail Mysql
On Wednesday 07 December 2005 07:14, Valdir Barbosa wrote: > I am trying to make to function mailman with Xmail and mysql, but when > sending email pra list does not go. > What necessary to make? I am also using the SmartPost. I just installed a XMail with Mailman on a new server and it is quite tricky. 1. Is XMail installed and running by itself? Were you able to compile and install Mailman and create a list sucessfully? 2. Several important (to us) Mailman options are compiled in according to your ./configure command so make sure you have that right. If you're not sure run "make distclean" and re-build Mailman with the needed settings. 3. Check the paths in the Python scripts and the tab file to make sure they are correct for your system. I don't use mysql with XMail so I can't help you there. Jeff - To unsubscribe from this list: send the line "unsubscribe xmail" in the body of a message to [EMAIL PROTECTED] For general help: send the line "help" in the body of a message to [EMAIL PROTECTED]
[xmail] Re: Mailman ...
On Thursday 09 June 2005 14:46, Davide Libenzi wrote: > On Thu, 9 Jun 2005, Jeffrey Laramie wrote: > > On Thursday 09 June 2005 13:55, Davide Libenzi wrote: > >> Anyone using Mailman with XMail? Ecartis is totally screwed WRT > >> encodings... > > > > I've got a couple of linux servers running it. Unfortunately the > > instructions and scripts on my site are out of date and I haven't had > > time to update them :-p > > > > If you want I can send you what I'm using, but it's only been tested on > > my servers. > > I think I can figure out how to set it up. I was more interested about its > inter-operation with XMail, especially WRT MIME encodings ... Well, obviously there's nothing I'm going to tell you about the technical side... From an admin standpoint, I've never had any problems or complaints concerning MIME, but my lists are very low volume non-technical users so I don't really see much besides text anyway. Jeff - To unsubscribe from this list: send the line "unsubscribe xmail" in the body of a message to [EMAIL PROTECTED] For general help: send the line "help" in the body of a message to [EMAIL PROTECTED]
[xmail] Re: Mailman ...
On Thu, 9 Jun 2005, [EMAIL PROTECTED] wrote: > >> >> Anyone using Mailman with XMail? Ecartis is totally screwed WRT >> encodings... >> >> >> >> - Davide > > Hi Davide, > > If you are willing to test a patch please rebuild ecartis with the > follwing patch: > > http://helion.xcyb.org/patches/ecartis_1.0.0_preserve_transfer-encoding.diff > > They say that it cures that encoding disease. > > Best regards, Thanks Micea, I already made and installed a simlar patch on ecartis. It's source code is scary though :-/ - Davide - To unsubscribe from this list: send the line "unsubscribe xmail" in the body of a message to [EMAIL PROTECTED] For general help: send the line "help" in the body of a message to [EMAIL PROTECTED]
[xmail] Re: Mailman ...
> > Anyone using Mailman with XMail? Ecartis is totally screwed WRT > encodings... > > > > - Davide Hi Davide, If you are willing to test a patch please rebuild ecartis with the follwing patch: http://helion.xcyb.org/patches/ecartis_1.0.0_preserve_transfer-encoding.diff They say that it cures that encoding disease. Best regards, Mircea Ciocan - To unsubscribe from this list: send the line "unsubscribe xmail" in the body of a message to [EMAIL PROTECTED] For general help: send the line "help" in the body of a message to [EMAIL PROTECTED]
[xmail] Re: Mailman ...
On Thu, 9 Jun 2005, Jeffrey Laramie wrote: > On Thursday 09 June 2005 13:55, Davide Libenzi wrote: >> Anyone using Mailman with XMail? Ecartis is totally screwed WRT >> encodings... >> > > I've got a couple of linux servers running it. Unfortunately the instructions > and scripts on my site are out of date and I haven't had time to update > them :-p > > If you want I can send you what I'm using, but it's only been tested on my > servers. I think I can figure out how to set it up. I was more interested about its inter-operation with XMail, especially WRT MIME encodings ... - Davide - To unsubscribe from this list: send the line "unsubscribe xmail" in the body of a message to [EMAIL PROTECTED] For general help: send the line "help" in the body of a message to [EMAIL PROTECTED]
[xmail] Re: Mailman ...
On Thursday 09 June 2005 13:55, Davide Libenzi wrote: > Anyone using Mailman with XMail? Ecartis is totally screwed WRT > encodings... > I've got a couple of linux servers running it. Unfortunately the instructions and scripts on my site are out of date and I haven't had time to update them :-p If you want I can send you what I'm using, but it's only been tested on my servers. Jeff - To unsubscribe from this list: send the line "unsubscribe xmail" in the body of a message to [EMAIL PROTECTED] For general help: send the line "help" in the body of a message to [EMAIL PROTECTED]
[xmail] Re: mailman python script
> > 2. The script doesn't append entries to the log file, but instead writes > > over the first line each time. > > You'll have to add an "a" to the open-mode of the log file (or add a seek > to the end). I fixed this, a problem with the log timestamp, and added logging for a successful script execution so that this log is consistant with the other mailman logs. The improved script is here: http://www.ubaight.com/xmail/mailman Jeff - To unsubscribe from this list: send the line "unsubscribe xmail" in the body of a message to [EMAIL PROTECTED] For general help: send the line "help" in the body of a message to [EMAIL PROTECTED]
[xmail] Re: mailman python script
> > 1. If the sender uses capitalization in the list name, XMail correctly > > recognizes it and executes the correct command alias but the script > > doesn't match the name to the correct list. > > You might want to use a convetion for file names, and than use lower() to > convert email addresses: > > http://python.active-venture.com/lib/module-string.html Both mailman and the integration scripts create and use lower case list names and cmdaliases, so everything is consistant at the filesystem level. I simply needed to take the mixed case list name provided by @@RCPT and convert it to lower case before evaluating it. I actually had already found the right command and inserted it in the correct place. I just screwed up the usage using "name = lower(name)" instead of "name = name.lower()". It's fixed now and if anyone is interested the updated script is here: http://www.ubaight.com/xmail/mailman > > > 2. The script doesn't append entries to the log file, but instead writes > > over the first line each time. > > You'll have to add an "a" to the open-mode of the log file (or add a seek > to the end). I'd like to make some other changes in the logging procedure so I'll play around with this tonight when I have more time. Jeff - To unsubscribe from this list: send the line "unsubscribe xmail" in the body of a message to [EMAIL PROTECTED] For general help: send the line "help" in the body of a message to [EMAIL PROTECTED]
[xmail] Re: mailman python script
On Tue, 29 Mar 2005, Jeffrey Laramie wrote: > Hello All, > > I need some help updating the python script that intergrates XMail with the > mailman list manager. Unfortunately I didn't write the script, and since my > programming skills are quite limited and don't include python, my attempts to > modify the script aren't going anywhere. I have no clue about Python (and not even have urgent plans to learn it), but google always helps ... > The 2 specific problems I have are: > > 1. If the sender uses capitalization in the list name, XMail correctly > recognizes it and executes the correct command alias but the script doesn't > match the name to the correct list. You might want to use a convetion for file names, and than use lower() to convert email addresses: http://python.active-venture.com/lib/module-string.html > 2. The script doesn't append entries to the log file, but instead writes over > the first line each time. You'll have to add an "a" to the open-mode of the log file (or add a seek to the end). - Davide - To unsubscribe from this list: send the line "unsubscribe xmail" in the body of a message to [EMAIL PROTECTED] For general help: send the line "help" in the body of a message to [EMAIL PROTECTED]
[xmail] Re: Mailman
Sandra Lee wrote: >Thanks! > >After working past some quirks in the OS, I finally got this working. I've >been a Windows admin/programmer for many years, but I'm a Linux newbie; I >would never have figured out how to make this work without your assistance. >:) > >Now that I'm sure I can use this stuff, I'd love a copy of that script to >create the cmdalias files - I have a lot of configuration work ahead of me. > >Thanks again, >Sandra > > > I have also succesfully installed Mailman with Xmail on linux. It works like a charm I had some troubles about accesing archives but I have managed to solve it. Sasa - To unsubscribe from this list: send the line "unsubscribe xmail" in the body of a message to [EMAIL PROTECTED] For general help: send the line "help" in the body of a message to [EMAIL PROTECTED]
[xmail] Re: Mailman
Thanks! After working past some quirks in the OS, I finally got this working. I've been a Windows admin/programmer for many years, but I'm a Linux newbie; I would never have figured out how to make this work without your assistance. :) Now that I'm sure I can use this stuff, I'd love a copy of that script to create the cmdalias files - I have a lot of configuration work ahead of me. Thanks again, Sandra - Original Message - From: "Toby Reiter" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Cc: "Sandra Lee" <[EMAIL PROTECTED]> Sent: Sunday, November 23, 2003 10:28 AM Subject: [xmail] Re: Mailman > > >Hi, > > > >I was wondering whether anyone has managed to get XMail and Mailman to work > >together, and if so, how did you configure the mailman list-control aliases > >in XMail? I've tried setting up piped commands in aliases.tab and also > >under cmdaliases, but I haven't found a way to make it work, and this is one > >of those rare instances when Google doesn't seem to be of much assistance. > > > >If nobody has managed to do it yet, I'll give it up and try something else. > >That would be a shame, because so far I'm very impressed with both packages. > >I just wish I could get them to talk to each other! > > I have gotten it to work. There are a few steps involved in making this work. > > First, you should create a cmdalias in the domain for each of the > mailboxes that mailman expects. An example with domain = > lists.domain.com and list name=list, you'd create the following > cmdalias files in /var/MailRoot/cmdaliases: > > list-admin.tablist-confirm.tab list-leave.tab list-request.tab > list.tab > list-bounces.tab list-join.tab list-owner.tab > list-subscribe.tab list-unsubscribe.tab > > Each file has the following line in it: > > "external"[tab]"0"[tab]"0"[tab]"/var/MailRoot/bin/mailman.sh"[tab]"@@RCPT"[t ab]"@@TMPFILE" > > Then you put the following file, mailman.sh, in your > /var/MailRoot/bin folder. You'll also need the econv package > available on the xmailserver.org web page, under the tools section: > > # START mailman.sh ### > #! /bin/bash > # > # This script takes an incoming list for a mailing list and parses > the email address > # to determine the correct list for sending to Mailman's wrapper program > > MAIL_ROOT=/var/MailRoot > > # Arguments > list_email=$1 > messagefile=$2 > > # First, isolate the list address (i.e. list-owner, list-subscribe, etc.) > list_address=`echo "$list_email" | sed 's/@.*//g'` > > # Next, isolate the list name > list_name=`echo "$list_address" | sed 's/-.*//g'` > > # Isolate the list user (i.e. owner, admin, subscribe, etc.) > list_user=`echo "$list_address" | sed 's/.*-//g'` > > # If the list user is the same as the list name, this means this is > the address for the list > # itself, so the list user should be set to post > if [ $list_name == $list_user ] ; then > list_user=post > fi > > # Convert the Xmail mail file into an email file > tmpfile=/home/xmail/$RANDOM.conv > econv --unix --input $messagefile --output $tmpfile > > # Pipe the email file to the Mailman wrapper for the correct list and user > cat $tmpfile | /usr/local/mailman/mail/mailman $list_user > $list_name >& /home/xmail/error.log > rm $tmpfile > > logfile=$MAIL_ROOT/logs/mailinglists.log > logentry=`date` > logentry="$logentry : $list_email" > echo $logentry >> $logfile > > ## END mailman.sh ### > > Granted, this file is not the most efficient way to do this. Also, > there is a major flaw with the script, as it currently does not allow > list names with a dash in them (this is actually a very common > practice). If someone has something better to offer, please do (and > post it to the list)! > > I've also create a semi-automated script that creates a list in > mailman and also creates each of the necessary cmdalias files. > Contact me off list to get this code, as it's more involved. > > Good luck! > > Toby > > -- > Toby Reiter mailto:[EMAIL PROTECTED] > Breezing Internet Communications http://www.breezing.com > 1106 West Main Stphone:434.295.2050 > Charlottesville, VA 22903fax:603.843.6931 > - > To unsubscribe from this list: send the line "unsubscribe xmail" in > the body of a message to [EMAIL PROTECTED] > For general help: send the line "help" in the body of a message to > [EMAIL PROTECTED] > - To unsubscribe from this list: send the line "unsubscribe xmail" in the body of a message to [EMAIL PROTECTED] For general help: send the line "help" in the body of a message to [EMAIL PROTECTED]
[xmail] Re: Mailman
>Hi, > >I was wondering whether anyone has managed to get XMail and Mailman to work >together, and if so, how did you configure the mailman list-control aliases >in XMail? I've tried setting up piped commands in aliases.tab and also >under cmdaliases, but I haven't found a way to make it work, and this is one >of those rare instances when Google doesn't seem to be of much assistance. > >If nobody has managed to do it yet, I'll give it up and try something else. >That would be a shame, because so far I'm very impressed with both packages. >I just wish I could get them to talk to each other! I have gotten it to work. There are a few steps involved in making this work. First, you should create a cmdalias in the domain for each of the mailboxes that mailman expects. An example with domain = lists.domain.com and list name=list, you'd create the following cmdalias files in /var/MailRoot/cmdaliases: list-admin.tablist-confirm.tab list-leave.tab list-request.tab list.tab list-bounces.tab list-join.tab list-owner.tab list-subscribe.tab list-unsubscribe.tab Each file has the following line in it: "external"[tab]"0"[tab]"0"[tab]"/var/MailRoot/bin/mailman.sh"[tab]"@@RCPT"[tab]"@@TMPFILE" Then you put the following file, mailman.sh, in your /var/MailRoot/bin folder. You'll also need the econv package available on the xmailserver.org web page, under the tools section: # START mailman.sh ### #! /bin/bash # # This script takes an incoming list for a mailing list and parses the email address # to determine the correct list for sending to Mailman's wrapper program MAIL_ROOT=/var/MailRoot # Arguments list_email=$1 messagefile=$2 # First, isolate the list address (i.e. list-owner, list-subscribe, etc.) list_address=`echo "$list_email" | sed 's/@.*//g'` # Next, isolate the list name list_name=`echo "$list_address" | sed 's/-.*//g'` # Isolate the list user (i.e. owner, admin, subscribe, etc.) list_user=`echo "$list_address" | sed 's/.*-//g'` # If the list user is the same as the list name, this means this is the address for the list # itself, so the list user should be set to post if [ $list_name == $list_user ] ; then list_user=post fi # Convert the Xmail mail file into an email file tmpfile=/home/xmail/$RANDOM.conv econv --unix --input $messagefile --output $tmpfile # Pipe the email file to the Mailman wrapper for the correct list and user cat $tmpfile | /usr/local/mailman/mail/mailman $list_user $list_name >& /home/xmail/error.log rm $tmpfile logfile=$MAIL_ROOT/logs/mailinglists.log logentry=`date` logentry="$logentry : $list_email" echo $logentry >> $logfile ## END mailman.sh ### Granted, this file is not the most efficient way to do this. Also, there is a major flaw with the script, as it currently does not allow list names with a dash in them (this is actually a very common practice). If someone has something better to offer, please do (and post it to the list)! I've also create a semi-automated script that creates a list in mailman and also creates each of the necessary cmdalias files. Contact me off list to get this code, as it's more involved. Good luck! Toby -- Toby Reiter mailto:[EMAIL PROTECTED] Breezing Internet Communications http://www.breezing.com 1106 West Main Stphone:434.295.2050 Charlottesville, VA 22903fax:603.843.6931 - To unsubscribe from this list: send the line "unsubscribe xmail" in the body of a message to [EMAIL PROTECTED] For general help: send the line "help" in the body of a message to [EMAIL PROTECTED]