I am new to running Mailman, though a long time user and have been admin for a list or two over the years.
The system is Fedora 12, mailman ver 2.1.12-9, with the Amahi Home Server (amahi.org) added.
So I am trying to setup mailman as a Amahi webapp. The URL mailman.foo.com right now comes up to the Apache test page, all ready for my to put my index.html into the .../mailman directory.
host mailman.foo.com
returns the IPv4 IP for my server, so looks like I am all ready to go.
I am following the recipe from:
http://www.yolinux.com/TUTORIALS/LinuxTutorialMailman.html
I run:
/usr/lib/mailman/bin/mmsitepass <newpassword>
I edit
/usr/lib/mailman/Mailman/mm_cfg.py
to setup my default URL:
DEFAULT_URL_HOST = mailman.foo.com DEFAULT_EMAIL_HOST = foo.com
I then run:
/usr/lib/mailman/bin/newlist mailman
And I get errors:
Traceback (most recent call last): File "/usr/lib/mailman/bin/newlist", line 99, in <module> from Mailman import mm_cfg File "/usr/lib/mailman/Mailman/mm_cfg.py", line 86, in <module> DEFAULT_URL_HOST = mailman.foo.com NameError: name 'mailman' is not defined
Now I have not setup the URL mailman.foo.com/mailman, is that what it is complaining about (and I think I have to edit the default.py to drop the directory from the URL?)?
Or is there suppose to be quotes around the URL (DEFAULT_URL_HOST =
'mailman.foo.com').
Or is it something else?
Thanks for any help. We have a postfix/mySQL/CourierMail/SquirelMail app just about ready for Amahi, and adding Mailman would address a number of my needs.
I am making some progress. I am still getting the error below running /usr/lib/mailman/bin/newlist mailman
But I now have mailman.conf linked into my /etc/http/conf.d right so that if I provide the URL http://mailman.foo.com/mailman, I get taken to http://mailman.foo.com/mailman/listinfo with the error:
We're sorry, we hit a bug!
On 11/25/2010 03:39 PM, Robert Moskowitz wrote:
I am new to running Mailman, though a long time user and have been admin for a list or two over the years.
The system is Fedora 12, mailman ver 2.1.12-9, with the Amahi Home Server (amahi.org) added.
So I am trying to setup mailman as a Amahi webapp. The URL mailman.foo.com right now comes up to the Apache test page, all ready for my to put my index.html into the .../mailman directory.
host mailman.foo.com
returns the IPv4 IP for my server, so looks like I am all ready to go.
I am following the recipe from:
http://www.yolinux.com/TUTORIALS/LinuxTutorialMailman.htmlI run:
/usr/lib/mailman/bin/mmsitepass <newpassword>
I edit
/usr/lib/mailman/Mailman/mm_cfg.py
to setup my default URL:
DEFAULT_URL_HOST = mailman.foo.com DEFAULT_EMAIL_HOST = foo.com
I then run:
/usr/lib/mailman/bin/newlist mailman
And I get errors:
Traceback (most recent call last): File "/usr/lib/mailman/bin/newlist", line 99, in <module> from Mailman import mm_cfg File "/usr/lib/mailman/Mailman/mm_cfg.py", line 86, in <module> DEFAULT_URL_HOST = mailman.foo.com NameError: name 'mailman' is not defined
Now I have not setup the URL mailman.foo.com/mailman, is that what it is complaining about (and I think I have to edit the default.py to drop the directory from the URL?)?
Or is there suppose to be quotes around the URL (DEFAULT_URL_HOST =
'mailman.foo.com').Or is it something else?
Thanks for any help. We have a postfix/mySQL/CourierMail/SquirelMail app just about ready for Amahi, and adding Mailman would address a number of my needs.
Robert Moskowitz wrote:
I am making some progress. I am still getting the error below running /usr/lib/mailman/bin/newlist mailman
But I now have mailman.conf linked into my /etc/http/conf.d right so that if I provide the URL http://mailman.foo.com/mailman, I get taken to http://mailman.foo.com/mailman/listinfo with the error:
We're sorry, we hit a bug!
And what is the traceback from this that you'll find in Mailman's error log?
(more below)
On 11/25/2010 03:39 PM, Robert Moskowitz wrote: [...]
I edit
/usr/lib/mailman/Mailman/mm_cfg.py
to setup my default URL:
DEFAULT_URL_HOST = mailman.foo.com DEFAULT_EMAIL_HOST = foo.com
As you note below, these need to be quoted as
DEFAULT_URL_HOST = 'mailman.foo.com' DEFAULT_EMAIL_HOST = 'foo.com'
Also, assuming they are not identical to the defaults in Defaults.py, you also need to add
add_virtualhost(DEFAULT_URL_HOST, DEFAULT_EMAIL_HOST)
following the above definitions, and while it is not required, it is good practice to remove the entry that was created by Defaults.py so the whole thing should be as the following 4 lines in mm_cfg.py
DEFAULT_URL_HOST = 'mailman.foo.com' DEFAULT_EMAIL_HOST = 'foo.com' VIRTUAL_HOSTS.clear() add_virtualhost(DEFAULT_URL_HOST, DEFAULT_EMAIL_HOST)
I then run:
/usr/lib/mailman/bin/newlist mailman
And I get errors:
Traceback (most recent call last): File "/usr/lib/mailman/bin/newlist", line 99, in <module> from Mailman import mm_cfg File "/usr/lib/mailman/Mailman/mm_cfg.py", line 86, in <module> DEFAULT_URL_HOST = mailman.foo.com NameError: name 'mailman' is not defined
Now I have not setup the URL mailman.foo.com/mailman, is that what it is complaining about (and I think I have to edit the default.py to drop the directory from the URL?)?
Or is there suppose to be quotes around the URL (DEFAULT_URL_HOST =
'mailman.foo.com').
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
THANK YOU! Mailman list is now created...
On 11/26/2010 12:19 PM, Mark Sapiro wrote:
Robert Moskowitz wrote:
I am making some progress. I am still getting the error below running /usr/lib/mailman/bin/newlist mailman
But I now have mailman.conf linked into my /etc/http/conf.d right so that if I provide the URL http://mailman.foo.com/mailman, I get taken to http://mailman.foo.com/mailman/listinfo with the error:
We're sorry, we hit a bug!
And what is the traceback from this that you'll find in Mailman's error log?
(more below)
On 11/25/2010 03:39 PM, Robert Moskowitz wrote:
[...]
I edit
/usr/lib/mailman/Mailman/mm_cfg.py
to setup my default URL:
DEFAULT_URL_HOST = mailman.foo.com DEFAULT_EMAIL_HOST = foo.com
As you note below, these need to be quoted as
DEFAULT_URL_HOST = 'mailman.foo.com' DEFAULT_EMAIL_HOST = 'foo.com'
Also, assuming they are not identical to the defaults in Defaults.py, you also need to add
add_virtualhost(DEFAULT_URL_HOST, DEFAULT_EMAIL_HOST)
following the above definitions, and while it is not required, it is good practice to remove the entry that was created by Defaults.py so the whole thing should be as the following 4 lines in mm_cfg.py
DEFAULT_URL_HOST = 'mailman.foo.com' DEFAULT_EMAIL_HOST = 'foo.com' VIRTUAL_HOSTS.clear() add_virtualhost(DEFAULT_URL_HOST, DEFAULT_EMAIL_HOST)
I added these lines and the script ran to create the mailman list. And the URL
http://mailman.foo.com/mailman works.
Now is there a REASONABLE way to just make the URL http://mailman.foo.com (leaving archives at I think it is suppose to be http://mailman.foo.com/archives)?
Robert Moskowitz wrote:
Now is there a REASONABLE way to just make the URL http://mailman.foo.com (leaving archives at I think it is suppose to be http://mailman.foo.com/archives)?
If all you want is for http://mailman.foo.com to get the listinfo overview page, this works in Apache
RedirectMatch ^[/]+$ /mailman/listinfo
I don't know how you'd translate that to Amahi Home Server.
If you wan't to drop the '/mailman' from all URLs you would need to change whatever the equivalent of
ScriptAlias /mailman/ /path/to/mailman/cgi-bin/
is to something equivalent to
ScriptAlias / /path/to/mailman/cgi-bin/
plus the equivalent of
RedirectMatch ^[/]+$ /listinfo
You would also need to add
DEFAULT_URL_PATTERN = 'http://%s/'
to mm_cfg.py and run fix_url to update the web_page_url for existing lists.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
On 11/26/2010 08:45 PM, Mark Sapiro wrote:
Robert Moskowitz wrote:
Now is there a REASONABLE way to just make the URL http://mailman.foo.com (leaving archives at I think it is suppose to be http://mailman.foo.com/archives)?
If all you want is for http://mailman.foo.com to get the listinfo overview page, this works in Apache
RedirectMatch ^[/]+$ /mailman/listinfo
I don't know how you'd translate that to Amahi Home Server.
I will work through this in a bit, but the Amahi Home Server runs on Fedora 12 uses Apache and for a webapp like mailman, it has its own .conf file in /etc/http/conf.d that is set up with a basic virtual host configuration for webapp/foo/com. It was a small matter to remove much of the original content and put in the mailman.conf specific definitions. Once I get mailman working for Amahi, I will be submitting it to the maintains so that it can be a 'standard' single click app. Or I hope I can get it working well. It will be an addon to what we have done for a postfix mail server for Amahi.
If you wan't to drop the '/mailman' from all URLs you would need to change whatever the equivalent of
ScriptAlias /mailman/ /path/to/mailman/cgi-bin/
is to something equivalent to
ScriptAlias / /path/to/mailman/cgi-bin/
plus the equivalent of
RedirectMatch ^[/]+$ /listinfo
You would also need to add
DEFAULT_URL_PATTERN = 'http://%s/'
to mm_cfg.py and run fix_url to update the web_page_url for existing lists.
participants (2)
-
Mark Sapiro
-
Robert Moskowitz