Mailman/Mailing List Virtual Domains
The goal of this exercise is to configure a mailing list Gurgles for the non-local domain gurgitate.org which will then accept postings at gurgles@gurgitate.org .
It sounds simple. Either it's not or I am.
Postfix
I've configured a test server to act as a laboratory:
gilded-bat.laughingboot.net
It's one of a series of several laughingboot.net servers. Relevant lines from its main.cf include:
+myhostname = gilded-bat.laughingboot.net+
+mydomain = laughingboot.net+
+virtual aliasmaps = hash:/etc/postfix/virtual,hash:/var/mailman/data/aliases+
+virtual mailboxdomains = hash:/etc/postfix/virtual_domains+
+owner requestspecial = no+
+recipient_delimiter = ++
I've configured a single virtual domain. virtual_domains contains:
+gurgitate.org allow+
I've used WGM to configure the address bryan@gurgitate.org, and tested it successfully.
Apache
I've created the virtual host gurgitate.org and tested it.
Mailman
In Server Admin, I've activated mailing lists and followed the prompts to create "Mailman" and an admin user. I've cobbled together the following procedure from bits and scraps and Alex's good advice. Of course it doesn't work, or I wouldn't be posting.
1. In SA, add a new list gurgles, admin user bryan@gurgitate.org.
2. Edit /usr/share/mailman/Mailman/ mm_cfg.py and add the last line below, like so:
+from Defaults import *+
+MTA = 'Postfix'+
+DEFAULT EMAILHOST = 'gilded-bat.laughingboot.net'+
+DEFAULT URLHOST = 'gilded-bat.laughingboot.net'+
+POSTFIX STYLE_VIRTUALDOMAINS = 'gurgitate.org'+
3. Browsed + http://gurgitate.org/mailman/admin/gurgles+ and verified that +host name this list prefers for email+ is set to gurgitate.org
4. Executed the following terminal commands:
+cd /var/mailman/data+
/usr/share/mailman/bin/genaliases
+chown mailman:mailman virtual-mailman* +
+chmod 02775 virtual-mailman* /usr/share/mailman/bin/check_perms -f +
/usr/share/mailman/bin/mailmanctl
+restart postfix reload+
*And the Verdict Is...*
+<gurgles@gilded-bat.laughingboot.net>: data format error. Command output:+
+gurgles: Mailbox does not exist+
+Reporting-MTA: dns; gilded-bat.laughingboot.net+
+X-Postfix-Queue-ID: ADBE411F56D+
+X-Postfix-Sender: rfc822; bryan@gurgitate.org+
+Arrival-Date: Wed, 10 Jun 2009 15:29:31 -0700 (PDT)+
+Final-Recipient: rfc822; gurgles@gilded-bat.laughingboot.net+
+Original-Recipient: rfc822;gurgles@gurgitate.org+
+Action: failed+
+Status: 5.6.0+
+Diagnostic-Code: x-unix; gurgles: Mailbox does not exist+
*Other Issues*
Adding a new user to the list via SA generates message inviting the new user to post at gurgles@gurgitate.org, which then rudely rejects postings with the message above.
I'd also like to host lists in the server's local domain, in the format listname@laughingboot.net, never listname@gilded-bat.laughingboot.net. I've never succeeded in doing so in previous attempts.
-Bryan
Mac Pro 2x2.26 Quad, et al, Mac OS X (10.5.7), OS X Server 10.5.7