Re: [Mailman-Users] Installation/Config Problems

2005-05-23 Thread Mark Sapiro
Pelkey, Jeff wrote:
>
>Thanks.  I already had all of that in mm_cfg.py prior to creating the list.  
>The fix_url used in the withlist script fixed the problem with the initial 
>mailing list "mailman", but the /mailman/create page still shows the form 
>posting to the 8000 port.
>
>Any ideas about how to resolve this issue?

If VIRTUAL_HOST_OVERVIEW = On (default), the "hostname" in the post url
of the form and also in the "Create a hostname Mailing List" line at
the top of the page comes from the environment (if found). Normally,
it will be the value of HTTP_HOST or (SERVER_NAME if no HTTP_HOST)
also an attempt is made to strip SERVER_PORT from the end. Here is the
full code in case it makes sense to you.

def get_domain():
host = os.environ.get('HTTP_HOST', os.environ.get('SERVER_NAME'))
port = os.environ.get('SERVER_PORT')
# Strip off the port if there is one
if port and host.endswith(':' + port):
host = host[:-len(port)-1]
if mm_cfg.VIRTUAL_HOST_OVERVIEW and host:
return host.lower()
else:
# See the note in Defaults.py concerning DEFAULT_HOST_NAME
# vs. DEFAULT_EMAIL_HOST.
hostname = mm_cfg.DEFAULT_HOST_NAME or mm_cfg.DEFAULT_EMAIL_HOST
return hostname.lower()

If you are not using virtual hosting, you can set VIRTUAL_HOST_OVERVIEW
= Off in mm_cfg.py and DEFAULT_EMAIL_HOST will be used instead.

I think the real solution is just to insure that the URL used to access
the create page doesn't have the port. Note that the link to the
create page from the admin overview page is built in the same way.

--
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=show&file=faq01.027.htp


Re: [Mailman-Users] Installation/Config Problems

2005-05-23 Thread Pelkey, Jeff
Mark,

Thanks.  I already had all of that in mm_cfg.py prior to creating the list.  
The fix_url used in the withlist script fixed the problem with the initial 
mailing list "mailman", but the /mailman/create page still shows the form 
posting to the 8000 port.

Any ideas about how to resolve this issue?
Thanx, Jeff.

-Original Message-
From: Mark Sapiro [mailto:[EMAIL PROTECTED]
Sent: Monday, May 23, 2005 3:19 PM
To: Pelkey, Jeff; mailman-users@python.org
Subject: Re: [Mailman-Users] Installation/Config Problems


Pelkey, Jeff wrote:
> 
>With the squid problem, I have tried a couple of different options with little 
>success to point to the correct DEFAULT_URL_PATTERN and when I use the '%s' 
>param it appends port 8000 and everything is pointed to port 8000 which is 
>squid's httpd_accel_port.  When I try to put in the FQDN 
>'http://myserver.domain.com/mailman' in mm_cfg.py, I get an error message on 
>the webpage.  Who do I send the bug information too?

You should not be changing DEFAULT_URL_PATTERN unless you want things
like a port or https instead of http. You need to make sure you have
the right values for DEFAULT_URL_HOST (probably 'myserver.domain.com')
and DEFAULT_EMAIL_HOST, and if they aren't correct in Defaults.py, you
need to redefine them in mm_cfg.py and then add

VIRTUAL_HOSTS.clear()
add_virtualhost(DEFAULT_URL_HOST, DEFAULT_EMAIL_HOST)

following the definitions for DEFAULT_URL_HOST and DEFAULT_EMAIL_HOST.

DEFAULT_HOST_NAME and DEFAULT_URL are deprecated and should not be
changed from their default assignments of None.

If all this is correct and you still have problems, you may need to run
fix_url.py against the existing lists.

See http://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq04.029.htp

--
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=show&file=faq01.027.htp


Re: [Mailman-Users] Installation/Config Problems

2005-05-23 Thread Mark Sapiro
Pelkey, Jeff wrote:
> 
>With the squid problem, I have tried a couple of different options with little 
>success to point to the correct DEFAULT_URL_PATTERN and when I use the '%s' 
>param it appends port 8000 and everything is pointed to port 8000 which is 
>squid's httpd_accel_port.  When I try to put in the FQDN 
>'http://myserver.domain.com/mailman' in mm_cfg.py, I get an error message on 
>the webpage.  Who do I send the bug information too?

You should not be changing DEFAULT_URL_PATTERN unless you want things
like a port or https instead of http. You need to make sure you have
the right values for DEFAULT_URL_HOST (probably 'myserver.domain.com')
and DEFAULT_EMAIL_HOST, and if they aren't correct in Defaults.py, you
need to redefine them in mm_cfg.py and then add

VIRTUAL_HOSTS.clear()
add_virtualhost(DEFAULT_URL_HOST, DEFAULT_EMAIL_HOST)

following the definitions for DEFAULT_URL_HOST and DEFAULT_EMAIL_HOST.

DEFAULT_HOST_NAME and DEFAULT_URL are deprecated and should not be
changed from their default assignments of None.

If all this is correct and you still have problems, you may need to run
fix_url.py against the existing lists.

See http://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq04.029.htp

--
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=show&file=faq01.027.htp


Re: [Mailman-Users] Installation/Config Problems

2005-05-23 Thread Ralf Hildebrandt
* Pelkey, Jeff <[EMAIL PROTECTED]>:
> Dennis,
> 
> Thanks for the info!  Here's the returned output:
> 
> [EMAIL PROTECTED] >> postconf -m
> static
> cidr
> nis
> dbm
> regexp
> environ
> proxy
> unix

Solaris, isn't it?

> Whixh one would replace hash?

dbm

-- 
Ralf Hildebrandt (i.A. des IT-Zentrums) [EMAIL PROTECTED]
Charite - Universitätsmedizin BerlinTel.  +49 (0)30-450 570-155
Gemeinsame Einrichtung von FU- und HU-BerlinFax.  +49 (0)30-450 570-962
IT-Zentrum Standort CBF send no mail to [EMAIL PROTECTED]
--
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=show&file=faq01.027.htp


Re: [Mailman-Users] Installation/Config Problems

2005-05-23 Thread Pelkey, Jeff
Dennis,

Thanks for the info!  Here's the returned output:

[EMAIL PROTECTED] >> postconf -m
static
cidr
nis
dbm
regexp
environ
proxy
unix

Whixh one would replace hash?

Much Thanx!  -- Jeff.

-Original Message-
From: John Dennis [mailto:[EMAIL PROTECTED]
Sent: Monday, May 23, 2005 2:48 PM
To: Pelkey, Jeff
Cc: mailman-users@python.org
Subject: Re: [Mailman-Users] Installation/Config Problems


On Mon, 2005-05-23 at 14:38 -0400, Pelkey, Jeff wrote:
> Greetings,
>  
>  I will start by saying that I both a newbie to both Mailman and Python, 
> although I have worked with Perl for years.  I have installed Mailman 2.1.5 
> and integrated with Postfix v2.1.5.  I have search the FAQ's with little 
> success.
>  
> The Mailman issue is that when I try to add the Mailman alias db using the 
> following line in main.cf:
> alias_maps = 
> hash:/etc/aliases,hash:/etc/postfix/aliases,hash:/usr/local/mailman/data/aliases
>  
> I get the following error messages:
> May 23 11:53:27 dev postfix/smtpd[19360]: [ID 947731 mail.crit] fatal: 
> unsupported dictionary type: hash

The following command will print out a list of supported map types:

% postconf -m

Is hash one of them? It would be surprising if it weren't, but this is
the first place to start looking. 
-- 
John Dennis <[EMAIL PROTECTED]>
--
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=show&file=faq01.027.htp


Re: [Mailman-Users] Installation/Config Problems

2005-05-23 Thread John Dennis
On Mon, 2005-05-23 at 14:38 -0400, Pelkey, Jeff wrote:
> Greetings,
>  
>  I will start by saying that I both a newbie to both Mailman and Python, 
> although I have worked with Perl for years.  I have installed Mailman 2.1.5 
> and integrated with Postfix v2.1.5.  I have search the FAQ's with little 
> success.
>  
> The Mailman issue is that when I try to add the Mailman alias db using the 
> following line in main.cf:
> alias_maps = 
> hash:/etc/aliases,hash:/etc/postfix/aliases,hash:/usr/local/mailman/data/aliases
>  
> I get the following error messages:
> May 23 11:53:27 dev postfix/smtpd[19360]: [ID 947731 mail.crit] fatal: 
> unsupported dictionary type: hash

The following command will print out a list of supported map types:

% postconf -m

Is hash one of them? It would be surprising if it weren't, but this is
the first place to start looking. 
-- 
John Dennis <[EMAIL PROTECTED]>

--
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=show&file=faq01.027.htp