Hi, That's not right. Try this: DEFAULT_EMAIL_HOST = 'lists.domain1.com' DEFAULT_URL_HOST = 'lists.domain1.com' add_virtualhost('lists.domain2.com', 'lists.domain2.com') TBH I never used postfix_style_virtual_domains so not 100% sure on the format of this, but think it is correct. That section tells Mailman to create the relevant entries in the specific aliases file. Thanks. Andrew. -----Original Message----- From: blind-sysadmins-bounces@lists.hodgsonfamily.org [mailto:blind-sysadmins-bounces@lists.hodgsonfamily.org] On Behalf Of David Mehler Sent: 13 December 2010 20:49 To: Blind sysadmins list Subject: Re: [Blind-sysadmins] mailman administrator Hello, Thanks for your reply. From your message I don't think my mailman virtualhost table is set up correctly. The addvirtualhost was originally the default url host and default email host variables both set to lists.domain1.com. Now here it is: DEFAULT_EMAIL_HOST = 'lists.domain1.com' DEFAULT_URL_HOST = 'lists.domain1.com' add_virtualhost(DEFAULT_URL_HOST, ' lists.domain2.com') POSTFIX_STYLE_VIRTUAL_DOMAINS = 'lists.domain1.com, lists.domain2.com' I'm atempting to have both lists.domain1.com and lists.domain2.com which is why i have addvirtualhost going like this, but I want separate mailman lists and separate named lists on both domains. Am I overcomplicating this? Thanks. Dave. On 12/13/10, Andrew Hodgson <Andrew.Hodgson@allpay.net> wrote:
Hi,
If your command was similar to:
add_virtualhost('lists.domain2.com', 'lists.domain2.com')
Then it will be fine. The arguments should be the same if the URL and email hosts that the list uses is the same.
To create a new list, run the command:
Newlist -u lists.domain2.com listname admin@domain2.com password
You don't need to specify the email host if the add_virtualhosts table is properly configured.
Thanks. Andrew.
-----Original Message----- From: blind-sysadmins-bounces@lists.hodgsonfamily.org [mailto:blind-sysadmins-bounces@lists.hodgsonfamily.org] On Behalf Of David Mehler Sent: 13 December 2010 19:52 To: Blind sysadmins list Subject: Re: [Blind-sysadmins] mailman administrator
Hello Andrew,
Thanks. For mailman when I added lists.domain2.com to add_virtualhost I got an error that it required two arguments 3 were given, due to the fact that i had url_host and email_host, since both of those values were the same both are lists.domain1.com I took out one, and added in lists.domain2.com which resolved the syntax error. Am I good so far?
My second question is I'm wanting to make a mailman list for lists.domain2.com then other lists only for that domain, using the cli how would I pull this off?
I've also added the lists.domain2.com to postfix's mydestination, when I get some lists I'll try it out and let you know. Thanks. Dave.
On 12/13/10, Andrew Hodgson <Andrew.Hodgson@allpay.net> wrote:
Hi,
You will need a line like this in mm_cfg.py:
add_virtualhost('lists.hodgsonfamily.org', 'lists.hodgsonfamily.org')
Look at the punctuation here, very important.
You will also need to do this with postfix_style_virtual_domains as you have done.
I use Exim here with a completely different configuration, but yes adding the lists.domain2.com to mydestination should be ok.
Andrew.
-----Original Message----- From: blind-sysadmins-bounces@lists.hodgsonfamily.org [mailto:blind-sysadmins-bounces@lists.hodgsonfamily.org] On Behalf Of David Mehler Sent: 13 December 2010 17:37 To: Blind sysadmins list Subject: Re: [Blind-sysadmins] mailman administrator
Hello Everyone,
Thank you all for your response. I thought to do this privately as I didn't think it would be of general list interest I'm apparently wrong. Here's my situation.
I've got a Ubuntu Linux machine that i've got mailman running on. It's version 2.1.12 installed from Ubuntu packages. It's also got Apache for the mailman web interface and Postfix as the MTA. Those are versions 2.2.12 for apache and postfix 2.6.5. It's using postfix's virtual mailbox domains for the mail delivery but not for mailman it's using mailman's alias facility for that.
I've got a domain let's call it domain1.com that does mail, that's where the postfix virtual mailbox stuff goes this does not effect mailman. Now i've got a subdomain called lists.domain1.com which is where mailman is. Here's the relevant lines of my config files:
postfix/main.cf: append_dot_mydomain = no myhostname = mail.domain1.com alias_maps = hash:/etc/aliases, hash:/var/lib/mailman/data/aliases alias_database = hash:/etc/aliases myorigin = $mydomain mydestination = localhost, lists.$mydomain recipient_delimiter = + # Mailman settings owner_request_special = no mailman_destination_recipient_limit = 1
apache2/mailman.conf: # # httpd configuration settings for use with mailman. #
# create a virtual host for lists.domain1.com <VirtualHost xxx.xxx.xxx.xxx:80> ServerAdmin listadmin@domain1.com ServerName lists.domain1.com DocumentRoot /var/lib/mailman/templates/en ErrorLog /var/log/apache2/lists-error.log CustomLog /var/log/apache2/lists-access.log combined
<Directory /> Options FollowSymLinks AllowOverride None </Directory> <Directory /var/lib/mailman/templates/en> AllowOverride None Options None Order allow,deny allow from all </directory>
ScriptAlias /mailman/ /usr/lib/cgi-bin/mailman/ <Directory /usr/lib/cgi-bin/mailman/> AllowOverride None Options ExecCGI Order allow,deny Allow from all </Directory>
Alias /pipermail/ /var/lib/mailman/archives/public/ <Directory /var/lib/mailman/archives/public> Options Indexes MultiViews FollowSymLinks AllowOverride None Order allow,deny Allow from all </Directory>
Alias /images/mailman/ /usr/share/images/mailman/ <Directory /usr/share/images/mailman/> AllowOverride None Order allow,deny Allow from all </Directory>
# Uncomment the following line, replacing www.example.com with your server's # name, to redirect queries to /mailman to the listinfo page (recommended).
RedirectMatch ^/mailman[/]*$ http://lists.domain1.com/mailman/listinfo </VirtualHost> #DEFAULT_URL_PATTERN = 'http://%s/' #
mailman/mm_cfg.py # -*- python -*-
from Defaults import *
MAILMAN_SITE_LIST = 'mailman' DEFAULT_URL_PATTERN = 'http://%s/cgi-bin/mailman/' PRIVATE_ARCHIVE_URL = '/cgi-bin/mailman/private' IMAGE_LOGOS = '/images/mailman/' DEFAULT_EMAIL_HOST = 'lists.domain1.com' DEFAULT_URL_HOST = 'lists.domain1.com' add_virtualhost(DEFAULT_URL_HOST, DEFAULT_EMAIL_HOST) DEFAULT_URL_PATTERN = 'http://%s/' DEFAULT_SERVER_LANGUAGE = 'en' USE_ENVELOPE_SENDER = 0 # Still used? DEFAULT_SEND_REMINDERS = 0 MTA='Postfix' POSTFIX_STYLE_VIRTUAL_DOMAINS = 'lists.domain1.com, lists.domain2.com'
mailman/aliases # This file is generated by Mailman, and is kept in sync with the # binary hash file aliases.db. YOU SHOULD NOT MANUALLY EDIT THIS FILE # unless you know what you're doing, and can keep the two files properly # in sync. If you screw it up, you're on your own.
# The ultimate loop stopper address mailman-loop: /var/lib/mailman/data/owner-bounces.mbox
# STANZA START: mailman # CREATED: Sun Mar 14 19:40:30 2010 mailman: "|/usr/lib/mailman/mail/mailman post mailman" mailman-admin: "|/usr/lib/mailman/mail/mailman admin mailman" mailman-bounces: "|/usr/lib/mailman/mail/mailman bounces mailman" mailman-confirm: "|/usr/lib/mailman/mail/mailman confirm mailman" mailman-join: "|/usr/lib/mailman/mail/mailman join mailman" mailman-leave: "|/usr/lib/mailman/mail/mailman leave mailman" mailman-owner: "|/usr/lib/mailman/mail/mailman owner mailman" mailman-request: "|/usr/lib/mailman/mail/mailman request mailman" mailman-subscribe: "|/usr/lib/mailman/mail/mailman subscribe mailman" mailman-unsubscribe: "|/usr/lib/mailman/mail/mailman unsubscribe mailman" # STANZA END: mailman
# STANZA START: domain1 # CREATED: Tue Mar 16 08:29:38 2010 domain1: "|/usr/lib/mailman/mail/mailman post domain2" domain1-admin: "|/usr/lib/mailman/mail/mailman admin domain2" domain1-bounces: "|/usr/lib/mailman/mail/mailman bounces domain2" domain1-confirm: "|/usr/lib/mailman/mail/mailman confirm domain2" domain1-join: "|/usr/lib/mailman/mail/mailman join domain2" domain1-leave: "|/usr/lib/mailman/mail/mailman leave domain2" domain1-owner: "|/usr/lib/mailman/mail/mailman owner domain2" domain1-request: "|/usr/lib/mailman/mail/mailman request domain2" domain1-subscribe: "|/usr/lib/mailman/mail/mailman subscribe domain2" domain1-unsubscribe: "|/usr/lib/mailman/mail/mailman unsubscribe domain2" # STANZA END: domain1
I hope that makes sense. Now I'm wanting to add a second domain to mailman only called lists.domain2.com. I've got an apache virtual host set up for it here it is:
apache2/domain2.conf: # httpd configuration settings for use with mailman. for lists.domain2.com #
# create a virtual host for lists.domain2.com <VirtualHost xxx.xxx.xxx.xxx:80> ServerAdmin webmaster@domain2.com ServerName lists.domain2.com DocumentRoot /var/lib/mailman/templates/en ErrorLog /var/log/apache2/lists.domain2.com/lists-error.log CustomLog /var/log/apache2/lists.domain2.com/lists-access.log orgbined
<Directory /> Options FollowSymLinks AllowOverride None </Directory> <Directory /var/lib/mailman/templates/en> AllowOverride None Options None Order allow,deny allow from all </directory>
ScriptAlias /mailman/ /usr/lib/cgi-bin/mailman/ <Directory /usr/lib/cgi-bin/mailman/> AllowOverride None Options ExecCGI Order allow,deny Allow from all </Directory>
Alias /pipermail/ /var/lib/mailman/archives/lists.domain2.com/public/ <Directory /var/lib/mailman/archives/lists.domain2.com/public> Options Indexes MultiViews FollowSymLinks AllowOverride None Order allow,deny Allow from all </Directory>
Alias /images/mailman/ /usr/share/images/mailman/ <Directory /usr/share/images/mailman/> AllowOverride None Order allow,deny Allow from all </Directory>
# Unorgment the following line, replacing www.example.org with your server's # name, to redirect queries to /mailman to the listinfo page (reorgmended).
RedirectMatch ^/mailman[/]*$ http://lists.domain2.com/mailman/listinfo </VirtualHost> #DEFAULT_URL_PATTERN = 'http://%s/'
Now I need to get all this working with mailman and postfix. For mailman i've tried adding lists.domain2.com to the mm_cfg.py file lines but got errors when atempting to restart it. The specific lines I tried adding to were the add_virtualhost(DEFAULT_URL_HOST, DEFAULT_EMAIL_HOST) line adding in the lists.domain2.com errored out. I did add lists.domain2.com to this line:
POSTFIX_STYLE_VIRTUAL_DOMAINS = 'lists.domain1.com, lists.domain2.com'
I'm thinking I have to add lists.domain2.com to postfix's mydestination line.
I'm probably overcomplicating this. Basically I want to have a mailman list for both lists.domain1.com and lists.domain2.com as well as separate call them list1.domain1.com and list1.domain2.com.
Any help appreciated. Thanks. Dave.
On 12/13/10, Andrew Hodgson <Andrew.Hodgson@allpay.net> wrote:
Hi,
I can definitely do this, this system uses Mailman 2.1.14 built from source with around 4 virtual domains handling a lot of list traffic.
Andrew.
-----Original Message----- From: blind-sysadmins-bounces@lists.hodgsonfamily.org [mailto:blind-sysadmins-bounces@lists.hodgsonfamily.org] On Behalf Of David Mehler Sent: 13 December 2010 15:23 To: blind-sysadmins Subject: [Blind-sysadmins] mailman administrator
Hello, Do we have any mailman administrators onlist? If so, please contact me privately. I've got a mailman issue and am needing to resolve in a very quick manner. It involves adding a second domain to mailman although sounding easy i've not been able to get this going. I can provide additional details. Some urgency! Thanks. Dave.
_______________________________________________ Blind-sysadmins mailing list Blind-sysadmins@lists.hodgsonfamily.org http://lists.hodgsonfamily.org/listinfo/blind-sysadmins
-- 98% of our clients would recommend us Client Survey Jan 2010 Registered in England No. 02933191. UK VAT Reg. No. 666 9148 88. (c) 2009 - 2010 allpay Limited Fully compliant with the Payment Card Industry Data Security Standard (PCI DSS)
Telephone: 0844 225 5729 Fax: 0844 557 8350 Website: www.allpay.net Email: enquiries@allpay.net
This email, and any files transmitted with it, is confidential and intended solely for the use of the individual or entity to whom it is addressed. If you have received this email in error please notify the allpay Information Security Manager at the number above
_______________________________________________ Blind-sysadmins mailing list Blind-sysadmins@lists.hodgsonfamily.org http://lists.hodgsonfamily.org/listinfo/blind-sysadmins
_______________________________________________ Blind-sysadmins mailing list Blind-sysadmins@lists.hodgsonfamily.org http://lists.hodgsonfamily.org/listinfo/blind-sysadmins
_______________________________________________ Blind-sysadmins mailing list Blind-sysadmins@lists.hodgsonfamily.org http://lists.hodgsonfamily.org/listinfo/blind-sysadmins
_______________________________________________ Blind-sysadmins mailing list Blind-sysadmins@lists.hodgsonfamily.org http://lists.hodgsonfamily.org/listinfo/blind-sysadmins
_______________________________________________ Blind-sysadmins mailing list Blind-sysadmins@lists.hodgsonfamily.org http://lists.hodgsonfamily.org/listinfo/blind-sysadmins
_______________________________________________ Blind-sysadmins mailing list Blind-sysadmins@lists.hodgsonfamily.org http://lists.hodgsonfamily.org/listinfo/blind-sysadmins