[Mailman-Users] Error: Mach task special port 9

2009-07-16 Thread Bryan Harrison

Since implementing Mailman under OS X Server 10.5.7, I've been seeing…

Jul 16 11:00:00 server-name com.apple.launchd[1]  
(0x1029d0.cron[1618]): Could not setup Mach task special port 9: (os/ 
kern) no access


in the syslog, every 5 minutes, forever.

I've traced it down to Mailman's gate_news chron job.  I gather this  
relates to polling news servers (which I'm not doing), but beyond that  
I'm at sea.


Anybody?

Thanks,
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] Error: Mach task special port 9

2009-07-16 Thread Bryan Harrison

Steve,

I was hoping to be polite and avoid the why is Mailman inflicting  
this antiquated utility on me? implication.  ;)


You have explained why I've no other such errors - there are no other  
crons on any of my servers.  All my customizations are done via launchd.


I'd be very grateful if you'd like to share your launchd.plist  
efforts.  Replacing Mailman's crons went on my list as soon as I  
understood what was happening.  It'd be a pleasure to eliminate the  
crons, since they strike me as inelegant by comparison.


Thanks,
Bryan



To which I reply:

This is because Apple has deprecated cron, and really wants you to  
use launchd instead.  You'll see one of those messages for  
*everything* that cron runs -- you're just seeing the common ones  
because they run so often.


I've written a bunch of launchd.plist files for all the various  
Mailman cron jobs; if you want them, let me know.


--
Steve Burling 
mailto:s...@umich.edu
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://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] Error: Mach task special port 9

2009-07-16 Thread Bryan Harrison

Steve,

Careful...  You're going to end up with a fan club.  At first glance,  
it looks like you've done a great job.


Thanks much,
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


[Mailman-Users] Mailman vs OSX vs launchd

2009-06-18 Thread Bryan Harrison
I've built and installed Mailman 2.12 from current source code and  
have it running just fine under OS X Server 10.5.7, with on exception,  
which is not properly speaking a Mailman problem at all.


If I start Mailman from the CLI, using /usr/share/mailman/bin/ 
mailmanctl -s start, all is well.


If I allow launchd to start it using the following Launch Daemon…

?xml version=1.0 encoding=UTF-8?
!DOCTYPE plist PUBLIC -//Apple//DTD PLIST 1.0//EN http://www.apple.com/DTDs/PropertyList-1.0.dtd 


plist version=1.0
dict
keyLabel/key
stringorg.list.mailmanctl/string
keyOnDemand/key
false/
keyProgram/key
string/usr/share/mailman/bin/mailmanctl/string
keyProgramArguments/key
array
stringmailmanctl/string
string-s/string
stringstart/string
/array
keyServiceIPC/key
false/
/dict
/plist

…I get an endless succession of…

Jun 18 16:50:26 org.list.mailmanctl[1697]: Starting Mailman's master  
qrunner.
Jun 18 16:50:26 com.apple.launchd[1] (org.list.mailmanctl[1697]):  
Stray process with PGID equal to this dead job: PID 1698 PPID 1 Python
Jun 18 16:50:26 com.apple.launchd[1] (org.list.mailmanctl): Throttling  
respawn: Will start in 9 seconds


…complete with dawn-of-the-dead respawning processes.

I configured Mailman to replicate OSXS's default locations, and it  
runs fine.  It doesn't even break Server Admin, aside from my use of  
virtual domains which ServerAdmin can't handle.


The only difference between my org.list.mailmanctl.plist and Apple's  
is my verb *start*, as opposed to Apple's *startf*.  I'm baffled by  
*startf*, which is not supported by mailman and does nothing, either  
in the CLI or in org.list.mailmanctl.plist.


Obviously this isn't fatal and there are even other ways to insure an  
automatic startup, but I use launchd for such things, Apple more or  
less deprecates other approaches, and it drives me nuts not to  
understand what's going on.


Speak, oh voices of wisdom!

-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-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