Re: [Mailman-Users] Mailman 2.1.5 - FQDN Question
I dug around some more and was able to find out how to fix the symptoms. If I run fix_url on the lists, they appear in the web interface. /path/to/withlist -l -r fix_url xyz-sales -u www.domainofmine.net -v However, can anyone tell me why lists created in the web interface default to www.domainofmine.net but lists created from the command line default to localhost.localdomain? Of course, I can just run fix_url after every list creation in the shell script, but, is there a template somewhere that I can use to set it to use www.domainofmine.net for all lists? Hope someone can assist! Thanks in advance! Best Regards, Rick -- Rick Cogley (mailto:[EMAIL PROTECTED]) Tel: 03-5940-6880 || Fax: 03-5940-6881 || Cell: 090-4423-5475 (Outside Japan, remove leading zero -- +81-3-5940-6880) English: http://www.esolia.com || Japanese: http://www.esolia.co.jp Bilingual IT solutions and management firm -- eSolia. -- -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Cogley, Rick Sent: Thursday, July 21, 2005 1:55 PM To: 'mailman-users@python.org' Subject: Re: [Mailman-Users] Mailman 2.1.5 - FQDN Question Apologies - it formatted wrong again, stringing the most relevant line together making it looked remarked out. Once more, it is probably obvious to you, this is the relevant line in the config: add_virtualhost('www.domainofmine.net', 'domainofmine.net') This is what works, as opposed to using the DEFAULT_URL_HOST etc above it. Thanks Rick -Original Message- From: Cogley, Rick Sent: Thursday, July 21, 2005 12:55 PM To: 'mailman-users@python.org' Cc: Cogley, Rick Subject: Mailman 2.1.5 - FQDN Question Hello, and Greetings from Japan - I'm new to the list and to Mailman, but I hope someone more experienced will be able to give me some pointers since I have not been able to get specific info from google or the manual on this problem. Please allow me to explain a little: After installing 2.1.5 from RPM on Fedora Core 4, I tried to set up mm_cfg.py with FQDN values, but was only able to get Mailman to start (service mailman start) if I only enter the virtual host section, like so, with all my other failed attempts remmed out with a #: =8= ... # DEFAULT_URL_HOST = fqdn # DEFAULT_EMAIL_HOST = fqdn # DEFAULT_URL_HOST = www.domainofmine.net # DEFAULT_EMAIL_HOST = domainofmine.net # DEFAULT_URL_HOST = rcogley.user.myisp.com # DEFAULT_EMAIL_HOST = rcogley.user.myisp.com # Because we've overriden the virtual hosts above add_virtualhost # MUST be called after they have been defined. # NOTE: bug with quotes # add_virtualhost('DEFAULT_URL_HOST', 'DEFAULT_EMAIL_HOST') add_virtualhost('www.domainofmine.net', 'domainofmine.net') ... 8= I was not able to get Mailman to start if I set DEFAULT_URL_HOST in the lines above the add_virtualhost line. It complains about not being able to find the hostname www. (I do have www defined in the DNS zone for domainofmine.net). Anyway, even with just the add_virtualhost line only, I am able to add lists from the web interface without trouble, and the lists that get created work correctly. It is when I try adding and configuring lists from the command line that I run into trouble. Here's the essence of the shell script I cobbled together from a couple of sources including the archives of this list. It's not sophisticated with for/do loops or anything but it seems to get the job done. I am using it to quickly create a few lists for a single company, and hope to increase efficiency in doing so. If we have the customer Acme, then this asks for the short name for the company at the prompt, and then proceeds to make 4 lists - acme-support@, acme-911@, acme-memo@, [EMAIL PROTECTED] 8 #!/bin/sh # -- # mm-multi.sh - a script for creating Mailman lists. ... echo mm-multi.sh - \$Revision: 0.1 $ # set global variables ... MMLISTLANG=en [EMAIL PROTECTED] ... echo echo Creating lists based on a structure... while [ $x != y ]; do echo echo Enter a short name for the client, no spaces, lowercase: read CSHORTNAME echo echo == SCRIPT PRESETS == echo Location of Mailman scripts: $MMBIN echo Location of Mailman aliases: $MMALIASES echo List language: $MMLISTLANG echo List Owner Email: $MMOWNEREMAIL echo List Admin Password: $MMADMINPASS echo echo == USER == echo Client Short Name: $CSHORTNAME echo echo Is this correct? (y/n) read x done ... /path/to/newlist -l en -q $CSHORTNAME-sales [EMAIL PROTECTED] s0m3pass /path/to/genaliases /path/to/add_members -r memberlistfile -w n -a y $CSHORTNAME-sales echo description = '$CSHORTNAME-sales' /tmp/mm-multi-$CSHORTNAME-sales-tmp echo available_languages = ['en', 'ja'] /tmp/mm-multi-$CSHORTNAME-sales-tmp echo accept_these_nonmembers = ['[EMAIL PROTECTED]@(.+\\\.|)domainofmine\\\.co\\\.jp$', '[EMAIL PROTECTED
Re: [Mailman-Users] Mailman 2.1.5 - FQDN Question
On Jul 21, 2005, at 15:38, Cogley, Rick wrote: # NOTE: bug with quotes # add_virtualhost('DEFAULT_URL_HOST', 'DEFAULT_EMAIL_HOST') add_virtualhost('www.domainofmine.net', 'domainofmine.net') Note that DEFAULT_URL_HOST and DEFAULT_EMAIL_HOST are variable names not strings, and so should not have been quoted: DEFAULT_URL_HOST = 'www.example.com' DEFAULT_EMAIL_HOST = 'example.com' VIRTUAL_HOSTS.clear() add_virtualhost(DEFAULT_URL_HOST, DEFAULT_EMAIL_HOST) I dug around some more and was able to find out how to fix the symptoms. If I run fix_url on the lists, they appear in the web interface. Any time you do something that changes the URL, you need to use fix_url to update existing lists. However, can anyone tell me why lists created in the web interface default to www.domainofmine.net but lists created from the command line default to localhost.localdomain? Of course, I can just run fix_url after every list creation in the shell script, but, is there a template somewhere that I can use to set it to use www.domainofmine.net for all lists? I would guess that there is a value being added to the VIRTUAL_HOSTS dictionary in your Defaults.py that has the wrong DEFAULT_URL_HOST. 'clear'ing it in your mm_cfg.py allows you to be explict about the entries. -- Jim Tittsler http://www.OnJapan.net/ GPG: 0x01159DB6 Python Starship http://Starship.Python.net/ Ringo MUG Tokyo http://www.ringo.net/rss.html -- Mailman-Users mailing list Mailman-Users@python.org http://mail.python.org/mailman/listinfo/mailman-users Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/ Unsubscribe: http://mail.python.org/mailman/options/mailman-users/archive%40jab.org Security Policy: http://www.python.org/cgi-bin/faqw-mm.py?req=showamp;file=faq01.027.htp
Re: [Mailman-Users] Mailman 2.1.5 - FQDN Question
Thanks, Jim. I will start there to look. Best Regards, Rick -- Rick Cogley (mailto:[EMAIL PROTECTED]) Tel: 03-5940-6880 || Fax: 03-5940-6881 || Cell: 090-4423-5475 (Outside Japan, remove leading zero -- +81-3-5940-6880) English: http://www.esolia.com || Japanese: http://www.esolia.co.jp Bilingual IT solutions and management firm -- eSolia. -- -Original Message- From: Jim Tittsler [mailto:[EMAIL PROTECTED] Sent: Thursday, July 21, 2005 9:02 PM To: Cogley, Rick Cc: 'mailman-users@python.org' Subject: Re: [Mailman-Users] Mailman 2.1.5 - FQDN Question On Jul 21, 2005, at 15:38, Cogley, Rick wrote: # NOTE: bug with quotes # add_virtualhost('DEFAULT_URL_HOST', 'DEFAULT_EMAIL_HOST') add_virtualhost('www.domainofmine.net', 'domainofmine.net') Note that DEFAULT_URL_HOST and DEFAULT_EMAIL_HOST are variable names not strings, and so should not have been quoted: DEFAULT_URL_HOST = 'www.example.com' DEFAULT_EMAIL_HOST = 'example.com' VIRTUAL_HOSTS.clear() add_virtualhost(DEFAULT_URL_HOST, DEFAULT_EMAIL_HOST) I dug around some more and was able to find out how to fix the symptoms. If I run fix_url on the lists, they appear in the web interface. Any time you do something that changes the URL, you need to use fix_url to update existing lists. However, can anyone tell me why lists created in the web interface default to www.domainofmine.net but lists created from the command line default to localhost.localdomain? Of course, I can just run fix_url after every list creation in the shell script, but, is there a template somewhere that I can use to set it to use www.domainofmine.net for all lists? I would guess that there is a value being added to the VIRTUAL_HOSTS dictionary in your Defaults.py that has the wrong DEFAULT_URL_HOST. 'clear'ing it in your mm_cfg.py allows you to be explict about the entries. -- Jim Tittsler http://www.OnJapan.net/ GPG: 0x01159DB6 Python Starship http://Starship.Python.net/ Ringo MUG Tokyo http://www.ringo.net/rss.html -- Mailman-Users mailing list Mailman-Users@python.org http://mail.python.org/mailman/listinfo/mailman-users Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/ Unsubscribe: http://mail.python.org/mailman/options/mailman-users/archive%40jab.org Security Policy: http://www.python.org/cgi-bin/faqw-mm.py?req=showamp;file=faq01.027.htp
Re: [Mailman-Users] Mailman 2.1.5 - FQDN Question
Hi everyone - I was experimenting around with for in do, and there is a much cleaner way to write this shell script. Try it short at first to get the concept: = #!/bin/sh for i in support 911 memo sales Do echo $i Done = This scriptlet will just echo four lines: support 911 memo sales That implied to me that if I can grab the four variable strings I wanted to prepend the short company name to, I could do all the operations on them, each loop: 8 #!/bin/sh # -- # mm-multi.sh - a script for creating Mailman lists. ... echo mm-multi.sh - \$Revision: 0.1 $ # set global variables ... MMLISTLANG=en [EMAIL PROTECTED] ... echo echo Creating lists based on a structure... while [ $x != y ]; do echo echo Enter a short name for the client, no spaces, lowercase: read CSN ... echo echo Is this correct? (y/n) read x done # Loop over strings after in for i in support 911 memo sales do echo = $CSN-$i = echo echo Creating list: $CSN-$i $MMBIN/newlist -l $MMLISTLANG -q $CSN-$i $MMOWNEREMAIL $MMADMINPASS echo Generating Aliases... $MMBIN/genaliases echo Adding Members... $MMBIN/add_members -r $MMDMEMBERS -w n -a n $CSN-$i echo Members of $CSN-$i: $MMBIN/list_members $CSN-$i echo Creating file for config_list... echo description = '$CSN-$i' /tmp/mm-$CSN-$i echo host_name = 'esolia.net' /tmp/mm-$CSN-$i echo max_message_size = 0 /tmp/mm-$CSN-$i echo available_languages = ['en', 'ja'] /tmp/mm-$CSN-$i echo Configuring list... $MMBIN/config_list -i /tmp/mm-$CSN-$i $CSN-$i $MMBIN/withlist -l -r fix_url $CSN-$i -u www.domainofmine.net -v echo done # cleanup rm -f /tmp/mm-* exit 0 ==8 Hope this helps someone. Cheers, Rick Cogley Tokyo, Japan -- Mailman-Users mailing list Mailman-Users@python.org http://mail.python.org/mailman/listinfo/mailman-users Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/ Unsubscribe: http://mail.python.org/mailman/options/mailman-users/archive%40jab.org Security Policy: http://www.python.org/cgi-bin/faqw-mm.py?req=showamp;file=faq01.027.htp
Re: [Mailman-Users] Mailman 2.1.5 - FQDN Question
Cogley, Rick wrote: However, can anyone tell me why lists created in the web interface default to www.domainofmine.net but lists created from the command line default to localhost.localdomain? Of course, I can just run fix_url after every list creation in the shell script, but, is there a template somewhere that I can use to set it to use www.domainofmine.net for all lists? Hope someone can assist! Thanks in advance! and ... /path/to/newlist -l en -q $CSHORTNAME-sales [EMAIL PROTECTED] s0m3pass bin/newlist will create the list in the DEFAULT_URL_HOST domain unless you specify another domain. In your case DEFAULT_URL_HOST is localhost.localdomain because of your original work-around. You can create the list in the correct domain with newlist in 2.1.5 using the arcane syntax /path/to/newlist -l en -q [EMAIL PROTECTED] [EMAIL PROTECTED] s0m3pass (note www.domainofmine.net, not domainofmine.net) In 2.1.6 this syntax is deprecated in favor of /path/to/newlist -l en -q -u www.domainofmine.net $CSHORTNAME-sales [EMAIL PROTECTED] s0m3pass -- Mark Sapiro [EMAIL PROTECTED] The highway is for gamblers, San Francisco Bay Area, Californiabetter use your sense - B. Dylan -- Mailman-Users mailing list Mailman-Users@python.org http://mail.python.org/mailman/listinfo/mailman-users Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/ Unsubscribe: http://mail.python.org/mailman/options/mailman-users/archive%40jab.org Security Policy: http://www.python.org/cgi-bin/faqw-mm.py?req=showamp;file=faq01.027.htp
Re: [Mailman-Users] Mailman 2.1.5 - FQDN Question
Interesting. That may well be the source of some wonky behavior, Steve and thanks. My /etc/hosts has one line: 200.100.10.1 rcogley.myispsdomain.com rcogley localhost ... Which man says is [IP, fqdn, alias, alias] I have another domain I am hosting mail for on the machine, and postfix sends out from root@ from this domain. Also, I have another IP as well. Can I just add to this file so it looks like: 200.100.10.1 rcogley.myispsdomain.com rcogley localhost 200.100.10.1 www.domainofmine.net www ? (and I thought having this schtuff in DNS was enough...) Best Regards, Rick -- Rick Cogley (mailto:[EMAIL PROTECTED]) Tel: 03-5940-6880 || Fax: 03-5940-6881 || Cell: 090-4423-5475 (Outside Japan, remove leading zero -- +81-3-5940-6880) English: http://www.esolia.com || Japanese: http://www.esolia.co.jp Bilingual IT solutions and management firm -- eSolia. -- -Original Message- From: Steve Burling [mailto:[EMAIL PROTECTED] Sent: Friday, July 22, 2005 12:39 AM To: Cogley, Rick Subject: Re: [Mailman-Users] Mailman 2.1.5 - FQDN Question --On July 21, 2005 3:38:30 PM +0900 Cogley, Rick [EMAIL PROTECTED] wrote: However, can anyone tell me why lists created in the web interface default to www.domainofmine.net but lists created from the command line default to localhost.localdomain? Of course, I can just run fix_url after every list creation in the shell script, but, is there a template somewhere that I can use to set it to use www.domainofmine.net for all lists? Hope someone can assist! Thanks in advance! To which I reply: Just a wild-assed guess here, but what's your /etc/hosts look like? Does it have an entry for your the FQDN of your server, with its external IP address? I've stumbled over, or been bitten by, the localhost.localdomain stuff on a bunch of red hat / fedora machines where /etc/hosts only has info for the loopback interface. -- Steve Burlingmailto:[EMAIL PROTECTED] University of Michigan, ICPSRVoice: +1 734 615.3779 330 Packard Street FAX: +1 734 647.8700 Ann Arbor, MI 48104-2910 -- Mailman-Users mailing list Mailman-Users@python.org http://mail.python.org/mailman/listinfo/mailman-users Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/ Unsubscribe: http://mail.python.org/mailman/options/mailman-users/archive%40jab.org Security Policy: http://www.python.org/cgi-bin/faqw-mm.py?req=showamp;file=faq01.027.htp
Re: [Mailman-Users] Mailman 2.1.5 - FQDN Question
Perfect, Mark, thanks! I'll have to upgrade my script today, and put some comments in it about the syntax change for when I can get a new RPM version. Cheers, Rick -Original Message- From: Mark Sapiro [mailto:[EMAIL PROTECTED] Sent: Friday, July 22, 2005 12:11 AM To: Cogley, Rick; 'mailman-users@python.org' Subject: Re: [Mailman-Users] Mailman 2.1.5 - FQDN Question Cogley, Rick wrote: However, can anyone tell me why lists created in the web interface default to www.domainofmine.net but lists created from the command line default to localhost.localdomain? Of course, I can just run fix_url after every list creation in the shell script, but, is there a template somewhere that I can use to set it to use www.domainofmine.net for all lists? Hope someone can assist! Thanks in advance! and ... /path/to/newlist -l en -q $CSHORTNAME-sales [EMAIL PROTECTED] s0m3pass bin/newlist will create the list in the DEFAULT_URL_HOST domain unless you specify another domain. In your case DEFAULT_URL_HOST is localhost.localdomain because of your original work-around. You can create the list in the correct domain with newlist in 2.1.5 using the arcane syntax /path/to/newlist -l en -q [EMAIL PROTECTED] [EMAIL PROTECTED] s0m3pass (note www.domainofmine.net, not domainofmine.net) In 2.1.6 this syntax is deprecated in favor of /path/to/newlist -l en -q -u www.domainofmine.net $CSHORTNAME-sales [EMAIL PROTECTED] s0m3pass -- Mark Sapiro [EMAIL PROTECTED] The highway is for gamblers, San Francisco Bay Area, Californiabetter use your sense - B. Dylan -- Mailman-Users mailing list Mailman-Users@python.org http://mail.python.org/mailman/listinfo/mailman-users Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/ Unsubscribe: http://mail.python.org/mailman/options/mailman-users/archive%40jab.org Security Policy: http://www.python.org/cgi-bin/faqw-mm.py?req=showamp;file=faq01.027.htp
Re: [Mailman-Users] Mailman 2.1.5 - FQDN Question
--On July 22, 2005 4:46:07 AM +0900 Cogley, Rick [EMAIL PROTECTED] wrote: My /etc/hosts has one line: 200.100.10.1 rcogley.myispsdomain.com rcogley localhost ... Which man says is [IP, fqdn, alias, alias] This still looks bogus to me -- localhost is more typically on a line by itself, tied to the loopback interface, for example: 127.0.0.1 localhost.localdomain localhost I have another domain I am hosting mail for on the machine, and postfix sends out from root@ from this domain. Also, I have another IP as well. Can I just add to this file so it looks like: 200.100.10.1 rcogley.myispsdomain.com rcogley localhost 200.100.10.1 www.domainofmine.net www Other than moving the localhost to a line by itself, I *think* this is ok. I'm not a DNS god, though, so others may well correct me. But I suspect that your ultimate problem is one that was suggested by someone else (Mark?) -- you've got a bad value set for DEFAULT_URL_HOST. Fixing that in mm_cfg.py will probably help. YMMV; I'm merely a dabbler in the mailman configuration business. -- Steve Burlingmailto:[EMAIL PROTECTED] University of Michigan, ICPSRVoice: +1 734 615.3779 330 Packard Street FAX: +1 734 647.8700 Ann Arbor, MI 48104-2910 -- Mailman-Users mailing list Mailman-Users@python.org http://mail.python.org/mailman/listinfo/mailman-users Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/ Unsubscribe: http://mail.python.org/mailman/options/mailman-users/archive%40jab.org Security Policy: http://www.python.org/cgi-bin/faqw-mm.py?req=showamp;file=faq01.027.htp
Re: [Mailman-Users] Mailman 2.1.5 - FQDN Question
Thanks Steve. I will ask the hosting company since the instance is on a VPS'ed Fedora. They do some funkay stuff with networking... Cheers, Rick -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Steve Burling Sent: Friday, July 22, 2005 5:06 AM To: 'mailman-users@python.org' Subject: Re: [Mailman-Users] Mailman 2.1.5 - FQDN Question --On July 22, 2005 4:46:07 AM +0900 Cogley, Rick [EMAIL PROTECTED] wrote: My /etc/hosts has one line: 200.100.10.1 rcogley.myispsdomain.com rcogley localhost ... Which man says is [IP, fqdn, alias, alias] This still looks bogus to me -- localhost is more typically on a line by itself, tied to the loopback interface, for example: 127.0.0.1 localhost.localdomain localhost I have another domain I am hosting mail for on the machine, and postfix sends out from root@ from this domain. Also, I have another IP as well. Can I just add to this file so it looks like: 200.100.10.1 rcogley.myispsdomain.com rcogley localhost 200.100.10.1 www.domainofmine.net www Other than moving the localhost to a line by itself, I *think* this is ok. I'm not a DNS god, though, so others may well correct me. But I suspect that your ultimate problem is one that was suggested by someone else (Mark?) -- you've got a bad value set for DEFAULT_URL_HOST. Fixing that in mm_cfg.py will probably help. YMMV; I'm merely a dabbler in the mailman configuration business. -- Steve Burlingmailto:[EMAIL PROTECTED] University of Michigan, ICPSRVoice: +1 734 615.3779 330 Packard Street FAX: +1 734 647.8700 Ann Arbor, MI 48104-2910 -- Mailman-Users mailing list Mailman-Users@python.org http://mail.python.org/mailman/listinfo/mailman-users Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/ Unsubscribe: http://mail.python.org/mailman/options/mailman-users/rick.cogley%40esolia.co .jp Security Policy: http://www.python.org/cgi-bin/faqw-mm.py?req=showamp;file=faq01.027.htp -- Mailman-Users mailing list Mailman-Users@python.org http://mail.python.org/mailman/listinfo/mailman-users Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/ Unsubscribe: http://mail.python.org/mailman/options/mailman-users/archive%40jab.org Security Policy: http://www.python.org/cgi-bin/faqw-mm.py?req=showamp;file=faq01.027.htp
Re: [Mailman-Users] Mailman 2.1.5 - FQDN Question
Hope this formats ok this time. The relevant bit of the config file should look like: ... # NOTE: bug with quotes # add_virtualhost('DEFAULT_URL_HOST', 'DEFAULT_EMAIL_HOST') add_virtualhost('www.domainofmine.net', 'domainofmine.net') ... 8= This is what is working for me. Best Regards, Rick -- Rick Cogley (mailto:[EMAIL PROTECTED]) Tel: 03-5940-6880 || Fax: 03-5940-6881 || Cell: 090-4423-5475 (Outside Japan, remove leading zero -- +81-3-5940-6880) English: http://www.esolia.com || Japanese: http://www.esolia.co.jp Bilingual IT solutions and management firm -- eSolia. -- -Original Message- From: Cogley, Rick Sent: Thursday, July 21, 2005 12:55 PM To: 'mailman-users@python.org' Cc: Cogley, Rick Subject: Mailman 2.1.5 - FQDN Question Hello, and Greetings from Japan - I'm new to the list and to Mailman, but I hope someone more experienced will be able to give me some pointers since I have not been able to get specific info from google or the manual on this problem. Please allow me to explain a little: After installing 2.1.5 from RPM on Fedora Core 4, I tried to set up mm_cfg.py with FQDN values, but was only able to get Mailman to start (service mailman start) if I only enter the virtual host section, like so, with all my other failed attempts remmed out with a #: =8= ... # DEFAULT_URL_HOST = fqdn # DEFAULT_EMAIL_HOST = fqdn # DEFAULT_URL_HOST = www.domainofmine.net # DEFAULT_EMAIL_HOST = domainofmine.net # DEFAULT_URL_HOST = rcogley.user.myisp.com # DEFAULT_EMAIL_HOST = rcogley.user.myisp.com # Because we've overriden the virtual hosts above add_virtualhost # MUST be called after they have been defined. # NOTE: bug with quotes # add_virtualhost('DEFAULT_URL_HOST', 'DEFAULT_EMAIL_HOST') add_virtualhost('www.domainofmine.net', 'domainofmine.net') ... 8= I was not able to get Mailman to start if I set DEFAULT_URL_HOST in the lines above the add_virtualhost line. It complains about not being able to find the hostname www. (I do have www defined in the DNS zone for domainofmine.net). Anyway, even with just the add_virtualhost line only, I am able to add lists from the web interface without trouble, and the lists that get created work correctly. It is when I try adding and configuring lists from the command line that I run into trouble. Here's the essence of the shell script I cobbled together from a couple of sources including the archives of this list. It's not sophisticated with for/do loops or anything but it seems to get the job done. I am using it to quickly create a few lists for a single company, and hope to increase efficiency in doing so. If we have the customer Acme, then this asks for the short name for the company at the prompt, and then proceeds to make 4 lists - acme-support@, acme-911@, acme-memo@, [EMAIL PROTECTED] 8 #!/bin/sh # -- # mm-multi.sh - a script for creating Mailman lists. ... echo mm-multi.sh - \$Revision: 0.1 $ # set global variables ... MMLISTLANG=en [EMAIL PROTECTED] ... echo echo Creating lists based on a structure... while [ $x != y ]; do echo echo Enter a short name for the client, no spaces, lowercase: read CSHORTNAME echo echo == SCRIPT PRESETS == echo Location of Mailman scripts: $MMBIN echo Location of Mailman aliases: $MMALIASES echo List language: $MMLISTLANG echo List Owner Email: $MMOWNEREMAIL echo List Admin Password: $MMADMINPASS echo echo == USER == echo Client Short Name: $CSHORTNAME echo echo Is this correct? (y/n) read x done ... /path/to/newlist -l en -q $CSHORTNAME-sales [EMAIL PROTECTED] s0m3pass /path/to/genaliases /path/to/add_members -r memberlistfile -w n -a y $CSHORTNAME-sales echo description = '$CSHORTNAME-sales' /tmp/mm-multi-$CSHORTNAME-sales-tmp echo available_languages = ['en', 'ja'] /tmp/mm-multi-$CSHORTNAME-sales-tmp echo accept_these_nonmembers = ['[EMAIL PROTECTED]@(.+\\\.|)domainofmine\\\.co\\\.jp$', '[EMAIL PROTECTED]@(.+\\\.|)domainofmine\\\.net$', '[EMAIL PROTECTED]@(.+\\\.|)domainofmine\\\.org$', '[EMAIL PROTECTED]@(.+\\\.|)domainofmine\\\.com$', '[EMAIL PROTECTED]@(.+\\\.|)gmail\\\.com$'] /tmp/mm-multi-$CSHORTNAME-sales-tmp /path/to/config_list -i /tmp/mm-multi-$CSHORTNAME-sales-tmp $CSHORTNAME-sales [[repeat newlist through config_list for three more default list names...]] echo Lists Just Created: echo /path/to/list_lists |grep $CSHORTNAME # cleanup rm -f /tmp/mm-multi* exit 0 ==8 A couple of observations: * After I used this script to create a set of test lists, it sent mail to the owner (my account) FROM: [EMAIL PROTECTED] That indicates to me something is wrong with a config file somewhere. The web interface-created lists do NOT have this problem. They come in FROM: [EMAIL PROTECTED] * Although Advertise this list when people ask what lists are on this machine? is set to
Re: [Mailman-Users] Mailman 2.1.5 - FQDN Question
Apologies - it formatted wrong again, stringing the most relevant line together making it looked remarked out. Once more, it is probably obvious to you, this is the relevant line in the config: add_virtualhost('www.domainofmine.net', 'domainofmine.net') This is what works, as opposed to using the DEFAULT_URL_HOST etc above it. Thanks Rick -Original Message- From: Cogley, Rick Sent: Thursday, July 21, 2005 12:55 PM To: 'mailman-users@python.org' Cc: Cogley, Rick Subject: Mailman 2.1.5 - FQDN Question Hello, and Greetings from Japan - I'm new to the list and to Mailman, but I hope someone more experienced will be able to give me some pointers since I have not been able to get specific info from google or the manual on this problem. Please allow me to explain a little: After installing 2.1.5 from RPM on Fedora Core 4, I tried to set up mm_cfg.py with FQDN values, but was only able to get Mailman to start (service mailman start) if I only enter the virtual host section, like so, with all my other failed attempts remmed out with a #: =8= ... # DEFAULT_URL_HOST = fqdn # DEFAULT_EMAIL_HOST = fqdn # DEFAULT_URL_HOST = www.domainofmine.net # DEFAULT_EMAIL_HOST = domainofmine.net # DEFAULT_URL_HOST = rcogley.user.myisp.com # DEFAULT_EMAIL_HOST = rcogley.user.myisp.com # Because we've overriden the virtual hosts above add_virtualhost # MUST be called after they have been defined. # NOTE: bug with quotes # add_virtualhost('DEFAULT_URL_HOST', 'DEFAULT_EMAIL_HOST') add_virtualhost('www.domainofmine.net', 'domainofmine.net') ... 8= I was not able to get Mailman to start if I set DEFAULT_URL_HOST in the lines above the add_virtualhost line. It complains about not being able to find the hostname www. (I do have www defined in the DNS zone for domainofmine.net). Anyway, even with just the add_virtualhost line only, I am able to add lists from the web interface without trouble, and the lists that get created work correctly. It is when I try adding and configuring lists from the command line that I run into trouble. Here's the essence of the shell script I cobbled together from a couple of sources including the archives of this list. It's not sophisticated with for/do loops or anything but it seems to get the job done. I am using it to quickly create a few lists for a single company, and hope to increase efficiency in doing so. If we have the customer Acme, then this asks for the short name for the company at the prompt, and then proceeds to make 4 lists - acme-support@, acme-911@, acme-memo@, [EMAIL PROTECTED] 8 #!/bin/sh # -- # mm-multi.sh - a script for creating Mailman lists. ... echo mm-multi.sh - \$Revision: 0.1 $ # set global variables ... MMLISTLANG=en [EMAIL PROTECTED] ... echo echo Creating lists based on a structure... while [ $x != y ]; do echo echo Enter a short name for the client, no spaces, lowercase: read CSHORTNAME echo echo == SCRIPT PRESETS == echo Location of Mailman scripts: $MMBIN echo Location of Mailman aliases: $MMALIASES echo List language: $MMLISTLANG echo List Owner Email: $MMOWNEREMAIL echo List Admin Password: $MMADMINPASS echo echo == USER == echo Client Short Name: $CSHORTNAME echo echo Is this correct? (y/n) read x done ... /path/to/newlist -l en -q $CSHORTNAME-sales [EMAIL PROTECTED] s0m3pass /path/to/genaliases /path/to/add_members -r memberlistfile -w n -a y $CSHORTNAME-sales echo description = '$CSHORTNAME-sales' /tmp/mm-multi-$CSHORTNAME-sales-tmp echo available_languages = ['en', 'ja'] /tmp/mm-multi-$CSHORTNAME-sales-tmp echo accept_these_nonmembers = ['[EMAIL PROTECTED]@(.+\\\.|)domainofmine\\\.co\\\.jp$', '[EMAIL PROTECTED]@(.+\\\.|)domainofmine\\\.net$', '[EMAIL PROTECTED]@(.+\\\.|)domainofmine\\\.org$', '[EMAIL PROTECTED]@(.+\\\.|)domainofmine\\\.com$', '[EMAIL PROTECTED]@(.+\\\.|)gmail\\\.com$'] /tmp/mm-multi-$CSHORTNAME-sales-tmp /path/to/config_list -i /tmp/mm-multi-$CSHORTNAME-sales-tmp $CSHORTNAME-sales [[repeat newlist through config_list for three more default list names...]] echo Lists Just Created: echo /path/to/list_lists |grep $CSHORTNAME # cleanup rm -f /tmp/mm-multi* exit 0 ==8 A couple of observations: * After I used this script to create a set of test lists, it sent mail to the owner (my account) FROM: [EMAIL PROTECTED] That indicates to me something is wrong with a config file somewhere. The web interface-created lists do NOT have this problem. They come in FROM: [EMAIL PROTECTED] * Although Advertise this list when people ask what lists are on this machine? is set to YES for these lists, all four that were autocreated by the script are all not visible in the web list at http://www.domainofmine.net/mailman/listinfo/. I can access them by typing in the expected URL in the browser address bar: http://www.domainofmine.net/mailman/admin/xyz-support/ * Even though I can bring up the admin area