Re: [Mailman-Users] Virtual Domains for Mailing Lists in MailMan

2009-06-18 Thread Mark Sapiro
Bryan Harrison wrote:

I've found the resources you recommended helpful, but am stymied  
nonetheless.  I'm bright but not expert with Postfix or Mailman, and  
have been butting my head against this for days.

As a test, I'm trying to install mailman on the server gilded- 
bat.laughingboot.net, and create functioning lists mail...@laughingboot.net 
  and gal...@gurgitate.org.  Virtual domains are humming along nicely  
in both Apache and Postfix.

Mailman's processes run and I can browse the interface site, but all  
my tests now bounce with:

|/usr/share/mailman/mail/mailman post galaxy@gilded- 
bat.laughingboot.net:
data format error. Command output: |/usr/share/mailman/mail/ 
mailman post
galaxy: Bad protocol


See below


If you're feeling particularly saintly, I've P.S.'d install_mailman.sh  
below –  the very rough script I'm using to install and configure  
mailman.

Relevant lines from main.cf are

virtual_alias_maps = hash:/etc/postfix/virtual,hash:/var/mailman/data/ 
aliases,hash:/var/mailman/data/virtual-mailman


The entry hash:/var/mailman/data/aliases should be in alias_maps, not
virtual_alias_maps.


virtual_mailbox_domains = hash:/etc/postfix/virtual_domains


Your Mailman domains should be virtual_alias_domains.
virtual_mailbox_domains can't deliver properly to Mailman aliases.


mm_cfg.pys looks like this:

# Include Defaults:

from Defaults import *

# Site-specific overrides:

MTA = 'Postfix'
DEFAULT_EMAIL_HOST = 'laughingboot.net'
DEFAULT_URL_HOST = 'gilded-bat.laughingboot.net'


Probably not absolutely necessary, but put

VIRTUAL_HOSTS.clear()

here to remove the add_virtualhosts entry from Defaults.py.


add_virtualhost(DEFAULT_URL_HOST, DEFAULT_EMAIL_HOST)
add_virtualhost('gurgitate.org', 'gurgitate.org')
POSTFIX_STYLE_VIRTUAL_DOMAINS = 'gurgitate.org'
DEFAULT_MAX_MESSAGE_SIZE = 1   # KB

I'm running OS X Server 10.5.7.

I'll burn an SUV to the Gods on your behalf if you care to help me out.

Best regards,
Bryan


# !/bin/tcsh
# INSTALL MAILMAN TEST
# Last Updated:  2009-06-15
# Assumes prior installation of Xcode.

serveradmin stop mail
/usr/share/mailman/bin/mailmanctl stop

rm -Rf /var/mailman/*
rm -Rf /usr/share/mailman/*
mkdir -p -m ug=rwx,o=rx /var/mailman
mkdir -p -m a+rx,g+ws /usr/share/mailman
chown _mailman:_mailman /var/mailman
chown _mailman:_mailman /usr/share/mailman
chmod -R 2777 /var/mailman
chmod -R 2777 /usr/share/mailman


These are a bit permissive - should be 2775.



mkdir -p /Library/TemporaryItems
cd /Library/TemporaryItems

curl -O 
http://superb-west.dl.sourceforge.net/sourceforge/mailman/mailman-2.1.12.tgz
tar -xzf mailman-2.1.12.tgz
cd mailman-2.1.12

# Pick One, anyone, none of them work:

# ./configure --prefix=/usr/share/mailman --with-var-prefix=/var/ 
mailman --with-username=_mailman --with-groupname=_mailman --with-cgi- 
gid=_www
# ./configure --prefix=/usr/share/mailman --with-var-prefix=/var/ 
mailman --with-username=_mailman --with-groupname=_mailman --with-mail- 
gid=_mailman --with-cgi-gid=_www --without-permcheck


The one above should be correct. With Postfix integration, the
mail-gid is the primary group of the owner of
/var/mailman/data/aliases.db which should be _mailman. It shouldn't
need --without-permcheck


./configure --prefix=/usr/share/mailman --with-var-prefix=/var/mailman  
--with-username=_mailman --with-groupname=_mailman --with-mail- 
gid=_postfix --with-cgi-gid=_www --without-permcheck

make
make install

chown _www:_mailman /var/mailman/archives/private
chmod o-r-x /var/mailman/archives/private
touch /var/mailman/data/aliases
touch /var/mailman/data/virtual-mailman


The above two touch shouldn't be needed.



scp #copy mm_cfg.py from where I'm working on it to its proper home.

/usr/share/mailman/bin/newlist -q mailman br...@laughingboot.net  
mypassword
/usr/share/mailman/bin/config_list -i /var/mailman/data/sitelist.cfg  
mailman

/usr/share/mailman/bin/newlist -q galaxy br...@gurgitate.org mypassword
/usr/share/mailman/bin/config_list -i /var/mailman/data/sitelist.cfg  
galaxy


/var/mailman/data/sitelist.cfg is only intended for the site list named
'mailman' (unless you set something different for MAILMAN_SITE_LISTin
mm_cfg.py). You need something like

/usr/share/mailman/bin/newlist -q mailman br...@gurgitate.org mypassword
/usr/share/mailman/bin/config_list -i /var/mailman/data/sitelist.cfg
mailman 

Yo don't want the config_list for other lists.


/usr/share/mailman/bin/withlist -l -r fix_url galaxy -- 
urlhost=gurgitate.org


Instead of the above, just create it with

/usr/share/mailman/bin/newlist -q -u gurgitate.org  galaxy
br...@gurgitate.org mypassword



cd /usr/share/mailman/bin
./genaliases


If you create the lists in the proper domain with newlist, you don't
need genaliases at this point.


serveradmin start mail
./mailmanctl -s start
./check_perms -f


Do the check_perms before the mailmanctl start


rm -R /Library/TemporaryItems/


-- 
Mark Sapiro m...@msapiro.netThe highway 

Re: [Mailman-Users] Virtual Domains for Mailing Lists in MailMan

2009-06-18 Thread Mark Sapiro
Bryan Harrison 

A minor puzzle, just in case you're interested:

You'll be unsurprised that I found virtual_mailbox_domains and  
virtual_alias_domains will fight over any domain common to both.   
Since OS X Server is dependent on virtual_mailbox_domains , I did my  
usual blind monkey try-this-and-that and discovered it works fine  
without virtual_alias_domains.  I won't pretend to understand, but am  
wondering if I've created something that will be less than robust.


I'm far from a Postfix expert, and I'm not sure what's going on in your
case. My understanding is that with virtual_mailbox_domains, mail to
such a domain is always delivered to a mailbox or mail directory, and
aliases such as those which pipe the mail to a mailman wrapper do not
apply. So, I'm not sure what you have that enables this mail to be
delivered to Mailman.


And one more question, if you don't mind:

In addition to hosting lists for virtual domains, I need to host  
listname at the address listn...@laughingboot.net on the server gilded- 
bat.laughingboot.net.  Is this sufficient?

# mm_dfg.py
# 2009-06-16

# Include Defaults:

from Defaults import *

# Site-specific overrides:

MTA = 'Postfix'
DEFAULT_EMAIL_HOST = 'laughingboot.net'
DEFAULT_URL_HOST = 'gilded-bat.laughingboot.net'
VIRTUAL_HOSTS.clear()
add_virtualhost(DEFAULT_URL_HOST, DEFAULT_EMAIL_HOST)
add_virtualhost('gurgitate.org', 'gurgitate.org')
POSTFIX_STYLE_VIRTUAL_DOMAINS = 'gurgitate.org'


The above is sufficient and (almost) correct if laughingboot.net is a
local (non-virtual) domain as far as Postfix is concerned. Yhe last
line should be

POSTFIX_STYLE_VIRTUAL_DOMAINS = ['gurgitate.org']

POSTFIX_STYLE_VIRTUAL_DOMAINS is a list even if it has only one entry.


DEFAULT_MAX_MESSAGE_SIZE = 1   # KB

I've read that I need to do this as well...

# /etc/postfix/virtual
# 2009-06-09

laughingboot.net   IGNORE
@laughingboot.net  @mail.laughingboot.net

...but feel like a cargo cult member worshipping a ball point pen when I  
look at it.  Of course gilded-bat.laughingboot.net needs to continue  
to handle non-mailing list mail for laughingboot.net as well.


If /etc/postfix/virtual is a virtual_alias_maps file, the first line
above says laughingboot.net is a virtual_alias_domain and is not
required if laughingboot.net is listed explicitly in
virtual_alias_domains in main.cf. The second line says all mail to the
domain laughingboot.net should be routed to mail.laughingboot.net.

If it is a virtual_mailbox_maps file, The first line may work
analogously, but I'm not sure and the second line specifies a mailbox
name to which to deliver laughingboot.net mail.

-- 
Mark Sapiro m...@msapiro.netThe 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://wiki.list.org/x/AgA3
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://wiki.list.org/x/QIA9


Re: [Mailman-Users] Virtual Domains for Mailing Lists in MailMan

2009-06-17 Thread Bryan Harrison

P.S.  error is empty, and qrunner says

Jun 15 16:01:12 2009 (7287) BounceRunner qrunner started.
Jun 15 16:01:13 2009 (7293) RetryRunner qrunner started.
Jun 15 16:01:13 2009 (7288) CommandRunner qrunner started.
Jun 15 16:01:13 2009 (7292) VirginRunner qrunner started.
Jun 15 16:01:13 2009 (7286) ArchRunner qrunner started.
Jun 15 16:01:13 2009 (7290) NewsRunner qrunner started.
Jun 15 16:01:13 2009 (7289) IncomingRunner qrunner started.
Jun 15 16:01:13 2009 (7291) OutgoingRunner qrunner started.

--
Mailman-Users mailing list
Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
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://wiki.list.org/x/QIA9


Re: [Mailman-Users] Virtual Domains for Mailing Lists in MailMan

2009-06-17 Thread Bryan Harrison

Mark,

Thank you.

I've found the resources you recommended helpful, but am stymied  
nonetheless.  I'm bright but not expert with Postfix or Mailman, and  
have been butting my head against this for days.


As a test, I'm trying to install mailman on the server gilded- 
bat.laughingboot.net, and create functioning lists mail...@laughingboot.net 
 and gal...@gurgitate.org.  Virtual domains are humming along nicely  
in both Apache and Postfix.


Mailman's processes run and I can browse the interface site, but all  
my tests now bounce with:


|/usr/share/mailman/mail/mailman post galaxy@gilded- 
bat.laughingboot.net:
   data format error. Command output: |/usr/share/mailman/mail/ 
mailman post

   galaxy: Bad protocol

If you're feeling particularly saintly, I've P.S.'d install_mailman.sh  
below –  the very rough script I'm using to install and configure  
mailman.


Relevant lines from main.cf are

virtual_alias_maps = hash:/etc/postfix/virtual,hash:/var/mailman/data/ 
aliases,hash:/var/mailman/data/virtual-mailman

virtual_mailbox_domains = hash:/etc/postfix/virtual_domains

mm_cfg.pys looks like this:

# Include Defaults:

from Defaults import *

# Site-specific overrides:

MTA = 'Postfix'
DEFAULT_EMAIL_HOST = 'laughingboot.net'
DEFAULT_URL_HOST = 'gilded-bat.laughingboot.net'
add_virtualhost(DEFAULT_URL_HOST, DEFAULT_EMAIL_HOST)
add_virtualhost('gurgitate.org', 'gurgitate.org')
POSTFIX_STYLE_VIRTUAL_DOMAINS = 'gurgitate.org'
DEFAULT_MAX_MESSAGE_SIZE = 1   # KB

I'm running OS X Server 10.5.7.

I'll burn an SUV to the Gods on your behalf if you care to help me out.

Best regards,
Bryan


# !/bin/tcsh
# INSTALL MAILMAN TEST
# Last Updated:  2009-06-15
# Assumes prior installation of Xcode.

serveradmin stop mail
/usr/share/mailman/bin/mailmanctl stop

rm -Rf /var/mailman/*
rm -Rf /usr/share/mailman/*
mkdir -p -m ug=rwx,o=rx /var/mailman
mkdir -p -m a+rx,g+ws /usr/share/mailman
chown _mailman:_mailman /var/mailman
chown _mailman:_mailman /usr/share/mailman
chmod -R 2777 /var/mailman
chmod -R 2777 /usr/share/mailman

mkdir -p /Library/TemporaryItems
cd /Library/TemporaryItems

curl -O 
http://superb-west.dl.sourceforge.net/sourceforge/mailman/mailman-2.1.12.tgz
tar -xzf mailman-2.1.12.tgz
cd mailman-2.1.12

# Pick One, anyone, none of them work:

# ./configure --prefix=/usr/share/mailman --with-var-prefix=/var/ 
mailman --with-username=_mailman --with-groupname=_mailman --with-cgi- 
gid=_www
# ./configure --prefix=/usr/share/mailman --with-var-prefix=/var/ 
mailman --with-username=_mailman --with-groupname=_mailman --with-mail- 
gid=_mailman --with-cgi-gid=_www --without-permcheck
./configure --prefix=/usr/share/mailman --with-var-prefix=/var/mailman  
--with-username=_mailman --with-groupname=_mailman --with-mail- 
gid=_postfix --with-cgi-gid=_www --without-permcheck


make
make install

chown _www:_mailman /var/mailman/archives/private
chmod o-r-x /var/mailman/archives/private
touch /var/mailman/data/aliases
touch /var/mailman/data/virtual-mailman
scp #copy mm_cfg.py from where I'm working on it to its proper home.

/usr/share/mailman/bin/newlist -q mailman br...@laughingboot.net  
mypassword
/usr/share/mailman/bin/config_list -i /var/mailman/data/sitelist.cfg  
mailman


/usr/share/mailman/bin/newlist -q galaxy br...@gurgitate.org mypassword
/usr/share/mailman/bin/config_list -i /var/mailman/data/sitelist.cfg  
galaxy
/usr/share/mailman/bin/withlist -l -r fix_url galaxy -- 
urlhost=gurgitate.org


cd /usr/share/mailman/bin
./genaliases
serveradmin start mail
./mailmanctl -s start
./check_perms -f

rm -R /Library/TemporaryItems/

--
Mailman-Users mailing list
Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
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://wiki.list.org/x/QIA9


Re: [Mailman-Users] Virtual Domains for Mailing Lists in MailMan

2009-06-17 Thread Bryan Harrison

Mark,

Oooh!  Aaah!  Happy dance!

It works.

Thanks for being so generous with your expertise.  Cleaning up my  
fuzzy ideas has been a pleasure.


A minor puzzle, just in case you're interested:

You'll be unsurprised that I found virtual_mailbox_domains and  
virtual_alias_domains will fight over any domain common to both.   
Since OS X Server is dependent on virtual_mailbox_domains , I did my  
usual blind monkey try-this-and-that and discovered it works fine  
without virtual_alias_domains.  I won't pretend to understand, but am  
wondering if I've created something that will be less than robust.


And one more question, if you don't mind:

In addition to hosting lists for virtual domains, I need to host  
listname at the address listn...@laughingboot.net on the server gilded- 
bat.laughingboot.net.  Is this sufficient?


# mm_dfg.py
# 2009-06-16

# Include Defaults:

from Defaults import *

# Site-specific overrides:

MTA = 'Postfix'
DEFAULT_EMAIL_HOST = 'laughingboot.net'
DEFAULT_URL_HOST = 'gilded-bat.laughingboot.net'
VIRTUAL_HOSTS.clear()
add_virtualhost(DEFAULT_URL_HOST, DEFAULT_EMAIL_HOST)
add_virtualhost('gurgitate.org', 'gurgitate.org')
POSTFIX_STYLE_VIRTUAL_DOMAINS = 'gurgitate.org'
DEFAULT_MAX_MESSAGE_SIZE = 1   # KB

I've read that I need to do this as well…

# /etc/postfix/virtual
# 2009-06-09

laughingboot.netIGNORE
@laughingboot.net   @mail.laughingboot.net

…but feel like a cargo cult member worshipping a ball point pen when I  
look at it.  Of course gilded-bat.laughingboot.net needs to continue  
to handle non-mailing list mail for laughingboot.net as well.


Thanks again,
Bryan
--
Mailman-Users mailing list
Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
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://wiki.list.org/x/QIA9


Re: [Mailman-Users] Virtual Domains for Mailing Lists in MailMan

2009-06-15 Thread rbryanh

Gordon,

I happened to come across your post while trying to accomplish exactly the
same thing:  mailman virtual domains under OS X Server 10.5.7.  Fun, isn't
it?

I've taken the step of downloading and installing the standard, current
mailman distribution today, and have successfully compiled a configuration
that mimics Apple's various installation locations.  

Now let's see if I can get it to run, or accomplish anything useful.  Right
now it's startup endless respawns, with no useful error messages in any log
I can find.

But perhaps we can assist each other.  I'm expert on neither Postfix nor
Mailman, but may have to become one by the end of the week.

-Bryan

-- 
View this message in context: 
http://www.nabble.com/Virtual-Domains-for-Mailing-Lists-in-MailMan-tp23826232p24028643.html
Sent from the Mailman - Users mailing list archive at Nabble.com.

--
Mailman-Users mailing list
Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
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://wiki.list.org/x/QIA9


Re: [Mailman-Users] Virtual Domains for Mailing Lists in MailMan

2009-06-15 Thread Mark Sapiro
rbryanh wrote:

I've taken the step of downloading and installing the standard, current
mailman distribution today, and have successfully compiled a configuration
that mimics Apple's various installation locations.  


See the FAQ at http://wiki.list.org/x/O4A9 for information on
installing a standard Mailman distribution on Mac OS X.


Now let's see if I can get it to run, or accomplish anything useful.  Right
now it's startup endless respawns, with no useful error messages in any log
I can find.


Mailman's logs are in the logs/ directory in the 'var-prefix'
directory. There should be useful messages in the 'error' and
'qrunner' logs.

-- 
Mark Sapiro m...@msapiro.netThe 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://wiki.list.org/x/AgA3
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://wiki.list.org/x/QIA9


Re: [Mailman-Users] Virtual Domains for Mailing Lists in MailMan

2009-06-15 Thread Mark Sapiro
Bryan Harrison wrote:

P.S.  error is empty, and qrunner says

Jun 15 16:01:12 2009 (7287) BounceRunner qrunner started.
Jun 15 16:01:13 2009 (7293) RetryRunner qrunner started.
Jun 15 16:01:13 2009 (7288) CommandRunner qrunner started.
Jun 15 16:01:13 2009 (7292) VirginRunner qrunner started.
Jun 15 16:01:13 2009 (7286) ArchRunner qrunner started.
Jun 15 16:01:13 2009 (7290) NewsRunner qrunner started.
Jun 15 16:01:13 2009 (7289) IncomingRunner qrunner started.
Jun 15 16:01:13 2009 (7291) OutgoingRunner qrunner started.


This doesn't look like Right now it's startup endless respawns to me.
What did you mean by that?

-- 
Mark Sapiro m...@msapiro.netThe 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://wiki.list.org/x/AgA3
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://wiki.list.org/x/QIA9


Re: [Mailman-Users] Virtual Domains for Mailing Lists in MailMan

2009-06-05 Thread Mark Sapiro
Gordon Smith wrote:
 
 To explain my circumstance.  I am a visually impaired person, trying to
 get to grips with administrating a mail server under Apple Mac OS X
 10.5.7 (Leopard) server.
 
 I need to host mailing lists under virtual domains hosted on our server
 but can't see quite how this is accomplished.
 
 Is there anywhere I can obtain this information as Apple's documentation
 on this subject seems poor from what I've seen.


Gordon,

Unfortunately, our documentation of virtual hosts with Mailman is
probably no better than Apple's. Also, I'm not sure how accessible it is
to a visually impaired person. Finally, most of us know nothing about
Apple's GUI for Mailman. We are familiar only with our own web interface
and configuration methods.

That said, virtual hosting within Mailman is pretty simple. Mailman
keeps a web host and an email host for each list, so list's can have
email addresses and or web addresses in different domains. There is one
possibly major restriction. List names must be globally unique within an
installation.

Within Mailman, there is very little configuration for virtual hosts.
There is a DEFAULT_URL_HOST and a corresponding DEFAULT_EMAIL_HOST.
Beyond that, you add additional hosts with entries like

add_virtualhost('www.example.com', 'mail.example.com')

in mm_cfg.py for each host. The purpose of this is primarily so when you
go to a URL like http://www.example.com/mailman/create to create a list,
it gets created with the corresponding email host.

There is also a bit more configuration if Postfix is your MTA to make
Postfix integration work with virtual domains. This is described in
section 6.1 of the installation manual at
http://www.list.org/mailman-install/index.html.

The rest is in the MTA, and possibly the web server, although (assuming
Apache) if the Mailman specific Alias, ScriptAlias and Directory
settings are in a global section of the configuration, the web server
will probably work OK without change.

Most of the documentation we have is in the above referenced
installation manual and the FAQ at
http://www.list.org/mailman-install/index.html

Please don't hesitate to post any followup questions to
mailman-users@python.org.

-- 
Mark Sapiro m...@msapiro.netThe 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://wiki.list.org/x/AgA3
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://wiki.list.org/x/QIA9