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.
I might be able to help. Regards Darragh Ó Héiligh System administration Fujitsu Offices of the Houses of the Oireachtas, Fredrick Building, South Fredrick Street, Dublin2 Telephone: +353 (1) 618 3559 Email: darragh.oheiligh@oireachtas.ie Internet: http://www.oireachtas.ie From: David Mehler <dave.mehler@gmail.com> To: blind-sysadmins <blind-sysadmins@lists.hodgsonfamily.org> Date: 13/12/2010 15:23 Subject: [Blind-sysadmins] mailman administrator Sent by: blind-sysadmins-bounces@lists.hodgsonfamily.org 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
I might be able to help. Regards Darragh Ó Héiligh System administration Fujitsu Offices of the Houses of the Oireachtas, Fredrick Building, South Fredrick Street, Dublin2 Telephone: +353 (1) 618 3559 Email: darragh.oheiligh@oireachtas.ie Internet: http://www.oireachtas.ie From: David Mehler <dave.mehler@gmail.com> To: blind-sysadmins <blind-sysadmins@lists.hodgsonfamily.org> Date: 13/12/2010 15:23 Subject: [Blind-sysadmins] mailman administrator Sent by: blind-sysadmins-bounces@lists.hodgsonfamily.org 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
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. © 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
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. © 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
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
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
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
Hi, Can I be unsubscribed from this list please? Thanks, Brian. -----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: 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
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
Hi, Write to blind-sysadmins-unsubscribe@lists.hodgsonfamily.org or follow the link/unsubscription instructions in the footer. Thanks. Andrew. -----Original Message----- From: blind-sysadmins-bounces@lists.hodgsonfamily.org [mailto:blind-sysadmins-bounces@lists.hodgsonfamily.org] On Behalf Of Brian Dalton Sent: 13 December 2010 19:57 To: 'Blind sysadmins list' Subject: Re: [Blind-sysadmins] mailman administrator Hi, Can I be unsubscribed from this list please? Thanks, Brian. -----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: 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
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
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
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
Hi Andrew, Thanks. Set those options. Will your command now create mailing lists in domain2.com: Newlist -u lists.domain2.com listname admin@domain2.com password Thanks a lot! Dave. On 12/13/10, Andrew Hodgson <andrew@hodgsonfamily.org> wrote:
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
_______________________________________________ Blind-sysadmins mailing list Blind-sysadmins@lists.hodgsonfamily.org http://lists.hodgsonfamily.org/listinfo/blind-sysadmins
Hi, Yes. admin@domain2.com can be any external address (probably outside domain2.com is best). Password can be omitted and you will be asked for the password - saves typing the password in on the CLI. Andrew. -----Original Message----- From: blind-sysadmins-bounces@lists.hodgsonfamily.org [mailto:blind-sysadmins-bounces@lists.hodgsonfamily.org] On Behalf Of David Mehler Sent: 14 December 2010 01:40 To: Blind sysadmins list Subject: Re: [Blind-sysadmins] mailman administrator Hi Andrew, Thanks. Set those options. Will your command now create mailing lists in domain2.com: Newlist -u lists.domain2.com listname admin@domain2.com password Thanks a lot! Dave. On 12/13/10, Andrew Hodgson <andrew@hodgsonfamily.org> wrote:
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
_______________________________________________ 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
Hello, Still having trouble creating this new list. I'm atempting to create a list called mailman in domain2.com already have one for domain1.com and am being told the list already exists. Either I can't do what i'm atempting to do create a list with the same name in two domains or i've got a syntax or config issue. Thanks. Dave. On 12/14/10, Andrew Hodgson <Andrew.Hodgson@allpay.net> wrote:
Hi,
Yes. admin@domain2.com can be any external address (probably outside domain2.com is best). Password can be omitted and you will be asked for the password - saves typing the password in on the CLI.
Andrew.
-----Original Message----- From: blind-sysadmins-bounces@lists.hodgsonfamily.org [mailto:blind-sysadmins-bounces@lists.hodgsonfamily.org] On Behalf Of David Mehler Sent: 14 December 2010 01:40 To: Blind sysadmins list Subject: Re: [Blind-sysadmins] mailman administrator
Hi Andrew,
Thanks. Set those options. Will your command now create mailing lists in domain2.com:
Newlist -u lists.domain2.com listname admin@domain2.com password
Thanks a lot! Dave.
On 12/13/10, Andrew Hodgson <andrew@hodgsonfamily.org> wrote:
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
_______________________________________________ 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
Hi, You can't create a list with the same name in more than one domain. The only way to do this is to have multiple Mailman installations. The mailman case is slightly odd in that it uses mailman@domain1.com and mailman@domain2.com based on the vhost the list is in. Thanks. Andrew. -----Original Message----- From: blind-sysadmins-bounces@lists.hodgsonfamily.org [mailto:blind-sysadmins-bounces@lists.hodgsonfamily.org] On Behalf Of David Mehler Sent: 14 December 2010 14:24 To: Blind sysadmins list Subject: Re: [Blind-sysadmins] mailman administrator Hello, Still having trouble creating this new list. I'm atempting to create a list called mailman in domain2.com already have one for domain1.com and am being told the list already exists. Either I can't do what i'm atempting to do create a list with the same name in two domains or i've got a syntax or config issue. Thanks. Dave. On 12/14/10, Andrew Hodgson <Andrew.Hodgson@allpay.net> wrote:
Hi,
Yes. admin@domain2.com can be any external address (probably outside domain2.com is best). Password can be omitted and you will be asked for the password - saves typing the password in on the CLI.
Andrew.
-----Original Message----- From: blind-sysadmins-bounces@lists.hodgsonfamily.org [mailto:blind-sysadmins-bounces@lists.hodgsonfamily.org] On Behalf Of David Mehler Sent: 14 December 2010 01:40 To: Blind sysadmins list Subject: Re: [Blind-sysadmins] mailman administrator
Hi Andrew,
Thanks. Set those options. Will your command now create mailing lists in domain2.com:
Newlist -u lists.domain2.com listname admin@domain2.com password
Thanks a lot! Dave.
On 12/13/10, Andrew Hodgson <andrew@hodgsonfamily.org> wrote:
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
_______________________________________________ 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
Hi, Thanks. I just set up a test list on my domain2.com and although it's working I'm really not liking it and the individuals i'm setting this up for probably won't either. I think i'm going to need a second mailman instance, one specifically for this domain so mails coming from it will be completely separate from domain1.com. Your using v2.1.14 can I run that version compiled from source, say installed in /usr/local while the ubuntu packaged version 2.1.12 is used for domain1? If so what issues am I likely to encounter with this approach? Thanks. Dave. On 12/14/10, Andrew Hodgson <Andrew.Hodgson@allpay.net> wrote:
Hi,
You can't create a list with the same name in more than one domain. The only way to do this is to have multiple Mailman installations. The mailman case is slightly odd in that it uses mailman@domain1.com and mailman@domain2.com based on the vhost the list is in.
Thanks. Andrew.
-----Original Message----- From: blind-sysadmins-bounces@lists.hodgsonfamily.org [mailto:blind-sysadmins-bounces@lists.hodgsonfamily.org] On Behalf Of David Mehler Sent: 14 December 2010 14:24 To: Blind sysadmins list Subject: Re: [Blind-sysadmins] mailman administrator
Hello,
Still having trouble creating this new list. I'm atempting to create a list called mailman in domain2.com already have one for domain1.com and am being told the list already exists. Either I can't do what i'm atempting to do create a list with the same name in two domains or i've got a syntax or config issue. Thanks. Dave.
On 12/14/10, Andrew Hodgson <Andrew.Hodgson@allpay.net> wrote:
Hi,
Yes. admin@domain2.com can be any external address (probably outside domain2.com is best). Password can be omitted and you will be asked for the password - saves typing the password in on the CLI.
Andrew.
-----Original Message----- From: blind-sysadmins-bounces@lists.hodgsonfamily.org [mailto:blind-sysadmins-bounces@lists.hodgsonfamily.org] On Behalf Of David Mehler Sent: 14 December 2010 01:40 To: Blind sysadmins list Subject: Re: [Blind-sysadmins] mailman administrator
Hi Andrew,
Thanks. Set those options. Will your command now create mailing lists in domain2.com:
Newlist -u lists.domain2.com listname admin@domain2.com password
Thanks a lot! Dave.
On 12/13/10, Andrew Hodgson <andrew@hodgsonfamily.org> wrote:
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
_______________________________________________ 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
Hi, That is possible but is rather an extreme measure. What is the issue you have with the virtual domain support, do they want the same list at both domains? When I built Mailman 2.1.14 on this Debian system I built it on another system and moved the binaries over and used the default /usr/local/mailman. I used the Debian provided startup scripts and cron definitions, modifying them as appropriate. I have my own Apache virtual host files that I use with specific configuration schemes in mind already. It took around an hour to sort everything out. Andrew. -----Original Message----- From: blind-sysadmins-bounces@lists.hodgsonfamily.org [mailto:blind-sysadmins-bounces@lists.hodgsonfamily.org] On Behalf Of David Mehler Sent: 14 December 2010 14:45 To: Blind sysadmins list Subject: Re: [Blind-sysadmins] mailman administrator Hi, Thanks. I just set up a test list on my domain2.com and although it's working I'm really not liking it and the individuals i'm setting this up for probably won't either. I think i'm going to need a second mailman instance, one specifically for this domain so mails coming from it will be completely separate from domain1.com. Your using v2.1.14 can I run that version compiled from source, say installed in /usr/local while the ubuntu packaged version 2.1.12 is used for domain1? If so what issues am I likely to encounter with this approach? Thanks. Dave. On 12/14/10, Andrew Hodgson <Andrew.Hodgson@allpay.net> wrote:
Hi,
You can't create a list with the same name in more than one domain. The only way to do this is to have multiple Mailman installations. The mailman case is slightly odd in that it uses mailman@domain1.com and mailman@domain2.com based on the vhost the list is in.
Thanks. Andrew.
-----Original Message----- From: blind-sysadmins-bounces@lists.hodgsonfamily.org [mailto:blind-sysadmins-bounces@lists.hodgsonfamily.org] On Behalf Of David Mehler Sent: 14 December 2010 14:24 To: Blind sysadmins list Subject: Re: [Blind-sysadmins] mailman administrator
Hello,
Still having trouble creating this new list. I'm atempting to create a list called mailman in domain2.com already have one for domain1.com and am being told the list already exists. Either I can't do what i'm atempting to do create a list with the same name in two domains or i've got a syntax or config issue. Thanks. Dave.
On 12/14/10, Andrew Hodgson <Andrew.Hodgson@allpay.net> wrote:
Hi,
Yes. admin@domain2.com can be any external address (probably outside domain2.com is best). Password can be omitted and you will be asked for the password - saves typing the password in on the CLI.
Andrew.
-----Original Message----- From: blind-sysadmins-bounces@lists.hodgsonfamily.org [mailto:blind-sysadmins-bounces@lists.hodgsonfamily.org] On Behalf Of David Mehler Sent: 14 December 2010 01:40 To: Blind sysadmins list Subject: Re: [Blind-sysadmins] mailman administrator
Hi Andrew,
Thanks. Set those options. Will your command now create mailing lists in domain2.com:
Newlist -u lists.domain2.com listname admin@domain2.com password
Thanks a lot! Dave.
On 12/13/10, Andrew Hodgson <andrew@hodgsonfamily.org> wrote:
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
_______________________________________________ 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
Hi, The issue is a while back a list called list1 was created in domain1 and used. Now they want that same listname list1 created in domain2 but without the list1@domain1's archives or information. For another thing the mailman messages got for domain2 need to come from mailman@lists.domain2.com which at the moment they are not. The apache and postfix are both set they should work, it's a question of the mailman setup. Thanks. Dave. On 12/14/10, Andrew Hodgson <Andrew.Hodgson@allpay.net> wrote:
Hi,
That is possible but is rather an extreme measure. What is the issue you have with the virtual domain support, do they want the same list at both domains?
When I built Mailman 2.1.14 on this Debian system I built it on another system and moved the binaries over and used the default /usr/local/mailman. I used the Debian provided startup scripts and cron definitions, modifying them as appropriate. I have my own Apache virtual host files that I use with specific configuration schemes in mind already. It took around an hour to sort everything out.
Andrew.
-----Original Message----- From: blind-sysadmins-bounces@lists.hodgsonfamily.org [mailto:blind-sysadmins-bounces@lists.hodgsonfamily.org] On Behalf Of David Mehler Sent: 14 December 2010 14:45 To: Blind sysadmins list Subject: Re: [Blind-sysadmins] mailman administrator
Hi, Thanks. I just set up a test list on my domain2.com and although it's working I'm really not liking it and the individuals i'm setting this up for probably won't either. I think i'm going to need a second mailman instance, one specifically for this domain so mails coming from it will be completely separate from domain1.com. Your using v2.1.14 can I run that version compiled from source, say installed in /usr/local while the ubuntu packaged version 2.1.12 is used for domain1? If so what issues am I likely to encounter with this approach? Thanks. Dave.
On 12/14/10, Andrew Hodgson <Andrew.Hodgson@allpay.net> wrote:
Hi,
You can't create a list with the same name in more than one domain. The only way to do this is to have multiple Mailman installations. The mailman case is slightly odd in that it uses mailman@domain1.com and mailman@domain2.com based on the vhost the list is in.
Thanks. Andrew.
-----Original Message----- From: blind-sysadmins-bounces@lists.hodgsonfamily.org [mailto:blind-sysadmins-bounces@lists.hodgsonfamily.org] On Behalf Of David Mehler Sent: 14 December 2010 14:24 To: Blind sysadmins list Subject: Re: [Blind-sysadmins] mailman administrator
Hello,
Still having trouble creating this new list. I'm atempting to create a list called mailman in domain2.com already have one for domain1.com and am being told the list already exists. Either I can't do what i'm atempting to do create a list with the same name in two domains or i've got a syntax or config issue. Thanks. Dave.
On 12/14/10, Andrew Hodgson <Andrew.Hodgson@allpay.net> wrote:
Hi,
Yes. admin@domain2.com can be any external address (probably outside domain2.com is best). Password can be omitted and you will be asked for the password - saves typing the password in on the CLI.
Andrew.
-----Original Message----- From: blind-sysadmins-bounces@lists.hodgsonfamily.org [mailto:blind-sysadmins-bounces@lists.hodgsonfamily.org] On Behalf Of David Mehler Sent: 14 December 2010 01:40 To: Blind sysadmins list Subject: Re: [Blind-sysadmins] mailman administrator
Hi Andrew,
Thanks. Set those options. Will your command now create mailing lists in domain2.com:
Newlist -u lists.domain2.com listname admin@domain2.com password
Thanks a lot! Dave.
On 12/13/10, Andrew Hodgson <andrew@hodgsonfamily.org> wrote:
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
_______________________________________________ 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
_______________________________________________ Blind-sysadmins mailing list Blind-sysadmins@lists.hodgsonfamily.org http://lists.hodgsonfamily.org/listinfo/blind-sysadmins
Hi, All the important mailman messages on this system are coming from mailman at the correct domain. If one sends a message to mailman at the correct domain, they will get back messages from the mailman at the first domain, but I can live with that myself. I find the notion of requiring a mailman specific list a bit odd, and hopefully something they may get rid of in a later version. Let me know if you want any help with compiling 2.1.14 from source. Thanks. Andrew. -----Original Message----- From: blind-sysadmins-bounces@lists.hodgsonfamily.org [mailto:blind-sysadmins-bounces@lists.hodgsonfamily.org] On Behalf Of David Mehler Sent: 14 December 2010 16:27 To: Blind sysadmins list Subject: Re: [Blind-sysadmins] mailman administrator Hi, The issue is a while back a list called list1 was created in domain1 and used. Now they want that same listname list1 created in domain2 but without the list1@domain1's archives or information. For another thing the mailman messages got for domain2 need to come from mailman@lists.domain2.com which at the moment they are not. The apache and postfix are both set they should work, it's a question of the mailman setup. Thanks. Dave. On 12/14/10, Andrew Hodgson <Andrew.Hodgson@allpay.net> wrote:
Hi,
That is possible but is rather an extreme measure. What is the issue you have with the virtual domain support, do they want the same list at both domains?
When I built Mailman 2.1.14 on this Debian system I built it on another system and moved the binaries over and used the default /usr/local/mailman. I used the Debian provided startup scripts and cron definitions, modifying them as appropriate. I have my own Apache virtual host files that I use with specific configuration schemes in mind already. It took around an hour to sort everything out.
Andrew.
-----Original Message----- From: blind-sysadmins-bounces@lists.hodgsonfamily.org [mailto:blind-sysadmins-bounces@lists.hodgsonfamily.org] On Behalf Of David Mehler Sent: 14 December 2010 14:45 To: Blind sysadmins list Subject: Re: [Blind-sysadmins] mailman administrator
Hi, Thanks. I just set up a test list on my domain2.com and although it's working I'm really not liking it and the individuals i'm setting this up for probably won't either. I think i'm going to need a second mailman instance, one specifically for this domain so mails coming from it will be completely separate from domain1.com. Your using v2.1.14 can I run that version compiled from source, say installed in /usr/local while the ubuntu packaged version 2.1.12 is used for domain1? If so what issues am I likely to encounter with this approach? Thanks. Dave.
On 12/14/10, Andrew Hodgson <Andrew.Hodgson@allpay.net> wrote:
Hi,
You can't create a list with the same name in more than one domain. The only way to do this is to have multiple Mailman installations. The mailman case is slightly odd in that it uses mailman@domain1.com and mailman@domain2.com based on the vhost the list is in.
Thanks. Andrew.
-----Original Message----- From: blind-sysadmins-bounces@lists.hodgsonfamily.org [mailto:blind-sysadmins-bounces@lists.hodgsonfamily.org] On Behalf Of David Mehler Sent: 14 December 2010 14:24 To: Blind sysadmins list Subject: Re: [Blind-sysadmins] mailman administrator
Hello,
Still having trouble creating this new list. I'm atempting to create a list called mailman in domain2.com already have one for domain1.com and am being told the list already exists. Either I can't do what i'm atempting to do create a list with the same name in two domains or i've got a syntax or config issue. Thanks. Dave.
On 12/14/10, Andrew Hodgson <Andrew.Hodgson@allpay.net> wrote:
Hi,
Yes. admin@domain2.com can be any external address (probably outside domain2.com is best). Password can be omitted and you will be asked for the password - saves typing the password in on the CLI.
Andrew.
-----Original Message----- From: blind-sysadmins-bounces@lists.hodgsonfamily.org [mailto:blind-sysadmins-bounces@lists.hodgsonfamily.org] On Behalf Of David Mehler Sent: 14 December 2010 01:40 To: Blind sysadmins list Subject: Re: [Blind-sysadmins] mailman administrator
Hi Andrew,
Thanks. Set those options. Will your command now create mailing lists in domain2.com:
Newlist -u lists.domain2.com listname admin@domain2.com password
Thanks a lot! Dave.
On 12/13/10, Andrew Hodgson <andrew@hodgsonfamily.org> wrote:
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
_______________________________________________ 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
_______________________________________________ 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
Hi, Thank you. I suspect i'm going to need it. I'm looking over the mailman install doc and there are parts of it that are confusing. If your willing to help out write me privately and I can give you an ssh username/password for my server and details. Thanks. Dave. On 12/14/10, Andrew Hodgson <Andrew.Hodgson@allpay.net> wrote:
Hi,
All the important mailman messages on this system are coming from mailman at the correct domain. If one sends a message to mailman at the correct domain, they will get back messages from the mailman at the first domain, but I can live with that myself. I find the notion of requiring a mailman specific list a bit odd, and hopefully something they may get rid of in a later version.
Let me know if you want any help with compiling 2.1.14 from source.
Thanks. Andrew.
-----Original Message----- From: blind-sysadmins-bounces@lists.hodgsonfamily.org [mailto:blind-sysadmins-bounces@lists.hodgsonfamily.org] On Behalf Of David Mehler Sent: 14 December 2010 16:27 To: Blind sysadmins list Subject: Re: [Blind-sysadmins] mailman administrator
Hi, The issue is a while back a list called list1 was created in domain1 and used. Now they want that same listname list1 created in domain2 but without the list1@domain1's archives or information. For another thing the mailman messages got for domain2 need to come from mailman@lists.domain2.com which at the moment they are not. The apache and postfix are both set they should work, it's a question of the mailman setup. Thanks. Dave.
On 12/14/10, Andrew Hodgson <Andrew.Hodgson@allpay.net> wrote:
Hi,
That is possible but is rather an extreme measure. What is the issue you have with the virtual domain support, do they want the same list at both domains?
When I built Mailman 2.1.14 on this Debian system I built it on another system and moved the binaries over and used the default /usr/local/mailman. I used the Debian provided startup scripts and cron definitions, modifying them as appropriate. I have my own Apache virtual host files that I use with specific configuration schemes in mind already. It took around an hour to sort everything out.
Andrew.
-----Original Message----- From: blind-sysadmins-bounces@lists.hodgsonfamily.org [mailto:blind-sysadmins-bounces@lists.hodgsonfamily.org] On Behalf Of David Mehler Sent: 14 December 2010 14:45 To: Blind sysadmins list Subject: Re: [Blind-sysadmins] mailman administrator
Hi, Thanks. I just set up a test list on my domain2.com and although it's working I'm really not liking it and the individuals i'm setting this up for probably won't either. I think i'm going to need a second mailman instance, one specifically for this domain so mails coming from it will be completely separate from domain1.com. Your using v2.1.14 can I run that version compiled from source, say installed in /usr/local while the ubuntu packaged version 2.1.12 is used for domain1? If so what issues am I likely to encounter with this approach? Thanks. Dave.
On 12/14/10, Andrew Hodgson <Andrew.Hodgson@allpay.net> wrote:
Hi,
You can't create a list with the same name in more than one domain. The only way to do this is to have multiple Mailman installations. The mailman case is slightly odd in that it uses mailman@domain1.com and mailman@domain2.com based on the vhost the list is in.
Thanks. Andrew.
-----Original Message----- From: blind-sysadmins-bounces@lists.hodgsonfamily.org [mailto:blind-sysadmins-bounces@lists.hodgsonfamily.org] On Behalf Of David Mehler Sent: 14 December 2010 14:24 To: Blind sysadmins list Subject: Re: [Blind-sysadmins] mailman administrator
Hello,
Still having trouble creating this new list. I'm atempting to create a list called mailman in domain2.com already have one for domain1.com and am being told the list already exists. Either I can't do what i'm atempting to do create a list with the same name in two domains or i've got a syntax or config issue. Thanks. Dave.
On 12/14/10, Andrew Hodgson <Andrew.Hodgson@allpay.net> wrote:
Hi,
Yes. admin@domain2.com can be any external address (probably outside domain2.com is best). Password can be omitted and you will be asked for the password - saves typing the password in on the CLI.
Andrew.
-----Original Message----- From: blind-sysadmins-bounces@lists.hodgsonfamily.org [mailto:blind-sysadmins-bounces@lists.hodgsonfamily.org] On Behalf Of David Mehler Sent: 14 December 2010 01:40 To: Blind sysadmins list Subject: Re: [Blind-sysadmins] mailman administrator
Hi Andrew,
Thanks. Set those options. Will your command now create mailing lists in domain2.com:
Newlist -u lists.domain2.com listname admin@domain2.com password
Thanks a lot! Dave.
On 12/13/10, Andrew Hodgson <andrew@hodgsonfamily.org> wrote:
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
_______________________________________________ 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
_______________________________________________ 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
Hi Andrew, Wondering if you got my last message on this? Thanks. Dave. On 12/14/10, David Mehler <dave.mehler@gmail.com> wrote:
Hi, Thank you. I suspect i'm going to need it. I'm looking over the mailman install doc and there are parts of it that are confusing. If your willing to help out write me privately and I can give you an ssh username/password for my server and details. Thanks. Dave.
On 12/14/10, Andrew Hodgson <Andrew.Hodgson@allpay.net> wrote:
Hi,
All the important mailman messages on this system are coming from mailman at the correct domain. If one sends a message to mailman at the correct domain, they will get back messages from the mailman at the first domain, but I can live with that myself. I find the notion of requiring a mailman specific list a bit odd, and hopefully something they may get rid of in a later version.
Let me know if you want any help with compiling 2.1.14 from source.
Thanks. Andrew.
-----Original Message----- From: blind-sysadmins-bounces@lists.hodgsonfamily.org [mailto:blind-sysadmins-bounces@lists.hodgsonfamily.org] On Behalf Of David Mehler Sent: 14 December 2010 16:27 To: Blind sysadmins list Subject: Re: [Blind-sysadmins] mailman administrator
Hi, The issue is a while back a list called list1 was created in domain1 and used. Now they want that same listname list1 created in domain2 but without the list1@domain1's archives or information. For another thing the mailman messages got for domain2 need to come from mailman@lists.domain2.com which at the moment they are not. The apache and postfix are both set they should work, it's a question of the mailman setup. Thanks. Dave.
On 12/14/10, Andrew Hodgson <Andrew.Hodgson@allpay.net> wrote:
Hi,
That is possible but is rather an extreme measure. What is the issue you have with the virtual domain support, do they want the same list at both domains?
When I built Mailman 2.1.14 on this Debian system I built it on another system and moved the binaries over and used the default /usr/local/mailman. I used the Debian provided startup scripts and cron definitions, modifying them as appropriate. I have my own Apache virtual host files that I use with specific configuration schemes in mind already. It took around an hour to sort everything out.
Andrew.
-----Original Message----- From: blind-sysadmins-bounces@lists.hodgsonfamily.org [mailto:blind-sysadmins-bounces@lists.hodgsonfamily.org] On Behalf Of David Mehler Sent: 14 December 2010 14:45 To: Blind sysadmins list Subject: Re: [Blind-sysadmins] mailman administrator
Hi, Thanks. I just set up a test list on my domain2.com and although it's working I'm really not liking it and the individuals i'm setting this up for probably won't either. I think i'm going to need a second mailman instance, one specifically for this domain so mails coming from it will be completely separate from domain1.com. Your using v2.1.14 can I run that version compiled from source, say installed in /usr/local while the ubuntu packaged version 2.1.12 is used for domain1? If so what issues am I likely to encounter with this approach? Thanks. Dave.
On 12/14/10, Andrew Hodgson <Andrew.Hodgson@allpay.net> wrote:
Hi,
You can't create a list with the same name in more than one domain. The only way to do this is to have multiple Mailman installations. The mailman case is slightly odd in that it uses mailman@domain1.com and mailman@domain2.com based on the vhost the list is in.
Thanks. Andrew.
-----Original Message----- From: blind-sysadmins-bounces@lists.hodgsonfamily.org [mailto:blind-sysadmins-bounces@lists.hodgsonfamily.org] On Behalf Of David Mehler Sent: 14 December 2010 14:24 To: Blind sysadmins list Subject: Re: [Blind-sysadmins] mailman administrator
Hello,
Still having trouble creating this new list. I'm atempting to create a list called mailman in domain2.com already have one for domain1.com and am being told the list already exists. Either I can't do what i'm atempting to do create a list with the same name in two domains or i've got a syntax or config issue. Thanks. Dave.
On 12/14/10, Andrew Hodgson <Andrew.Hodgson@allpay.net> wrote:
Hi,
Yes. admin@domain2.com can be any external address (probably outside domain2.com is best). Password can be omitted and you will be asked for the password - saves typing the password in on the CLI.
Andrew.
-----Original Message----- From: blind-sysadmins-bounces@lists.hodgsonfamily.org [mailto:blind-sysadmins-bounces@lists.hodgsonfamily.org] On Behalf Of David Mehler Sent: 14 December 2010 01:40 To: Blind sysadmins list Subject: Re: [Blind-sysadmins] mailman administrator
Hi Andrew,
Thanks. Set those options. Will your command now create mailing lists in domain2.com:
Newlist -u lists.domain2.com listname admin@domain2.com password
Thanks a lot! Dave.
On 12/13/10, Andrew Hodgson <andrew@hodgsonfamily.org> wrote:
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
_______________________________________________ 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
_______________________________________________ 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
Hi, Yes I did get the message, sorry for not replying. I don't really want SSH access to your server, though am happy to help you with the compilation of Mailman on Debian/Ubuntu. Thanks. Andrew. -----Original Message----- From: blind-sysadmins-bounces@lists.hodgsonfamily.org [mailto:blind-sysadmins-bounces@lists.hodgsonfamily.org] On Behalf Of David Mehler Sent: 15 December 2010 17:40 To: Blind sysadmins list Subject: Re: [Blind-sysadmins] mailman administrator Hi Andrew, Wondering if you got my last message on this? Thanks. Dave. On 12/14/10, David Mehler <dave.mehler@gmail.com> wrote:
Hi, Thank you. I suspect i'm going to need it. I'm looking over the mailman install doc and there are parts of it that are confusing. If your willing to help out write me privately and I can give you an ssh username/password for my server and details. Thanks. Dave.
On 12/14/10, Andrew Hodgson <Andrew.Hodgson@allpay.net> wrote:
Hi,
All the important mailman messages on this system are coming from mailman at the correct domain. If one sends a message to mailman at the correct domain, they will get back messages from the mailman at the first domain, but I can live with that myself. I find the notion of requiring a mailman specific list a bit odd, and hopefully something they may get rid of in a later version.
Let me know if you want any help with compiling 2.1.14 from source.
Thanks. Andrew.
-----Original Message----- From: blind-sysadmins-bounces@lists.hodgsonfamily.org [mailto:blind-sysadmins-bounces@lists.hodgsonfamily.org] On Behalf Of David Mehler Sent: 14 December 2010 16:27 To: Blind sysadmins list Subject: Re: [Blind-sysadmins] mailman administrator
Hi, The issue is a while back a list called list1 was created in domain1 and used. Now they want that same listname list1 created in domain2 but without the list1@domain1's archives or information. For another thing the mailman messages got for domain2 need to come from mailman@lists.domain2.com which at the moment they are not. The apache and postfix are both set they should work, it's a question of the mailman setup. Thanks. Dave.
On 12/14/10, Andrew Hodgson <Andrew.Hodgson@allpay.net> wrote:
Hi,
That is possible but is rather an extreme measure. What is the issue you have with the virtual domain support, do they want the same list at both domains?
When I built Mailman 2.1.14 on this Debian system I built it on another system and moved the binaries over and used the default /usr/local/mailman. I used the Debian provided startup scripts and cron definitions, modifying them as appropriate. I have my own Apache virtual host files that I use with specific configuration schemes in mind already. It took around an hour to sort everything out.
Andrew.
-----Original Message----- From: blind-sysadmins-bounces@lists.hodgsonfamily.org [mailto:blind-sysadmins-bounces@lists.hodgsonfamily.org] On Behalf Of David Mehler Sent: 14 December 2010 14:45 To: Blind sysadmins list Subject: Re: [Blind-sysadmins] mailman administrator
Hi, Thanks. I just set up a test list on my domain2.com and although it's working I'm really not liking it and the individuals i'm setting this up for probably won't either. I think i'm going to need a second mailman instance, one specifically for this domain so mails coming from it will be completely separate from domain1.com. Your using v2.1.14 can I run that version compiled from source, say installed in /usr/local while the ubuntu packaged version 2.1.12 is used for domain1? If so what issues am I likely to encounter with this approach? Thanks. Dave.
On 12/14/10, Andrew Hodgson <Andrew.Hodgson@allpay.net> wrote:
Hi,
You can't create a list with the same name in more than one domain. The only way to do this is to have multiple Mailman installations. The mailman case is slightly odd in that it uses mailman@domain1.com and mailman@domain2.com based on the vhost the list is in.
Thanks. Andrew.
-----Original Message----- From: blind-sysadmins-bounces@lists.hodgsonfamily.org [mailto:blind-sysadmins-bounces@lists.hodgsonfamily.org] On Behalf Of David Mehler Sent: 14 December 2010 14:24 To: Blind sysadmins list Subject: Re: [Blind-sysadmins] mailman administrator
Hello,
Still having trouble creating this new list. I'm atempting to create a list called mailman in domain2.com already have one for domain1.com and am being told the list already exists. Either I can't do what i'm atempting to do create a list with the same name in two domains or i've got a syntax or config issue. Thanks. Dave.
On 12/14/10, Andrew Hodgson <Andrew.Hodgson@allpay.net> wrote:
Hi,
Yes. admin@domain2.com can be any external address (probably outside domain2.com is best). Password can be omitted and you will be asked for the password - saves typing the password in on the CLI.
Andrew.
-----Original Message----- From: blind-sysadmins-bounces@lists.hodgsonfamily.org [mailto:blind-sysadmins-bounces@lists.hodgsonfamily.org] On Behalf Of David Mehler Sent: 14 December 2010 01:40 To: Blind sysadmins list Subject: Re: [Blind-sysadmins] mailman administrator
Hi Andrew,
Thanks. Set those options. Will your command now create mailing lists in domain2.com:
Newlist -u lists.domain2.com listname admin@domain2.com password
Thanks a lot! Dave.
On 12/13/10, Andrew Hodgson <andrew@hodgsonfamily.org> wrote:
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
_______________________________________________ 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
_______________________________________________ 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
Hi, Yes I did get the message, sorry for not replying. I don't really want SSH access to your server, though am happy to help you with the compilation of Mailman on Debian/Ubuntu. Thanks. Andrew. -----Original Message----- From: blind-sysadmins-bounces@lists.hodgsonfamily.org [mailto:blind-sysadmins-bounces@lists.hodgsonfamily.org] On Behalf Of David Mehler Sent: 15 December 2010 17:40 To: Blind sysadmins list Subject: Re: [Blind-sysadmins] mailman administrator Hi Andrew, Wondering if you got my last message on this? Thanks. Dave. On 12/14/10, David Mehler <dave.mehler@gmail.com> wrote:
Hi, Thank you. I suspect i'm going to need it. I'm looking over the mailman install doc and there are parts of it that are confusing. If your willing to help out write me privately and I can give you an ssh username/password for my server and details. Thanks. Dave.
On 12/14/10, Andrew Hodgson <Andrew.Hodgson@allpay.net> wrote:
Hi,
All the important mailman messages on this system are coming from mailman at the correct domain. If one sends a message to mailman at the correct domain, they will get back messages from the mailman at the first domain, but I can live with that myself. I find the notion of requiring a mailman specific list a bit odd, and hopefully something they may get rid of in a later version.
Let me know if you want any help with compiling 2.1.14 from source.
Thanks. Andrew.
-----Original Message----- From: blind-sysadmins-bounces@lists.hodgsonfamily.org [mailto:blind-sysadmins-bounces@lists.hodgsonfamily.org] On Behalf Of David Mehler Sent: 14 December 2010 16:27 To: Blind sysadmins list Subject: Re: [Blind-sysadmins] mailman administrator
Hi, The issue is a while back a list called list1 was created in domain1 and used. Now they want that same listname list1 created in domain2 but without the list1@domain1's archives or information. For another thing the mailman messages got for domain2 need to come from mailman@lists.domain2.com which at the moment they are not. The apache and postfix are both set they should work, it's a question of the mailman setup. Thanks. Dave.
On 12/14/10, Andrew Hodgson <Andrew.Hodgson@allpay.net> wrote:
Hi,
That is possible but is rather an extreme measure. What is the issue you have with the virtual domain support, do they want the same list at both domains?
When I built Mailman 2.1.14 on this Debian system I built it on another system and moved the binaries over and used the default /usr/local/mailman. I used the Debian provided startup scripts and cron definitions, modifying them as appropriate. I have my own Apache virtual host files that I use with specific configuration schemes in mind already. It took around an hour to sort everything out.
Andrew.
-----Original Message----- From: blind-sysadmins-bounces@lists.hodgsonfamily.org [mailto:blind-sysadmins-bounces@lists.hodgsonfamily.org] On Behalf Of David Mehler Sent: 14 December 2010 14:45 To: Blind sysadmins list Subject: Re: [Blind-sysadmins] mailman administrator
Hi, Thanks. I just set up a test list on my domain2.com and although it's working I'm really not liking it and the individuals i'm setting this up for probably won't either. I think i'm going to need a second mailman instance, one specifically for this domain so mails coming from it will be completely separate from domain1.com. Your using v2.1.14 can I run that version compiled from source, say installed in /usr/local while the ubuntu packaged version 2.1.12 is used for domain1? If so what issues am I likely to encounter with this approach? Thanks. Dave.
On 12/14/10, Andrew Hodgson <Andrew.Hodgson@allpay.net> wrote:
Hi,
You can't create a list with the same name in more than one domain. The only way to do this is to have multiple Mailman installations. The mailman case is slightly odd in that it uses mailman@domain1.com and mailman@domain2.com based on the vhost the list is in.
Thanks. Andrew.
-----Original Message----- From: blind-sysadmins-bounces@lists.hodgsonfamily.org [mailto:blind-sysadmins-bounces@lists.hodgsonfamily.org] On Behalf Of David Mehler Sent: 14 December 2010 14:24 To: Blind sysadmins list Subject: Re: [Blind-sysadmins] mailman administrator
Hello,
Still having trouble creating this new list. I'm atempting to create a list called mailman in domain2.com already have one for domain1.com and am being told the list already exists. Either I can't do what i'm atempting to do create a list with the same name in two domains or i've got a syntax or config issue. Thanks. Dave.
On 12/14/10, Andrew Hodgson <Andrew.Hodgson@allpay.net> wrote:
Hi,
Yes. admin@domain2.com can be any external address (probably outside domain2.com is best). Password can be omitted and you will be asked for the password - saves typing the password in on the CLI.
Andrew.
-----Original Message----- From: blind-sysadmins-bounces@lists.hodgsonfamily.org [mailto:blind-sysadmins-bounces@lists.hodgsonfamily.org] On Behalf Of David Mehler Sent: 14 December 2010 01:40 To: Blind sysadmins list Subject: Re: [Blind-sysadmins] mailman administrator
Hi Andrew,
Thanks. Set those options. Will your command now create mailing lists in domain2.com:
Newlist -u lists.domain2.com listname admin@domain2.com password
Thanks a lot! Dave.
On 12/13/10, Andrew Hodgson <andrew@hodgsonfamily.org> wrote:
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
_______________________________________________ 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
_______________________________________________ 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
HI, Thanks for your reply. Can you give me the procedure you followed for a source compile? Thus far i've not been successful. The ubuntu package is working, the second instance compiled from source is not. Thanks. Dave. On 12/15/10, Andrew Hodgson <andrew@hodgsonfamily.org> wrote:
Hi,
Yes I did get the message, sorry for not replying.
I don't really want SSH access to your server, though am happy to help you with the compilation of Mailman on Debian/Ubuntu.
Thanks. Andrew.
-----Original Message----- From: blind-sysadmins-bounces@lists.hodgsonfamily.org [mailto:blind-sysadmins-bounces@lists.hodgsonfamily.org] On Behalf Of David Mehler Sent: 15 December 2010 17:40 To: Blind sysadmins list Subject: Re: [Blind-sysadmins] mailman administrator
Hi Andrew, Wondering if you got my last message on this? Thanks. Dave.
On 12/14/10, David Mehler <dave.mehler@gmail.com> wrote:
Hi, Thank you. I suspect i'm going to need it. I'm looking over the mailman install doc and there are parts of it that are confusing. If your willing to help out write me privately and I can give you an ssh username/password for my server and details. Thanks. Dave.
On 12/14/10, Andrew Hodgson <Andrew.Hodgson@allpay.net> wrote:
Hi,
All the important mailman messages on this system are coming from mailman at the correct domain. If one sends a message to mailman at the correct domain, they will get back messages from the mailman at the first domain, but I can live with that myself. I find the notion of requiring a mailman specific list a bit odd, and hopefully something they may get rid of in a later version.
Let me know if you want any help with compiling 2.1.14 from source.
Thanks. Andrew.
-----Original Message----- From: blind-sysadmins-bounces@lists.hodgsonfamily.org [mailto:blind-sysadmins-bounces@lists.hodgsonfamily.org] On Behalf Of David Mehler Sent: 14 December 2010 16:27 To: Blind sysadmins list Subject: Re: [Blind-sysadmins] mailman administrator
Hi, The issue is a while back a list called list1 was created in domain1 and used. Now they want that same listname list1 created in domain2 but without the list1@domain1's archives or information. For another thing the mailman messages got for domain2 need to come from mailman@lists.domain2.com which at the moment they are not. The apache and postfix are both set they should work, it's a question of the mailman setup. Thanks. Dave.
On 12/14/10, Andrew Hodgson <Andrew.Hodgson@allpay.net> wrote:
Hi,
That is possible but is rather an extreme measure. What is the issue you have with the virtual domain support, do they want the same list at both domains?
When I built Mailman 2.1.14 on this Debian system I built it on another system and moved the binaries over and used the default /usr/local/mailman. I used the Debian provided startup scripts and cron definitions, modifying them as appropriate. I have my own Apache virtual host files that I use with specific configuration schemes in mind already. It took around an hour to sort everything out.
Andrew.
-----Original Message----- From: blind-sysadmins-bounces@lists.hodgsonfamily.org [mailto:blind-sysadmins-bounces@lists.hodgsonfamily.org] On Behalf Of David Mehler Sent: 14 December 2010 14:45 To: Blind sysadmins list Subject: Re: [Blind-sysadmins] mailman administrator
Hi, Thanks. I just set up a test list on my domain2.com and although it's working I'm really not liking it and the individuals i'm setting this up for probably won't either. I think i'm going to need a second mailman instance, one specifically for this domain so mails coming from it will be completely separate from domain1.com. Your using v2.1.14 can I run that version compiled from source, say installed in /usr/local while the ubuntu packaged version 2.1.12 is used for domain1? If so what issues am I likely to encounter with this approach? Thanks. Dave.
On 12/14/10, Andrew Hodgson <Andrew.Hodgson@allpay.net> wrote:
Hi,
You can't create a list with the same name in more than one domain. The only way to do this is to have multiple Mailman installations. The mailman case is slightly odd in that it uses mailman@domain1.com and mailman@domain2.com based on the vhost the list is in.
Thanks. Andrew.
-----Original Message----- From: blind-sysadmins-bounces@lists.hodgsonfamily.org [mailto:blind-sysadmins-bounces@lists.hodgsonfamily.org] On Behalf Of David Mehler Sent: 14 December 2010 14:24 To: Blind sysadmins list Subject: Re: [Blind-sysadmins] mailman administrator
Hello,
Still having trouble creating this new list. I'm atempting to create a list called mailman in domain2.com already have one for domain1.com and am being told the list already exists. Either I can't do what i'm atempting to do create a list with the same name in two domains or i've got a syntax or config issue. Thanks. Dave.
On 12/14/10, Andrew Hodgson <Andrew.Hodgson@allpay.net> wrote:
Hi,
Yes. admin@domain2.com can be any external address (probably outside domain2.com is best). Password can be omitted and you will be asked for the password - saves typing the password in on the CLI.
Andrew.
-----Original Message----- From: blind-sysadmins-bounces@lists.hodgsonfamily.org [mailto:blind-sysadmins-bounces@lists.hodgsonfamily.org] On Behalf Of David Mehler Sent: 14 December 2010 01:40 To: Blind sysadmins list Subject: Re: [Blind-sysadmins] mailman administrator
Hi Andrew,
Thanks. Set those options. Will your command now create mailing lists in domain2.com:
Newlist -u lists.domain2.com listname admin@domain2.com password
Thanks a lot! Dave.
On 12/13/10, Andrew Hodgson <andrew@hodgsonfamily.org> wrote: > 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 > > > > _______________________________________________ > 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
_______________________________________________ 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
I realize you want to do it by source which is cool and all, but I would also recommend installing a system with VirtualMin. It is a free web based control panel that will make all that easier and give you a good accessible interface to manage your server. I used it for several years with no problem. I graduated to cpanel for now. I have also installed it from source with good success in the past. I suggest looking at the Mailman manual directly. I followed it to the "T". And it worked. The thing is you need to know something about your MTA. Postfix is the easiest and best secure way to go! Let me know if I can help. You can always e-mail me off list. Best Regards, Billy L. Irwin Irwin Solutions 207 Strange Ct. Spartanburg, SC 29301 P: 864-551-2501 Spartanburg/GSP Area C: 864-809-9620 Spartanburg, SC WB4BLI Emergency Coordinator - Spartanburg County Area 1 -2 SKYWARN / ADEC Area 2 -----Original Message----- From: blind-sysadmins-bounces@lists.hodgsonfamily.org [mailto:blind-sysadmins-bounces@lists.hodgsonfamily.org] On Behalf Of David Mehler Sent: Thursday, December 16, 2010 9:48 AM To: Blind sysadmins list Subject: Re: [Blind-sysadmins] mailman administrator HI, Thanks for your reply. Can you give me the procedure you followed for a source compile? Thus far i've not been successful. The ubuntu package is working, the second instance compiled from source is not. Thanks. Dave. On 12/15/10, Andrew Hodgson <andrew@hodgsonfamily.org> wrote:
Hi,
Yes I did get the message, sorry for not replying.
I don't really want SSH access to your server, though am happy to help you with the compilation of Mailman on Debian/Ubuntu.
Thanks. Andrew.
-----Original Message----- From: blind-sysadmins-bounces@lists.hodgsonfamily.org [mailto:blind-sysadmins-bounces@lists.hodgsonfamily.org] On Behalf Of David Mehler Sent: 15 December 2010 17:40 To: Blind sysadmins list Subject: Re: [Blind-sysadmins] mailman administrator
Hi Andrew, Wondering if you got my last message on this? Thanks. Dave.
On 12/14/10, David Mehler <dave.mehler@gmail.com> wrote:
Hi, Thank you. I suspect i'm going to need it. I'm looking over the mailman install doc and there are parts of it that are confusing. If your willing to help out write me privately and I can give you an ssh username/password for my server and details. Thanks. Dave.
On 12/14/10, Andrew Hodgson <Andrew.Hodgson@allpay.net> wrote:
Hi,
All the important mailman messages on this system are coming from mailman at the correct domain. If one sends a message to mailman at the correct domain, they will get back messages from the mailman at the first domain, but I can live with that myself. I find the notion of requiring a mailman specific list a bit odd, and hopefully something they may get rid of in a later version.
Let me know if you want any help with compiling 2.1.14 from source.
Thanks. Andrew.
-----Original Message----- From: blind-sysadmins-bounces@lists.hodgsonfamily.org [mailto:blind-sysadmins-bounces@lists.hodgsonfamily.org] On Behalf Of David Mehler Sent: 14 December 2010 16:27 To: Blind sysadmins list Subject: Re: [Blind-sysadmins] mailman administrator
Hi, The issue is a while back a list called list1 was created in domain1 and used. Now they want that same listname list1 created in domain2 but without the list1@domain1's archives or information. For another thing the mailman messages got for domain2 need to come from mailman@lists.domain2.com which at the moment they are not. The apache and postfix are both set they should work, it's a question of the mailman setup. Thanks. Dave.
On 12/14/10, Andrew Hodgson <Andrew.Hodgson@allpay.net> wrote:
Hi,
That is possible but is rather an extreme measure. What is the issue you have with the virtual domain support, do they want the same list at both domains?
When I built Mailman 2.1.14 on this Debian system I built it on another system and moved the binaries over and used the default /usr/local/mailman. I used the Debian provided startup scripts and cron definitions, modifying them as appropriate. I have my own Apache virtual host files that I use with specific configuration schemes in mind already. It took around an hour to sort everything out.
Andrew.
-----Original Message----- From: blind-sysadmins-bounces@lists.hodgsonfamily.org [mailto:blind-sysadmins-bounces@lists.hodgsonfamily.org] On Behalf Of David Mehler Sent: 14 December 2010 14:45 To: Blind sysadmins list Subject: Re: [Blind-sysadmins] mailman administrator
Hi, Thanks. I just set up a test list on my domain2.com and although it's working I'm really not liking it and the individuals i'm setting this up for probably won't either. I think i'm going to need a second mailman instance, one specifically for this domain so mails coming from it will be completely separate from domain1.com. Your using v2.1.14 can I run that version compiled from source, say installed in /usr/local while the ubuntu packaged version 2.1.12 is used for domain1? If so what issues am I likely to encounter with this approach? Thanks. Dave.
On 12/14/10, Andrew Hodgson <Andrew.Hodgson@allpay.net> wrote:
Hi,
You can't create a list with the same name in more than one domain. The only way to do this is to have multiple Mailman installations. The mailman case is slightly odd in that it uses mailman@domain1.com and mailman@domain2.com based on the vhost the list is in.
Thanks. Andrew.
-----Original Message----- From: blind-sysadmins-bounces@lists.hodgsonfamily.org [mailto:blind-sysadmins-bounces@lists.hodgsonfamily.org] On Behalf Of David Mehler Sent: 14 December 2010 14:24 To: Blind sysadmins list Subject: Re: [Blind-sysadmins] mailman administrator
Hello,
Still having trouble creating this new list. I'm atempting to create a list called mailman in domain2.com already have one for domain1.com and am being told the list already exists. Either I can't do what i'm atempting to do create a list with the same name in two domains or i've got a syntax or config issue. Thanks. Dave.
On 12/14/10, Andrew Hodgson <Andrew.Hodgson@allpay.net> wrote:
Hi,
Yes. admin@domain2.com can be any external address (probably outside domain2.com is best). Password can be omitted and you will be asked for the password - saves typing the password in on the CLI.
Andrew.
-----Original Message----- From: blind-sysadmins-bounces@lists.hodgsonfamily.org [mailto:blind-sysadmins-bounces@lists.hodgsonfamily.org] On Behalf Of David Mehler Sent: 14 December 2010 01:40 To: Blind sysadmins list Subject: Re: [Blind-sysadmins] mailman administrator
Hi Andrew,
Thanks. Set those options. Will your command now create mailing lists in domain2.com:
Newlist -u lists.domain2.com listname admin@domain2.com password
Thanks a lot! Dave.
On 12/13/10, Andrew Hodgson <andrew@hodgsonfamily.org> wrote: > 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 > > > > _______________________________________________ > 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
_______________________________________________ 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
Hi, The parameters I passed to the configure script were as follows on the Debian system: ./configure --with-username=list --with-groupname=list --with-mail-gid=daemon --with-cgi-gid=www-data --with-mailhost=lists.hodgsonfamily.org --with-urlhost=lists.hodgsonfamily.org The Mail GID needs to be set right, in Postfix on Debian it may run under another GID, check this. Obviously set the domains differently for the default URL/email hosts. That will compile in /usr/local/mailman. I have Vhost directives, cron entries, a init script and a logrotate script if you are interested which I did for this installation. Thanks. Andrew. -----Original Message----- From: blind-sysadmins-bounces@lists.hodgsonfamily.org [mailto:blind-sysadmins-bounces@lists.hodgsonfamily.org] On Behalf Of David Mehler Sent: 16 December 2010 14:48 To: Blind sysadmins list Subject: Re: [Blind-sysadmins] mailman administrator HI, Thanks for your reply. Can you give me the procedure you followed for a source compile? Thus far i've not been successful. The ubuntu package is working, the second instance compiled from source is not. Thanks. Dave. On 12/15/10, Andrew Hodgson <andrew@hodgsonfamily.org> wrote:
Hi,
Yes I did get the message, sorry for not replying.
I don't really want SSH access to your server, though am happy to help you with the compilation of Mailman on Debian/Ubuntu.
Thanks. Andrew.
-----Original Message----- From: blind-sysadmins-bounces@lists.hodgsonfamily.org [mailto:blind-sysadmins-bounces@lists.hodgsonfamily.org] On Behalf Of David Mehler Sent: 15 December 2010 17:40 To: Blind sysadmins list Subject: Re: [Blind-sysadmins] mailman administrator
Hi Andrew, Wondering if you got my last message on this? Thanks. Dave.
On 12/14/10, David Mehler <dave.mehler@gmail.com> wrote:
Hi, Thank you. I suspect i'm going to need it. I'm looking over the mailman install doc and there are parts of it that are confusing. If your willing to help out write me privately and I can give you an ssh username/password for my server and details. Thanks. Dave.
On 12/14/10, Andrew Hodgson <Andrew.Hodgson@allpay.net> wrote:
Hi,
All the important mailman messages on this system are coming from mailman at the correct domain. If one sends a message to mailman at the correct domain, they will get back messages from the mailman at the first domain, but I can live with that myself. I find the notion of requiring a mailman specific list a bit odd, and hopefully something they may get rid of in a later version.
Let me know if you want any help with compiling 2.1.14 from source.
Thanks. Andrew.
-----Original Message----- From: blind-sysadmins-bounces@lists.hodgsonfamily.org [mailto:blind-sysadmins-bounces@lists.hodgsonfamily.org] On Behalf Of David Mehler Sent: 14 December 2010 16:27 To: Blind sysadmins list Subject: Re: [Blind-sysadmins] mailman administrator
Hi, The issue is a while back a list called list1 was created in domain1 and used. Now they want that same listname list1 created in domain2 but without the list1@domain1's archives or information. For another thing the mailman messages got for domain2 need to come from mailman@lists.domain2.com which at the moment they are not. The apache and postfix are both set they should work, it's a question of the mailman setup. Thanks. Dave.
On 12/14/10, Andrew Hodgson <Andrew.Hodgson@allpay.net> wrote:
Hi,
That is possible but is rather an extreme measure. What is the issue you have with the virtual domain support, do they want the same list at both domains?
When I built Mailman 2.1.14 on this Debian system I built it on another system and moved the binaries over and used the default /usr/local/mailman. I used the Debian provided startup scripts and cron definitions, modifying them as appropriate. I have my own Apache virtual host files that I use with specific configuration schemes in mind already. It took around an hour to sort everything out.
Andrew.
-----Original Message----- From: blind-sysadmins-bounces@lists.hodgsonfamily.org [mailto:blind-sysadmins-bounces@lists.hodgsonfamily.org] On Behalf Of David Mehler Sent: 14 December 2010 14:45 To: Blind sysadmins list Subject: Re: [Blind-sysadmins] mailman administrator
Hi, Thanks. I just set up a test list on my domain2.com and although it's working I'm really not liking it and the individuals i'm setting this up for probably won't either. I think i'm going to need a second mailman instance, one specifically for this domain so mails coming from it will be completely separate from domain1.com. Your using v2.1.14 can I run that version compiled from source, say installed in /usr/local while the ubuntu packaged version 2.1.12 is used for domain1? If so what issues am I likely to encounter with this approach? Thanks. Dave.
On 12/14/10, Andrew Hodgson <Andrew.Hodgson@allpay.net> wrote:
Hi,
You can't create a list with the same name in more than one domain. The only way to do this is to have multiple Mailman installations. The mailman case is slightly odd in that it uses mailman@domain1.com and mailman@domain2.com based on the vhost the list is in.
Thanks. Andrew.
-----Original Message----- From: blind-sysadmins-bounces@lists.hodgsonfamily.org [mailto:blind-sysadmins-bounces@lists.hodgsonfamily.org] On Behalf Of David Mehler Sent: 14 December 2010 14:24 To: Blind sysadmins list Subject: Re: [Blind-sysadmins] mailman administrator
Hello,
Still having trouble creating this new list. I'm atempting to create a list called mailman in domain2.com already have one for domain1.com and am being told the list already exists. Either I can't do what i'm atempting to do create a list with the same name in two domains or i've got a syntax or config issue. Thanks. Dave.
On 12/14/10, Andrew Hodgson <Andrew.Hodgson@allpay.net> wrote:
Hi,
Yes. admin@domain2.com can be any external address (probably outside domain2.com is best). Password can be omitted and you will be asked for the password - saves typing the password in on the CLI.
Andrew.
-----Original Message----- From: blind-sysadmins-bounces@lists.hodgsonfamily.org [mailto:blind-sysadmins-bounces@lists.hodgsonfamily.org] On Behalf Of David Mehler Sent: 14 December 2010 01:40 To: Blind sysadmins list Subject: Re: [Blind-sysadmins] mailman administrator
Hi Andrew,
Thanks. Set those options. Will your command now create mailing lists in domain2.com:
Newlist -u lists.domain2.com listname admin@domain2.com password
Thanks a lot! Dave.
On 12/13/10, Andrew Hodgson <andrew@hodgsonfamily.org> wrote: > 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 > > > > _______________________________________________ > 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
_______________________________________________ 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
Hi,
Yes I did get the message, sorry for not replying.
I don't really want SSH access to your server, though am happy to help you with the compilation of Mailman on Debian/Ubuntu.
Thanks. Andrew.
-----Original Message----- From: blind-sysadmins-bounces@lists.hodgsonfamily.org [mailto:blind-sysadmins-bounces@lists.hodgsonfamily.org] On Behalf Of David Mehler Sent: 15 December 2010 17:40 To: Blind sysadmins list Subject: Re: [Blind-sysadmins] mailman administrator
Hi Andrew, Wondering if you got my last message on this? Thanks. Dave.
On 12/14/10, David Mehler <dave.mehler@gmail.com> wrote:
Hi, Thank you. I suspect i'm going to need it. I'm looking over the mailman install doc and there are parts of it that are confusing. If your willing to help out write me privately and I can give you an ssh username/password for my server and details. Thanks. Dave.
On 12/14/10, Andrew Hodgson <Andrew.Hodgson@allpay.net> wrote:
Hi,
All the important mailman messages on this system are coming from mailman at the correct domain. If one sends a message to mailman at the correct domain, they will get back messages from the mailman at the first domain, but I can live with that myself. I find the notion of requiring a mailman specific list a bit odd, and hopefully something they may get rid of in a later version.
Let me know if you want any help with compiling 2.1.14 from source.
Thanks. Andrew.
-----Original Message----- From: blind-sysadmins-bounces@lists.hodgsonfamily.org [mailto:blind-sysadmins-bounces@lists.hodgsonfamily.org] On Behalf Of David Mehler Sent: 14 December 2010 16:27 To: Blind sysadmins list Subject: Re: [Blind-sysadmins] mailman administrator
Hi, The issue is a while back a list called list1 was created in domain1 and used. Now they want that same listname list1 created in domain2 but without the list1@domain1's archives or information. For another thing the mailman messages got for domain2 need to come from mailman@lists.domain2.com which at the moment they are not. The apache and postfix are both set they should work, it's a question of the mailman setup. Thanks. Dave.
On 12/14/10, Andrew Hodgson <Andrew.Hodgson@allpay.net> wrote:
Hi,
That is possible but is rather an extreme measure. What is the issue you have with the virtual domain support, do they want the same list at both domains?
When I built Mailman 2.1.14 on this Debian system I built it on another system and moved the binaries over and used the default /usr/local/mailman. I used the Debian provided startup scripts and cron definitions, modifying them as appropriate. I have my own Apache virtual host files that I use with specific configuration schemes in mind already. It took around an hour to sort everything out.
Andrew.
-----Original Message----- From: blind-sysadmins-bounces@lists.hodgsonfamily.org [mailto:blind-sysadmins-bounces@lists.hodgsonfamily.org] On Behalf Of David Mehler Sent: 14 December 2010 14:45 To: Blind sysadmins list Subject: Re: [Blind-sysadmins] mailman administrator
Hi, Thanks. I just set up a test list on my domain2.com and although it's working I'm really not liking it and the individuals i'm setting this up for probably won't either. I think i'm going to need a second mailman instance, one specifically for this domain so mails coming from it will be completely separate from domain1.com. Your using v2.1.14 can I run that version compiled from source, say installed in /usr/local while the ubuntu packaged version 2.1.12 is used for domain1? If so what issues am I likely to encounter with this approach? Thanks. Dave.
On 12/14/10, Andrew Hodgson <Andrew.Hodgson@allpay.net> wrote:
Hi,
You can't create a list with the same name in more than one domain. The only way to do this is to have multiple Mailman installations. The mailman case is slightly odd in that it uses mailman@domain1.com and mailman@domain2.com based on the vhost the
Hi Andrew, Could you unsubscribe me from this list please? Brian. -----Original Message----- From: blind-sysadmins-bounces@lists.hodgsonfamily.org [mailto:blind-sysadmins-bounces@lists.hodgsonfamily.org] On Behalf Of Andrew Hodgson Sent: 16 December 2010 17:56 To: Blind sysadmins list Subject: Re: [Blind-sysadmins] mailman administrator Hi, The parameters I passed to the configure script were as follows on the Debian system: ./configure --with-username=list --with-groupname=list --with-mail-gid=daemon --with-cgi-gid=www-data --with-mailhost=lists.hodgsonfamily.org --with-urlhost=lists.hodgsonfamily.org The Mail GID needs to be set right, in Postfix on Debian it may run under another GID, check this. Obviously set the domains differently for the default URL/email hosts. That will compile in /usr/local/mailman. I have Vhost directives, cron entries, a init script and a logrotate script if you are interested which I did for this installation. Thanks. Andrew. -----Original Message----- From: blind-sysadmins-bounces@lists.hodgsonfamily.org [mailto:blind-sysadmins-bounces@lists.hodgsonfamily.org] On Behalf Of David Mehler Sent: 16 December 2010 14:48 To: Blind sysadmins list Subject: Re: [Blind-sysadmins] mailman administrator HI, Thanks for your reply. Can you give me the procedure you followed for a source compile? Thus far i've not been successful. The ubuntu package is working, the second instance compiled from source is not. Thanks. Dave. On 12/15/10, Andrew Hodgson <andrew@hodgsonfamily.org> wrote: list is in.
Thanks. Andrew.
-----Original Message----- From: blind-sysadmins-bounces@lists.hodgsonfamily.org [mailto:blind-sysadmins-bounces@lists.hodgsonfamily.org] On Behalf Of David Mehler Sent: 14 December 2010 14:24 To: Blind sysadmins list Subject: Re: [Blind-sysadmins] mailman administrator
Hello,
Still having trouble creating this new list. I'm atempting to create a list called mailman in domain2.com already have one for domain1.com and am being told the list already exists. Either I can't do what i'm atempting to do create a list with the same name in two domains or i've got a syntax or config issue. Thanks. Dave.
On 12/14/10, Andrew Hodgson <Andrew.Hodgson@allpay.net> wrote:
Hi,
Yes. admin@domain2.com can be any external address (probably outside domain2.com is best). Password can be omitted and you will be asked for the password - saves typing the password in on the CLI.
Andrew.
-----Original Message----- From: blind-sysadmins-bounces@lists.hodgsonfamily.org [mailto:blind-sysadmins-bounces@lists.hodgsonfamily.org] On Behalf Of David Mehler Sent: 14 December 2010 01:40 To: Blind sysadmins list Subject: Re: [Blind-sysadmins] mailman administrator
Hi Andrew,
Thanks. Set those options. Will your command now create mailing lists in domain2.com:
Newlist -u lists.domain2.com listname admin@domain2.com password
Thanks a lot! Dave.
On 12/13/10, Andrew Hodgson <andrew@hodgsonfamily.org> wrote: > 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 > > > > _______________________________________________ > 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
_______________________________________________ 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 _______________________________________________ Blind-sysadmins mailing list Blind-sysadmins@lists.hodgsonfamily.org http://lists.hodgsonfamily.org/listinfo/blind-sysadmins
Hi Andrew, Thanks. Offlist can you send me your Vhost directives, cron script, init script, and logrotate script? I'd like to make sure i'm on the right track. Thanks. Dave. On 12/16/10, Brian Dalton <brian_dalton@eircom.net> wrote:
Hi Andrew,
Could you unsubscribe me from this list please?
Brian.
-----Original Message----- From: blind-sysadmins-bounces@lists.hodgsonfamily.org [mailto:blind-sysadmins-bounces@lists.hodgsonfamily.org] On Behalf Of Andrew Hodgson Sent: 16 December 2010 17:56 To: Blind sysadmins list Subject: Re: [Blind-sysadmins] mailman administrator
Hi,
The parameters I passed to the configure script were as follows on the Debian system:
./configure --with-username=list --with-groupname=list --with-mail-gid=daemon --with-cgi-gid=www-data --with-mailhost=lists.hodgsonfamily.org --with-urlhost=lists.hodgsonfamily.org
The Mail GID needs to be set right, in Postfix on Debian it may run under another GID, check this. Obviously set the domains differently for the default URL/email hosts.
That will compile in /usr/local/mailman. I have Vhost directives, cron entries, a init script and a logrotate script if you are interested which I did for this installation.
Thanks. Andrew.
-----Original Message----- From: blind-sysadmins-bounces@lists.hodgsonfamily.org [mailto:blind-sysadmins-bounces@lists.hodgsonfamily.org] On Behalf Of David Mehler Sent: 16 December 2010 14:48 To: Blind sysadmins list Subject: Re: [Blind-sysadmins] mailman administrator
HI, Thanks for your reply. Can you give me the procedure you followed for a source compile? Thus far i've not been successful. The ubuntu package is working, the second instance compiled from source is not. Thanks. Dave.
Hi,
Yes I did get the message, sorry for not replying.
I don't really want SSH access to your server, though am happy to help you with the compilation of Mailman on Debian/Ubuntu.
Thanks. Andrew.
-----Original Message----- From: blind-sysadmins-bounces@lists.hodgsonfamily.org [mailto:blind-sysadmins-bounces@lists.hodgsonfamily.org] On Behalf Of David Mehler Sent: 15 December 2010 17:40 To: Blind sysadmins list Subject: Re: [Blind-sysadmins] mailman administrator
Hi Andrew, Wondering if you got my last message on this? Thanks. Dave.
On 12/14/10, David Mehler <dave.mehler@gmail.com> wrote:
Hi, Thank you. I suspect i'm going to need it. I'm looking over the mailman install doc and there are parts of it that are confusing. If your willing to help out write me privately and I can give you an ssh username/password for my server and details. Thanks. Dave.
On 12/14/10, Andrew Hodgson <Andrew.Hodgson@allpay.net> wrote:
Hi,
All the important mailman messages on this system are coming from mailman at the correct domain. If one sends a message to mailman at the correct domain, they will get back messages from the mailman at the first domain, but I can live with that myself. I find the notion of requiring a mailman specific list a bit odd, and hopefully something they may get rid of in a later version.
Let me know if you want any help with compiling 2.1.14 from source.
Thanks. Andrew.
-----Original Message----- From: blind-sysadmins-bounces@lists.hodgsonfamily.org [mailto:blind-sysadmins-bounces@lists.hodgsonfamily.org] On Behalf Of David Mehler Sent: 14 December 2010 16:27 To: Blind sysadmins list Subject: Re: [Blind-sysadmins] mailman administrator
Hi, The issue is a while back a list called list1 was created in domain1 and used. Now they want that same listname list1 created in domain2 but without the list1@domain1's archives or information. For another thing the mailman messages got for domain2 need to come from mailman@lists.domain2.com which at the moment they are not. The apache and postfix are both set they should work, it's a question of the mailman setup. Thanks. Dave.
On 12/14/10, Andrew Hodgson <Andrew.Hodgson@allpay.net> wrote:
Hi,
That is possible but is rather an extreme measure. What is the issue you have with the virtual domain support, do they want the same list at both domains?
When I built Mailman 2.1.14 on this Debian system I built it on another system and moved the binaries over and used the default /usr/local/mailman. I used the Debian provided startup scripts and cron definitions, modifying them as appropriate. I have my own Apache virtual host files that I use with specific configuration schemes in mind already. It took around an hour to sort everything out.
Andrew.
-----Original Message----- From: blind-sysadmins-bounces@lists.hodgsonfamily.org [mailto:blind-sysadmins-bounces@lists.hodgsonfamily.org] On Behalf Of David Mehler Sent: 14 December 2010 14:45 To: Blind sysadmins list Subject: Re: [Blind-sysadmins] mailman administrator
Hi, Thanks. I just set up a test list on my domain2.com and although it's working I'm really not liking it and the individuals i'm setting this up for probably won't either. I think i'm going to need a second mailman instance, one specifically for this domain so mails coming from it will be completely separate from domain1.com. Your using v2.1.14 can I run that version compiled from source, say installed in /usr/local while the ubuntu packaged version 2.1.12 is used for domain1? If so what issues am I likely to encounter with this approach? Thanks. Dave.
On 12/14/10, Andrew Hodgson <Andrew.Hodgson@allpay.net> wrote:
Hi,
You can't create a list with the same name in more than one domain. The only way to do this is to have multiple Mailman installations. The mailman case is slightly odd in that it uses mailman@domain1.com and mailman@domain2.com based on the vhost the
On 12/15/10, Andrew Hodgson <andrew@hodgsonfamily.org> wrote: list is in.
Thanks. Andrew.
-----Original Message----- From: blind-sysadmins-bounces@lists.hodgsonfamily.org [mailto:blind-sysadmins-bounces@lists.hodgsonfamily.org] On Behalf Of David Mehler Sent: 14 December 2010 14:24 To: Blind sysadmins list Subject: Re: [Blind-sysadmins] mailman administrator
Hello,
Still having trouble creating this new list. I'm atempting to create a list called mailman in domain2.com already have one for domain1.com and am being told the list already exists. Either I can't do what i'm atempting to do create a list with the same name in two domains or i've got a syntax or config issue. Thanks. Dave.
On 12/14/10, Andrew Hodgson <Andrew.Hodgson@allpay.net> wrote: > Hi, > > Yes. admin@domain2.com can be any external address (probably > outside domain2.com is best). Password can be omitted and you > will be asked for the password - saves typing the password in on > the CLI. > > Andrew. > > -----Original Message----- > From: blind-sysadmins-bounces@lists.hodgsonfamily.org > [mailto:blind-sysadmins-bounces@lists.hodgsonfamily.org] On > Behalf Of David Mehler > Sent: 14 December 2010 01:40 > To: Blind sysadmins list > Subject: Re: [Blind-sysadmins] mailman administrator > > Hi Andrew, > > Thanks. Set those options. Will your command now create mailing > lists in domain2.com: > > Newlist -u lists.domain2.com listname admin@domain2.com password > > Thanks a lot! > Dave. > > > On 12/13/10, Andrew Hodgson <andrew@hodgsonfamily.org> wrote: >> 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 >> >> >> >> _______________________________________________ >> 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
_______________________________________________ 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
_______________________________________________ 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
Hi Andrew, Wondering if you got my last message? I didn't see it go through? If not, can you send me your vhost, cron, log rotation, and startup scripts for your source compiled mailman? Those are the last pieces I'm needing. Thanks. Dave. On 12/16/10, David Mehler <dave.mehler@gmail.com> wrote:
Hi Andrew,
Thanks. Offlist can you send me your Vhost directives, cron script, init script, and logrotate script? I'd like to make sure i'm on the right track. Thanks. Dave.
On 12/16/10, Brian Dalton <brian_dalton@eircom.net> wrote:
Hi Andrew,
Could you unsubscribe me from this list please?
Brian.
-----Original Message----- From: blind-sysadmins-bounces@lists.hodgsonfamily.org [mailto:blind-sysadmins-bounces@lists.hodgsonfamily.org] On Behalf Of Andrew Hodgson Sent: 16 December 2010 17:56 To: Blind sysadmins list Subject: Re: [Blind-sysadmins] mailman administrator
Hi,
The parameters I passed to the configure script were as follows on the Debian system:
./configure --with-username=list --with-groupname=list --with-mail-gid=daemon --with-cgi-gid=www-data --with-mailhost=lists.hodgsonfamily.org --with-urlhost=lists.hodgsonfamily.org
The Mail GID needs to be set right, in Postfix on Debian it may run under another GID, check this. Obviously set the domains differently for the default URL/email hosts.
That will compile in /usr/local/mailman. I have Vhost directives, cron entries, a init script and a logrotate script if you are interested which I did for this installation.
Thanks. Andrew.
-----Original Message----- From: blind-sysadmins-bounces@lists.hodgsonfamily.org [mailto:blind-sysadmins-bounces@lists.hodgsonfamily.org] On Behalf Of David Mehler Sent: 16 December 2010 14:48 To: Blind sysadmins list Subject: Re: [Blind-sysadmins] mailman administrator
HI, Thanks for your reply. Can you give me the procedure you followed for a source compile? Thus far i've not been successful. The ubuntu package is working, the second instance compiled from source is not. Thanks. Dave.
Hi,
Yes I did get the message, sorry for not replying.
I don't really want SSH access to your server, though am happy to help you with the compilation of Mailman on Debian/Ubuntu.
Thanks. Andrew.
-----Original Message----- From: blind-sysadmins-bounces@lists.hodgsonfamily.org [mailto:blind-sysadmins-bounces@lists.hodgsonfamily.org] On Behalf Of David Mehler Sent: 15 December 2010 17:40 To: Blind sysadmins list Subject: Re: [Blind-sysadmins] mailman administrator
Hi Andrew, Wondering if you got my last message on this? Thanks. Dave.
On 12/14/10, David Mehler <dave.mehler@gmail.com> wrote:
Hi, Thank you. I suspect i'm going to need it. I'm looking over the mailman install doc and there are parts of it that are confusing. If your willing to help out write me privately and I can give you an ssh username/password for my server and details. Thanks. Dave.
On 12/14/10, Andrew Hodgson <Andrew.Hodgson@allpay.net> wrote:
Hi,
All the important mailman messages on this system are coming from mailman at the correct domain. If one sends a message to mailman at the correct domain, they will get back messages from the mailman at the first domain, but I can live with that myself. I find the notion of requiring a mailman specific list a bit odd, and hopefully something they may get rid of in a later version.
Let me know if you want any help with compiling 2.1.14 from source.
Thanks. Andrew.
-----Original Message----- From: blind-sysadmins-bounces@lists.hodgsonfamily.org [mailto:blind-sysadmins-bounces@lists.hodgsonfamily.org] On Behalf Of David Mehler Sent: 14 December 2010 16:27 To: Blind sysadmins list Subject: Re: [Blind-sysadmins] mailman administrator
Hi, The issue is a while back a list called list1 was created in domain1 and used. Now they want that same listname list1 created in domain2 but without the list1@domain1's archives or information. For another thing the mailman messages got for domain2 need to come from mailman@lists.domain2.com which at the moment they are not. The apache and postfix are both set they should work, it's a question of the mailman setup. Thanks. Dave.
On 12/14/10, Andrew Hodgson <Andrew.Hodgson@allpay.net> wrote:
Hi,
That is possible but is rather an extreme measure. What is the issue you have with the virtual domain support, do they want the same list at both domains?
When I built Mailman 2.1.14 on this Debian system I built it on another system and moved the binaries over and used the default /usr/local/mailman. I used the Debian provided startup scripts and cron definitions, modifying them as appropriate. I have my own Apache virtual host files that I use with specific configuration schemes in mind already. It took around an hour to sort everything out.
Andrew.
-----Original Message----- From: blind-sysadmins-bounces@lists.hodgsonfamily.org [mailto:blind-sysadmins-bounces@lists.hodgsonfamily.org] On Behalf Of David Mehler Sent: 14 December 2010 14:45 To: Blind sysadmins list Subject: Re: [Blind-sysadmins] mailman administrator
Hi, Thanks. I just set up a test list on my domain2.com and although it's working I'm really not liking it and the individuals i'm setting this up for probably won't either. I think i'm going to need a second mailman instance, one specifically for this domain so mails coming from it will be completely separate from domain1.com. Your using v2.1.14 can I run that version compiled from source, say installed in /usr/local while the ubuntu packaged version 2.1.12 is used for domain1? If so what issues am I likely to encounter with this approach? Thanks. Dave.
On 12/14/10, Andrew Hodgson <Andrew.Hodgson@allpay.net> wrote: > Hi, > > You can't create a list with the same name in more than one domain. > The > only way to do this is to have multiple Mailman installations. > The mailman case is slightly odd in that it uses > mailman@domain1.com and mailman@domain2.com based on the vhost the
On 12/15/10, Andrew Hodgson <andrew@hodgsonfamily.org> wrote: list is in.
> > Thanks. > Andrew. > > -----Original Message----- > From: blind-sysadmins-bounces@lists.hodgsonfamily.org > [mailto:blind-sysadmins-bounces@lists.hodgsonfamily.org] On Behalf > Of David Mehler > Sent: 14 December 2010 14:24 > To: Blind sysadmins list > Subject: Re: [Blind-sysadmins] mailman administrator > > Hello, > > Still having trouble creating this new list. I'm atempting to > create a list called mailman in domain2.com already have one for > domain1.com and am being told the list already exists. Either I > can't do what i'm atempting to do create a list with the same name > in two domains or i've got a syntax or config issue. > Thanks. > Dave. > > > On 12/14/10, Andrew Hodgson <Andrew.Hodgson@allpay.net> wrote: >> Hi, >> >> Yes. admin@domain2.com can be any external address (probably >> outside domain2.com is best). Password can be omitted and you >> will be asked for the password - saves typing the password in on >> the CLI. >> >> Andrew. >> >> -----Original Message----- >> From: blind-sysadmins-bounces@lists.hodgsonfamily.org >> [mailto:blind-sysadmins-bounces@lists.hodgsonfamily.org] On >> Behalf Of David Mehler >> Sent: 14 December 2010 01:40 >> To: Blind sysadmins list >> Subject: Re: [Blind-sysadmins] mailman administrator >> >> Hi Andrew, >> >> Thanks. Set those options. Will your command now create mailing >> lists in domain2.com: >> >> Newlist -u lists.domain2.com listname admin@domain2.com password >> >> Thanks a lot! >> Dave. >> >> >> On 12/13/10, Andrew Hodgson <andrew@hodgsonfamily.org> wrote: >>> 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 >>> >>> >>> >>> _______________________________________________ >>> 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
_______________________________________________ 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
_______________________________________________ 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
Hi, I did get the message, have been busy all day. This is the Cron script I use in /etc/cron.d/mailman: # At 8AM every day, mail reminders to admins as to pending requests. # They are less likely to ignore these reminders if they're mailed # early in the morning, but of course, this is local time... ;) 0 8 * * * list [ -x /usr/local/mailman/cron/checkdbs ] && /usr/local/mailman/cron/checkdbs # # At 9AM, send notifications to disabled members that are due to be # reminded to re-enable their accounts. 0 9 * * * list [ -x /usr/local/mailman/cron/disabled ] && /usr/local/mailman/cron/disabled # # Noon, mail digests for lists that do periodic as well as threshold delivery. 0 12 * * * list [ -x /usr/local/mailman/cron/senddigests ] && /usr/local/mailman/cron/senddigests # # 5 AM on the first of each month, mail out password reminders. 0 5 1 * * list [ -x /usr/local/mailman/cron/mailpasswds ] && /usr/local/mailman/cron/mailpasswds # # Every 5 mins, try to gate news to mail. You can comment this one out # if you don't want to allow gating, or don't have any going on right now, # or want to exclusively use a callback strategy instead of polling. # */5 * * * * list [ -x /usr/local/mailman/cron/gate_news ] && /usr/local/mailman/cron/gate_news # # At 3:27am every night, regenerate the gzip'd archive file. Only # turn this on if the internal archiver is used and # GZIP_ARCHIVE_TXT_FILES is false in mm_cfg.py 27 3 * * * list [ -x /usr/local/mailman/cron/nightly_gzip ] && /usr/local/mailman/cron/nightly_gzip Here is my init script in /etc/init.d/mailman: #! /bin/sh # # mailman starts up the master queue runner for mailman # # Based on skeleton originally by Miquel van Smoorenburg and Ian Murdock, # customisations by Tollef Fog Heen and Thijs Kinkhorst for Debian. # Customised for stock Mailman installation by Andrew Hodgson 12/06/2010 # ### BEGIN INIT INFO # Provides: mailman-qrunner # Required-Start: $syslog $local_fs $remote_fs $named $network # Required-Stop: $syslog $local_fs $remote_fs $named $network # Should-Start: # Should-Stop: # Default-Start: 2 3 4 5 # Default-Stop: 1 # Short-Description: Mailman Master Queue Runner # Description: Starts and stops the Mailman queue runners, used to # manage the various message queues within the Mailman # mailing list manager. ### END INIT INFO PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin DAEMON=/usr/local/mailman/bin/mailmanctl PIDFILE=/usr/local/mailman/data/master-qrunner.pid test -x $DAEMON || exit 0 set -e #if ! [ -d /var/run/mailman ]; then # install -d -o list -g list /var/run/mailman #fi #if ! [ -d /var/lock/mailman ]; then # install -d -o root -g list -m 2775 /var/lock/mailman #fi . /lib/lsb/init-functions # In rare upgrading cycles python might not be available at some point. # Do not break the upgrade in that case. if ! [ -x /usr/bin/python ]; then log_warning_msg "Python interpreter not available, exiting." exit 0; fi case "$1" in start) SITE_LIST=$( sed -rne "s/^[[:space:]]*MAILMAN_SITE_LIST[[:space:]]*=[[:space:]]*(['\"])([^'\"]+)\\1/\\2/p" /usr/local/mailman/Mailman/mm_cfg.py ) [ -n "$SITE_LIST" ] || SITE_LIST='mailman' if ! /usr/local/mailman/bin/list_lists -b | grep -q "^${SITE_LIST}$"; then log_warning_msg "Site list for mailman missing (looking for list named '${SITE_LIST}')." log_warning_msg "Please create it; until then, mailman will refuse to start." exit 0; fi log_daemon_msg "Starting Mailman master qrunner" "mailmanctl" if $DAEMON -s -q start; then log_end_msg 0 else log_end_msg 1 fi ;; stop) log_daemon_msg "Stopping Mailman master qrunner" "mailmanctl" if $DAEMON -q stop; then rm -f $PIDFILE log_end_msg 0 else log_end_msg 1 fi ;; reload) log_begin_msg "Reloading Mailman master qrunner configuration" if $DAEMON -q restart; then log_end_msg 0 else log_end_msg 1 fi ;; restart|force-reload) PID=`cat $PIDFILE 2>/dev/null` || true log_daemon_msg "Restarting Mailman master qrunner" "mailmanctl" $DAEMON -q stop if test -n "$PID" && kill -0 $PID 2>/dev/null ; then log_action_begin_msg "Waiting" for cnt in `seq 1 5`; do sleep 1 kill -0 $PID 2>/dev/null || break done; if kill -0 $PID 2>/dev/null ; then log_action_end_msg 1 else log_action_end_msg 0 fi fi if $DAEMON -q start; then log_end_msg 0 else log_end_msg 1 fi ;; *) echo "Usage: /etc/init.d/mailman {start|stop|restart|reload|force-reload}" >&2 exit 1 ;; esac exit 0 Here is the logrotate script in /etc/logrotate.d/mailman: /usr/local/mailman/logs/vette /usr/local/mailman/logs/error /usr/local/mailman/logs/bounce { weekly missingok create 0664 list list rotate 4 compress delaycompress sharedscripts postrotate [ -f '/usr/local/mailman/data/master-qrunner.pid' ] && /usr/local/mailman/bin/mailmanctl -q reopen || exit 0 endscript } /usr/local/mailman/logs/mischief { monthly missingok create 0664 list www-data rotate 4 compress delaycompress sharedscripts postrotate [ -f '/usr/local/mailman/data/master-qrunner.pid' ] && /usr/local/mailman/bin/mailmanctl -q reopen || exit 0 endscript } /usr/local/mailman/logs/digest { monthly missingok create 0664 list list rotate 4 compress delaycompress sharedscripts postrotate [ -f '/usr/local/mailman/data/master-qrunner.pid' ] && /usr/local/mailman/bin/mailmanctl -q reopen || exit 0 endscript } /usr/local/mailman/logs/subscribe /usr/local/mailman/logs/post { monthly missingok create 0664 list list rotate 12 compress delaycompress sharedscripts postrotate [ -f '/usr/local/mailman/data/master-qrunner.pid' ] && /usr/local/mailman/bin/mailmanctl -q reopen || exit 0 endscript } /usr/local/mailman/logs/qrunner /usr/local/mailman/logs/fromusenet /usr/local/mailman/logs/locks /usr/local/mailman/logs/smtp /usr/local/mailman/logs/smtp-failure { daily missingok create 0664 list list rotate 7 compress delaycompress sharedscripts postrotate [ -f '/usr/local/mailman/data/master-qrunner.pid' ] && /usr/local/mailman/bin/mailmanctl -q reopen || exit 0 endscript } Here is my vhost template where the URL for the Mailman is off the root, it is a bit different to the defaults since I made a lot of changes to the configuration to take out unneeded directives: <VirtualHost *:80> ServerName lists.domain.com DocumentRoot /var/www/lists ErrorLog /var/log/apache2/lists-error.log CustomLog /var/log/apache2/lists-access.log combined <Directory /usr/local/mailman/archives/> Options FollowSymLinks AllowOverride None </Directory> Alias /pipermail/ /usr/local/mailman/archives/public/ Alias /icons/ /usr/local/mailman/icons/ ScriptAlias /admin /usr/local/mailman/cgi-bin/admin ScriptAlias /admindb /usr/local/mailman/cgi-bin/admindb ScriptAlias /confirm /usr/local/mailman/cgi-bin/confirm ScriptAlias /create /usr/local/mailman/cgi-bin/create ScriptAlias /edithtml /usr/local/mailman/cgi-bin/edithtml ScriptAlias /listinfo /usr/local/mailman/cgi-bin/listinfo ScriptAlias /options /usr/local/mailman/cgi-bin/options ScriptAlias /private /usr/local/mailman/cgi-bin/private ScriptAlias /rmlist /usr/local/mailman/cgi-bin/rmlist ScriptAlias /roster /usr/local/mailman/cgi-bin/roster ScriptAlias /subscribe /usr/local/mailman/cgi-bin/subscribe ScriptAlias /mailman/ /usr/local/cgi-bin/ RedirectMatch ^[/]+$ http://lists.domain.com/listinfo/ </VirtualHost> If you want a more traditional setup that works with the defaults use this: <VirtualHost *:80> ServerName lists.domain.com DocumentRoot /var/www/lists ErrorLog /var/log/apache2/lists-error.log CustomLog /var/log/apache2/lists-access.log combined <Directory /usr/local/mailman/archives/> Options FollowSymLinks AllowOverride None </Directory> Alias /pipermail/ /usr/local/mailman/archives/public/ Alias /icons/ /usr/local/mailman/icons/ ScriptAlias /mailman/ /usr/local/cgi-bin/ RedirectMatch ^[/]+$ http://lists.domain.com/mailman/listinfo/ </VirtualHost> Whilst sending these to you I just noticed that this also allows the /icons directory to be indexed, I may fix this at some point by including a piece like this: <Directory /usr/local/mailman/icons/> AllowOverride None </Directory> I haven't tested this however. Hope this helps. Andrew.
Hi, I did get the message, have been busy all day. This is the Cron script I use in /etc/cron.d/mailman: # At 8AM every day, mail reminders to admins as to pending requests. # They are less likely to ignore these reminders if they're mailed # early in the morning, but of course, this is local time... ;) 0 8 * * * list [ -x /usr/local/mailman/cron/checkdbs ] && /usr/local/mailman/cron/checkdbs # # At 9AM, send notifications to disabled members that are due to be # reminded to re-enable their accounts. 0 9 * * * list [ -x /usr/local/mailman/cron/disabled ] && /usr/local/mailman/cron/disabled # # Noon, mail digests for lists that do periodic as well as threshold delivery. 0 12 * * * list [ -x /usr/local/mailman/cron/senddigests ] && /usr/local/mailman/cron/senddigests # # 5 AM on the first of each month, mail out password reminders. 0 5 1 * * list [ -x /usr/local/mailman/cron/mailpasswds ] && /usr/local/mailman/cron/mailpasswds # # Every 5 mins, try to gate news to mail. You can comment this one out # if you don't want to allow gating, or don't have any going on right now, # or want to exclusively use a callback strategy instead of polling. # */5 * * * * list [ -x /usr/local/mailman/cron/gate_news ] && /usr/local/mailman/cron/gate_news # # At 3:27am every night, regenerate the gzip'd archive file. Only # turn this on if the internal archiver is used and # GZIP_ARCHIVE_TXT_FILES is false in mm_cfg.py 27 3 * * * list [ -x /usr/local/mailman/cron/nightly_gzip ] && /usr/local/mailman/cron/nightly_gzip Here is my init script in /etc/init.d/mailman: #! /bin/sh # # mailman starts up the master queue runner for mailman # # Based on skeleton originally by Miquel van Smoorenburg and Ian Murdock, # customisations by Tollef Fog Heen and Thijs Kinkhorst for Debian. # Customised for stock Mailman installation by Andrew Hodgson 12/06/2010 # ### BEGIN INIT INFO # Provides: mailman-qrunner # Required-Start: $syslog $local_fs $remote_fs $named $network # Required-Stop: $syslog $local_fs $remote_fs $named $network # Should-Start: # Should-Stop: # Default-Start: 2 3 4 5 # Default-Stop: 1 # Short-Description: Mailman Master Queue Runner # Description: Starts and stops the Mailman queue runners, used to # manage the various message queues within the Mailman # mailing list manager. ### END INIT INFO PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin DAEMON=/usr/local/mailman/bin/mailmanctl PIDFILE=/usr/local/mailman/data/master-qrunner.pid test -x $DAEMON || exit 0 set -e #if ! [ -d /var/run/mailman ]; then # install -d -o list -g list /var/run/mailman #fi #if ! [ -d /var/lock/mailman ]; then # install -d -o root -g list -m 2775 /var/lock/mailman #fi . /lib/lsb/init-functions # In rare upgrading cycles python might not be available at some point. # Do not break the upgrade in that case. if ! [ -x /usr/bin/python ]; then log_warning_msg "Python interpreter not available, exiting." exit 0; fi case "$1" in start) SITE_LIST=$( sed -rne "s/^[[:space:]]*MAILMAN_SITE_LIST[[:space:]]*=[[:space:]]*(['\"])([^'\"]+)\\1/\\2/p" /usr/local/mailman/Mailman/mm_cfg.py ) [ -n "$SITE_LIST" ] || SITE_LIST='mailman' if ! /usr/local/mailman/bin/list_lists -b | grep -q "^${SITE_LIST}$"; then log_warning_msg "Site list for mailman missing (looking for list named '${SITE_LIST}')." log_warning_msg "Please create it; until then, mailman will refuse to start." exit 0; fi log_daemon_msg "Starting Mailman master qrunner" "mailmanctl" if $DAEMON -s -q start; then log_end_msg 0 else log_end_msg 1 fi ;; stop) log_daemon_msg "Stopping Mailman master qrunner" "mailmanctl" if $DAEMON -q stop; then rm -f $PIDFILE log_end_msg 0 else log_end_msg 1 fi ;; reload) log_begin_msg "Reloading Mailman master qrunner configuration" if $DAEMON -q restart; then log_end_msg 0 else log_end_msg 1 fi ;; restart|force-reload) PID=`cat $PIDFILE 2>/dev/null` || true log_daemon_msg "Restarting Mailman master qrunner" "mailmanctl" $DAEMON -q stop if test -n "$PID" && kill -0 $PID 2>/dev/null ; then log_action_begin_msg "Waiting" for cnt in `seq 1 5`; do sleep 1 kill -0 $PID 2>/dev/null || break done; if kill -0 $PID 2>/dev/null ; then log_action_end_msg 1 else log_action_end_msg 0 fi fi if $DAEMON -q start; then log_end_msg 0 else log_end_msg 1 fi ;; *) echo "Usage: /etc/init.d/mailman {start|stop|restart|reload|force-reload}" >&2 exit 1 ;; esac exit 0 Here is the logrotate script in /etc/logrotate.d/mailman: /usr/local/mailman/logs/vette /usr/local/mailman/logs/error /usr/local/mailman/logs/bounce { weekly missingok create 0664 list list rotate 4 compress delaycompress sharedscripts postrotate [ -f '/usr/local/mailman/data/master-qrunner.pid' ] && /usr/local/mailman/bin/mailmanctl -q reopen || exit 0 endscript } /usr/local/mailman/logs/mischief { monthly missingok create 0664 list www-data rotate 4 compress delaycompress sharedscripts postrotate [ -f '/usr/local/mailman/data/master-qrunner.pid' ] && /usr/local/mailman/bin/mailmanctl -q reopen || exit 0 endscript } /usr/local/mailman/logs/digest { monthly missingok create 0664 list list rotate 4 compress delaycompress sharedscripts postrotate [ -f '/usr/local/mailman/data/master-qrunner.pid' ] && /usr/local/mailman/bin/mailmanctl -q reopen || exit 0 endscript } /usr/local/mailman/logs/subscribe /usr/local/mailman/logs/post { monthly missingok create 0664 list list rotate 12 compress delaycompress sharedscripts postrotate [ -f '/usr/local/mailman/data/master-qrunner.pid' ] && /usr/local/mailman/bin/mailmanctl -q reopen || exit 0 endscript } /usr/local/mailman/logs/qrunner /usr/local/mailman/logs/fromusenet /usr/local/mailman/logs/locks /usr/local/mailman/logs/smtp /usr/local/mailman/logs/smtp-failure { daily missingok create 0664 list list rotate 7 compress delaycompress sharedscripts postrotate [ -f '/usr/local/mailman/data/master-qrunner.pid' ] && /usr/local/mailman/bin/mailmanctl -q reopen || exit 0 endscript } Here is my vhost template where the URL for the Mailman is off the root, it is a bit different to the defaults since I made a lot of changes to the configuration to take out unneeded directives: <VirtualHost *:80> ServerName lists.domain.com DocumentRoot /var/www/lists ErrorLog /var/log/apache2/lists-error.log CustomLog /var/log/apache2/lists-access.log combined <Directory /usr/local/mailman/archives/> Options FollowSymLinks AllowOverride None </Directory> Alias /pipermail/ /usr/local/mailman/archives/public/ Alias /icons/ /usr/local/mailman/icons/ ScriptAlias /admin /usr/local/mailman/cgi-bin/admin ScriptAlias /admindb /usr/local/mailman/cgi-bin/admindb ScriptAlias /confirm /usr/local/mailman/cgi-bin/confirm ScriptAlias /create /usr/local/mailman/cgi-bin/create ScriptAlias /edithtml /usr/local/mailman/cgi-bin/edithtml ScriptAlias /listinfo /usr/local/mailman/cgi-bin/listinfo ScriptAlias /options /usr/local/mailman/cgi-bin/options ScriptAlias /private /usr/local/mailman/cgi-bin/private ScriptAlias /rmlist /usr/local/mailman/cgi-bin/rmlist ScriptAlias /roster /usr/local/mailman/cgi-bin/roster ScriptAlias /subscribe /usr/local/mailman/cgi-bin/subscribe ScriptAlias /mailman/ /usr/local/cgi-bin/ RedirectMatch ^[/]+$ http://lists.domain.com/listinfo/ </VirtualHost> If you want a more traditional setup that works with the defaults use this: <VirtualHost *:80> ServerName lists.domain.com DocumentRoot /var/www/lists ErrorLog /var/log/apache2/lists-error.log CustomLog /var/log/apache2/lists-access.log combined <Directory /usr/local/mailman/archives/> Options FollowSymLinks AllowOverride None </Directory> Alias /pipermail/ /usr/local/mailman/archives/public/ Alias /icons/ /usr/local/mailman/icons/ ScriptAlias /mailman/ /usr/local/cgi-bin/ RedirectMatch ^[/]+$ http://lists.domain.com/mailman/listinfo/ </VirtualHost> Whilst sending these to you I just noticed that this also allows the /icons directory to be indexed, I may fix this at some point by including a piece like this: <Directory /usr/local/mailman/icons/> AllowOverride None </Directory> I haven't tested this however. Hope this helps. Andrew.
Hi Andrew, Thanks a lot. That got me close. All the components are started, email is working fine, but i've got either a web server config error or a mailman error. I can create lists but when going to the web interface for example lists.domain1.com/admin/testlist i'm getting a 404 error. This also happens when it's like lists.domain1.com/create as well. When I goto lists.domain1.com/mailman/listinfo i'm seeing the message no publically advertized lists. I'm assuming i've got a cgi or permissions issue with the setup, or a mailman issue. Any ideas? Thanks. Dave On 12/18/10, Andrew Hodgson <andrew@hodgsonfamily.org> wrote:
Hi,
I did get the message, have been busy all day.
This is the Cron script I use in /etc/cron.d/mailman:
# At 8AM every day, mail reminders to admins as to pending requests. # They are less likely to ignore these reminders if they're mailed # early in the morning, but of course, this is local time... ;) 0 8 * * * list [ -x /usr/local/mailman/cron/checkdbs ] && /usr/local/mailman/cron/checkdbs # # At 9AM, send notifications to disabled members that are due to be # reminded to re-enable their accounts. 0 9 * * * list [ -x /usr/local/mailman/cron/disabled ] && /usr/local/mailman/cron/disabled # # Noon, mail digests for lists that do periodic as well as threshold delivery. 0 12 * * * list [ -x /usr/local/mailman/cron/senddigests ] && /usr/local/mailman/cron/senddigests # # 5 AM on the first of each month, mail out password reminders. 0 5 1 * * list [ -x /usr/local/mailman/cron/mailpasswds ] && /usr/local/mailman/cron/mailpasswds # # Every 5 mins, try to gate news to mail. You can comment this one out # if you don't want to allow gating, or don't have any going on right now, # or want to exclusively use a callback strategy instead of polling. # */5 * * * * list [ -x /usr/local/mailman/cron/gate_news ] && /usr/local/mailman/cron/gate_news # # At 3:27am every night, regenerate the gzip'd archive file. Only # turn this on if the internal archiver is used and # GZIP_ARCHIVE_TXT_FILES is false in mm_cfg.py 27 3 * * * list [ -x /usr/local/mailman/cron/nightly_gzip ] && /usr/local/mailman/cron/nightly_gzip
Here is my init script in /etc/init.d/mailman:
#! /bin/sh # # mailman starts up the master queue runner for mailman # # Based on skeleton originally by Miquel van Smoorenburg and Ian Murdock, # customisations by Tollef Fog Heen and Thijs Kinkhorst for Debian. # Customised for stock Mailman installation by Andrew Hodgson 12/06/2010 # ### BEGIN INIT INFO # Provides: mailman-qrunner # Required-Start: $syslog $local_fs $remote_fs $named $network # Required-Stop: $syslog $local_fs $remote_fs $named $network # Should-Start: # Should-Stop: # Default-Start: 2 3 4 5 # Default-Stop: 1 # Short-Description: Mailman Master Queue Runner # Description: Starts and stops the Mailman queue runners, used to # manage the various message queues within the Mailman # mailing list manager. ### END INIT INFO
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin DAEMON=/usr/local/mailman/bin/mailmanctl PIDFILE=/usr/local/mailman/data/master-qrunner.pid
test -x $DAEMON || exit 0
set -e
#if ! [ -d /var/run/mailman ]; then # install -d -o list -g list /var/run/mailman #fi
#if ! [ -d /var/lock/mailman ]; then # install -d -o root -g list -m 2775 /var/lock/mailman #fi
. /lib/lsb/init-functions
# In rare upgrading cycles python might not be available at some point. # Do not break the upgrade in that case. if ! [ -x /usr/bin/python ]; then log_warning_msg "Python interpreter not available, exiting." exit 0; fi
case "$1" in start) SITE_LIST=$( sed -rne "s/^[[:space:]]*MAILMAN_SITE_LIST[[:space:]]*=[[:space:]]*(['\"])([^'\"]+)\\1/\\2/p" /usr/local/mailman/Mailman/mm_cfg.py ) [ -n "$SITE_LIST" ] || SITE_LIST='mailman' if ! /usr/local/mailman/bin/list_lists -b | grep -q "^${SITE_LIST}$"; then log_warning_msg "Site list for mailman missing (looking for list named '${SITE_LIST}')." log_warning_msg "Please create it; until then, mailman will refuse to start." exit 0; fi log_daemon_msg "Starting Mailman master qrunner" "mailmanctl" if $DAEMON -s -q start; then log_end_msg 0 else log_end_msg 1 fi ;; stop) log_daemon_msg "Stopping Mailman master qrunner" "mailmanctl" if $DAEMON -q stop; then rm -f $PIDFILE log_end_msg 0 else log_end_msg 1 fi ;; reload) log_begin_msg "Reloading Mailman master qrunner configuration" if $DAEMON -q restart; then log_end_msg 0 else log_end_msg 1 fi ;; restart|force-reload) PID=`cat $PIDFILE 2>/dev/null` || true log_daemon_msg "Restarting Mailman master qrunner" "mailmanctl" $DAEMON -q stop if test -n "$PID" && kill -0 $PID 2>/dev/null ; then log_action_begin_msg "Waiting" for cnt in `seq 1 5`; do sleep 1 kill -0 $PID 2>/dev/null || break done; if kill -0 $PID 2>/dev/null ; then log_action_end_msg 1 else log_action_end_msg 0 fi fi if $DAEMON -q start; then log_end_msg 0 else log_end_msg 1 fi ;; *) echo "Usage: /etc/init.d/mailman {start|stop|restart|reload|force-reload}" >&2 exit 1 ;; esac
exit 0
Here is the logrotate script in /etc/logrotate.d/mailman:
/usr/local/mailman/logs/vette /usr/local/mailman/logs/error /usr/local/mailman/logs/bounce { weekly missingok create 0664 list list rotate 4 compress delaycompress sharedscripts postrotate [ -f '/usr/local/mailman/data/master-qrunner.pid' ] && /usr/local/mailman/bin/mailmanctl -q reopen || exit 0 endscript }
/usr/local/mailman/logs/mischief { monthly missingok create 0664 list www-data rotate 4 compress delaycompress sharedscripts postrotate [ -f '/usr/local/mailman/data/master-qrunner.pid' ] && /usr/local/mailman/bin/mailmanctl -q reopen || exit 0 endscript }
/usr/local/mailman/logs/digest { monthly missingok create 0664 list list rotate 4 compress delaycompress sharedscripts postrotate [ -f '/usr/local/mailman/data/master-qrunner.pid' ] && /usr/local/mailman/bin/mailmanctl -q reopen || exit 0 endscript }
/usr/local/mailman/logs/subscribe /usr/local/mailman/logs/post { monthly missingok create 0664 list list rotate 12 compress delaycompress sharedscripts postrotate [ -f '/usr/local/mailman/data/master-qrunner.pid' ] && /usr/local/mailman/bin/mailmanctl -q reopen || exit 0 endscript }
/usr/local/mailman/logs/qrunner /usr/local/mailman/logs/fromusenet /usr/local/mailman/logs/locks /usr/local/mailman/logs/smtp /usr/local/mailman/logs/smtp-failure { daily missingok create 0664 list list rotate 7 compress delaycompress sharedscripts postrotate [ -f '/usr/local/mailman/data/master-qrunner.pid' ] && /usr/local/mailman/bin/mailmanctl -q reopen || exit 0 endscript }
Here is my vhost template where the URL for the Mailman is off the root, it is a bit different to the defaults since I made a lot of changes to the configuration to take out unneeded directives:
<VirtualHost *:80> ServerName lists.domain.com DocumentRoot /var/www/lists ErrorLog /var/log/apache2/lists-error.log CustomLog /var/log/apache2/lists-access.log combined
<Directory /usr/local/mailman/archives/> Options FollowSymLinks AllowOverride None </Directory>
Alias /pipermail/ /usr/local/mailman/archives/public/ Alias /icons/ /usr/local/mailman/icons/ ScriptAlias /admin /usr/local/mailman/cgi-bin/admin ScriptAlias /admindb /usr/local/mailman/cgi-bin/admindb ScriptAlias /confirm /usr/local/mailman/cgi-bin/confirm ScriptAlias /create /usr/local/mailman/cgi-bin/create ScriptAlias /edithtml /usr/local/mailman/cgi-bin/edithtml ScriptAlias /listinfo /usr/local/mailman/cgi-bin/listinfo ScriptAlias /options /usr/local/mailman/cgi-bin/options ScriptAlias /private /usr/local/mailman/cgi-bin/private ScriptAlias /rmlist /usr/local/mailman/cgi-bin/rmlist ScriptAlias /roster /usr/local/mailman/cgi-bin/roster ScriptAlias /subscribe /usr/local/mailman/cgi-bin/subscribe ScriptAlias /mailman/ /usr/local/cgi-bin/ RedirectMatch ^[/]+$ http://lists.domain.com/listinfo/ </VirtualHost>
If you want a more traditional setup that works with the defaults use this: <VirtualHost *:80> ServerName lists.domain.com DocumentRoot /var/www/lists ErrorLog /var/log/apache2/lists-error.log CustomLog /var/log/apache2/lists-access.log combined
<Directory /usr/local/mailman/archives/> Options FollowSymLinks AllowOverride None </Directory>
Alias /pipermail/ /usr/local/mailman/archives/public/ Alias /icons/ /usr/local/mailman/icons/ ScriptAlias /mailman/ /usr/local/cgi-bin/ RedirectMatch ^[/]+$ http://lists.domain.com/mailman/listinfo/ </VirtualHost>
Whilst sending these to you I just noticed that this also allows the /icons directory to be indexed, I may fix this at some point by including a piece like this:
<Directory /usr/local/mailman/icons/> AllowOverride None </Directory>
I haven't tested this however.
Hope this helps. Andrew.
_______________________________________________ Blind-sysadmins mailing list Blind-sysadmins@lists.hodgsonfamily.org http://lists.hodgsonfamily.org/listinfo/blind-sysadmins
Hi, Show me the Apache config you actually did, and the relevant entries in the HTTP log. Also, just thinking about the Debian package, are you *sure* you created your list on the second instance, as I think the Debian package puts the newlist command on the path? Andrew. -----Original Message----- From: blind-sysadmins-bounces@lists.hodgsonfamily.org [mailto:blind-sysadmins-bounces@lists.hodgsonfamily.org] On Behalf Of David Mehler Sent: 18 December 2010 23:17 To: Blind sysadmins list Subject: Re: [Blind-sysadmins] mailman administrator Hi Andrew, Thanks a lot. That got me close. All the components are started, email is working fine, but i've got either a web server config error or a mailman error. I can create lists but when going to the web interface for example lists.domain1.com/admin/testlist i'm getting a 404 error. This also happens when it's like lists.domain1.com/create as well. When I goto lists.domain1.com/mailman/listinfo i'm seeing the message no publically advertized lists. I'm assuming i've got a cgi or permissions issue with the setup, or a mailman issue. Any ideas? Thanks. Dave On 12/18/10, Andrew Hodgson <andrew@hodgsonfamily.org> wrote:
Hi,
I did get the message, have been busy all day.
This is the Cron script I use in /etc/cron.d/mailman:
# At 8AM every day, mail reminders to admins as to pending requests. # They are less likely to ignore these reminders if they're mailed # early in the morning, but of course, this is local time... ;) 0 8 * * * list [ -x /usr/local/mailman/cron/checkdbs ] && /usr/local/mailman/cron/checkdbs # # At 9AM, send notifications to disabled members that are due to be # reminded to re-enable their accounts. 0 9 * * * list [ -x /usr/local/mailman/cron/disabled ] && /usr/local/mailman/cron/disabled # # Noon, mail digests for lists that do periodic as well as threshold delivery. 0 12 * * * list [ -x /usr/local/mailman/cron/senddigests ] && /usr/local/mailman/cron/senddigests # # 5 AM on the first of each month, mail out password reminders. 0 5 1 * * list [ -x /usr/local/mailman/cron/mailpasswds ] && /usr/local/mailman/cron/mailpasswds # # Every 5 mins, try to gate news to mail. You can comment this one out # if you don't want to allow gating, or don't have any going on right now, # or want to exclusively use a callback strategy instead of polling. # */5 * * * * list [ -x /usr/local/mailman/cron/gate_news ] && /usr/local/mailman/cron/gate_news # # At 3:27am every night, regenerate the gzip'd archive file. Only # turn this on if the internal archiver is used and # GZIP_ARCHIVE_TXT_FILES is false in mm_cfg.py 27 3 * * * list [ -x /usr/local/mailman/cron/nightly_gzip ] && /usr/local/mailman/cron/nightly_gzip
Here is my init script in /etc/init.d/mailman:
#! /bin/sh # # mailman starts up the master queue runner for mailman # # Based on skeleton originally by Miquel van Smoorenburg and Ian Murdock, # customisations by Tollef Fog Heen and Thijs Kinkhorst for Debian. # Customised for stock Mailman installation by Andrew Hodgson 12/06/2010 # ### BEGIN INIT INFO # Provides: mailman-qrunner # Required-Start: $syslog $local_fs $remote_fs $named $network # Required-Stop: $syslog $local_fs $remote_fs $named $network # Should-Start: # Should-Stop: # Default-Start: 2 3 4 5 # Default-Stop: 1 # Short-Description: Mailman Master Queue Runner # Description: Starts and stops the Mailman queue runners, used to # manage the various message queues within the Mailman # mailing list manager. ### END INIT INFO
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin DAEMON=/usr/local/mailman/bin/mailmanctl PIDFILE=/usr/local/mailman/data/master-qrunner.pid
test -x $DAEMON || exit 0
set -e
#if ! [ -d /var/run/mailman ]; then # install -d -o list -g list /var/run/mailman #fi
#if ! [ -d /var/lock/mailman ]; then # install -d -o root -g list -m 2775 /var/lock/mailman #fi
. /lib/lsb/init-functions
# In rare upgrading cycles python might not be available at some point. # Do not break the upgrade in that case. if ! [ -x /usr/bin/python ]; then log_warning_msg "Python interpreter not available, exiting." exit 0; fi
case "$1" in start) SITE_LIST=$( sed -rne "s/^[[:space:]]*MAILMAN_SITE_LIST[[:space:]]*=[[:space:]]*(['\"])([^'\"]+)\\1/\\2/p" /usr/local/mailman/Mailman/mm_cfg.py ) [ -n "$SITE_LIST" ] || SITE_LIST='mailman' if ! /usr/local/mailman/bin/list_lists -b | grep -q "^${SITE_LIST}$"; then log_warning_msg "Site list for mailman missing (looking for list named '${SITE_LIST}')." log_warning_msg "Please create it; until then, mailman will refuse to start." exit 0; fi log_daemon_msg "Starting Mailman master qrunner" "mailmanctl" if $DAEMON -s -q start; then log_end_msg 0 else log_end_msg 1 fi ;; stop) log_daemon_msg "Stopping Mailman master qrunner" "mailmanctl" if $DAEMON -q stop; then rm -f $PIDFILE log_end_msg 0 else log_end_msg 1 fi ;; reload) log_begin_msg "Reloading Mailman master qrunner configuration" if $DAEMON -q restart; then log_end_msg 0 else log_end_msg 1 fi ;; restart|force-reload) PID=`cat $PIDFILE 2>/dev/null` || true log_daemon_msg "Restarting Mailman master qrunner" "mailmanctl" $DAEMON -q stop if test -n "$PID" && kill -0 $PID 2>/dev/null ; then log_action_begin_msg "Waiting" for cnt in `seq 1 5`; do sleep 1 kill -0 $PID 2>/dev/null || break done; if kill -0 $PID 2>/dev/null ; then log_action_end_msg 1 else log_action_end_msg 0 fi fi if $DAEMON -q start; then log_end_msg 0 else log_end_msg 1 fi ;; *) echo "Usage: /etc/init.d/mailman {start|stop|restart|reload|force-reload}" >&2 exit 1 ;; esac
exit 0
Here is the logrotate script in /etc/logrotate.d/mailman:
/usr/local/mailman/logs/vette /usr/local/mailman/logs/error /usr/local/mailman/logs/bounce { weekly missingok create 0664 list list rotate 4 compress delaycompress sharedscripts postrotate [ -f '/usr/local/mailman/data/master-qrunner.pid' ] && /usr/local/mailman/bin/mailmanctl -q reopen || exit 0 endscript }
/usr/local/mailman/logs/mischief { monthly missingok create 0664 list www-data rotate 4 compress delaycompress sharedscripts postrotate [ -f '/usr/local/mailman/data/master-qrunner.pid' ] && /usr/local/mailman/bin/mailmanctl -q reopen || exit 0 endscript }
/usr/local/mailman/logs/digest { monthly missingok create 0664 list list rotate 4 compress delaycompress sharedscripts postrotate [ -f '/usr/local/mailman/data/master-qrunner.pid' ] && /usr/local/mailman/bin/mailmanctl -q reopen || exit 0 endscript }
/usr/local/mailman/logs/subscribe /usr/local/mailman/logs/post { monthly missingok create 0664 list list rotate 12 compress delaycompress sharedscripts postrotate [ -f '/usr/local/mailman/data/master-qrunner.pid' ] && /usr/local/mailman/bin/mailmanctl -q reopen || exit 0 endscript }
/usr/local/mailman/logs/qrunner /usr/local/mailman/logs/fromusenet /usr/local/mailman/logs/locks /usr/local/mailman/logs/smtp /usr/local/mailman/logs/smtp-failure { daily missingok create 0664 list list rotate 7 compress delaycompress sharedscripts postrotate [ -f '/usr/local/mailman/data/master-qrunner.pid' ] && /usr/local/mailman/bin/mailmanctl -q reopen || exit 0 endscript }
Here is my vhost template where the URL for the Mailman is off the root, it is a bit different to the defaults since I made a lot of changes to the configuration to take out unneeded directives:
<VirtualHost *:80> ServerName lists.domain.com DocumentRoot /var/www/lists ErrorLog /var/log/apache2/lists-error.log CustomLog /var/log/apache2/lists-access.log combined
<Directory /usr/local/mailman/archives/> Options FollowSymLinks AllowOverride None </Directory>
Alias /pipermail/ /usr/local/mailman/archives/public/ Alias /icons/ /usr/local/mailman/icons/ ScriptAlias /admin /usr/local/mailman/cgi-bin/admin ScriptAlias /admindb /usr/local/mailman/cgi-bin/admindb ScriptAlias /confirm /usr/local/mailman/cgi-bin/confirm ScriptAlias /create /usr/local/mailman/cgi-bin/create ScriptAlias /edithtml /usr/local/mailman/cgi-bin/edithtml ScriptAlias /listinfo /usr/local/mailman/cgi-bin/listinfo ScriptAlias /options /usr/local/mailman/cgi-bin/options ScriptAlias /private /usr/local/mailman/cgi-bin/private ScriptAlias /rmlist /usr/local/mailman/cgi-bin/rmlist ScriptAlias /roster /usr/local/mailman/cgi-bin/roster ScriptAlias /subscribe /usr/local/mailman/cgi-bin/subscribe ScriptAlias /mailman/ /usr/local/cgi-bin/ RedirectMatch ^[/]+$ http://lists.domain.com/listinfo/ </VirtualHost>
If you want a more traditional setup that works with the defaults use this: <VirtualHost *:80> ServerName lists.domain.com DocumentRoot /var/www/lists ErrorLog /var/log/apache2/lists-error.log CustomLog /var/log/apache2/lists-access.log combined
<Directory /usr/local/mailman/archives/> Options FollowSymLinks AllowOverride None </Directory>
Alias /pipermail/ /usr/local/mailman/archives/public/ Alias /icons/ /usr/local/mailman/icons/ ScriptAlias /mailman/ /usr/local/cgi-bin/ RedirectMatch ^[/]+$ http://lists.domain.com/mailman/listinfo/ </VirtualHost>
Whilst sending these to you I just noticed that this also allows the /icons directory to be indexed, I may fix this at some point by including a piece like this:
<Directory /usr/local/mailman/icons/> AllowOverride None </Directory>
I haven't tested this however.
Hope this helps. Andrew.
_______________________________________________ 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
Hi, Show me the Apache config you actually did, and the relevant entries in the HTTP log. Also, just thinking about the Debian package, are you *sure* you created your list on the second instance, as I think the Debian package puts the newlist command on the path? Andrew. -----Original Message----- From: blind-sysadmins-bounces@lists.hodgsonfamily.org [mailto:blind-sysadmins-bounces@lists.hodgsonfamily.org] On Behalf Of David Mehler Sent: 18 December 2010 23:17 To: Blind sysadmins list Subject: Re: [Blind-sysadmins] mailman administrator Hi Andrew, Thanks a lot. That got me close. All the components are started, email is working fine, but i've got either a web server config error or a mailman error. I can create lists but when going to the web interface for example lists.domain1.com/admin/testlist i'm getting a 404 error. This also happens when it's like lists.domain1.com/create as well. When I goto lists.domain1.com/mailman/listinfo i'm seeing the message no publically advertized lists. I'm assuming i've got a cgi or permissions issue with the setup, or a mailman issue. Any ideas? Thanks. Dave On 12/18/10, Andrew Hodgson <andrew@hodgsonfamily.org> wrote:
Hi,
I did get the message, have been busy all day.
This is the Cron script I use in /etc/cron.d/mailman:
# At 8AM every day, mail reminders to admins as to pending requests. # They are less likely to ignore these reminders if they're mailed # early in the morning, but of course, this is local time... ;) 0 8 * * * list [ -x /usr/local/mailman/cron/checkdbs ] && /usr/local/mailman/cron/checkdbs # # At 9AM, send notifications to disabled members that are due to be # reminded to re-enable their accounts. 0 9 * * * list [ -x /usr/local/mailman/cron/disabled ] && /usr/local/mailman/cron/disabled # # Noon, mail digests for lists that do periodic as well as threshold delivery. 0 12 * * * list [ -x /usr/local/mailman/cron/senddigests ] && /usr/local/mailman/cron/senddigests # # 5 AM on the first of each month, mail out password reminders. 0 5 1 * * list [ -x /usr/local/mailman/cron/mailpasswds ] && /usr/local/mailman/cron/mailpasswds # # Every 5 mins, try to gate news to mail. You can comment this one out # if you don't want to allow gating, or don't have any going on right now, # or want to exclusively use a callback strategy instead of polling. # */5 * * * * list [ -x /usr/local/mailman/cron/gate_news ] && /usr/local/mailman/cron/gate_news # # At 3:27am every night, regenerate the gzip'd archive file. Only # turn this on if the internal archiver is used and # GZIP_ARCHIVE_TXT_FILES is false in mm_cfg.py 27 3 * * * list [ -x /usr/local/mailman/cron/nightly_gzip ] && /usr/local/mailman/cron/nightly_gzip
Here is my init script in /etc/init.d/mailman:
#! /bin/sh # # mailman starts up the master queue runner for mailman # # Based on skeleton originally by Miquel van Smoorenburg and Ian Murdock, # customisations by Tollef Fog Heen and Thijs Kinkhorst for Debian. # Customised for stock Mailman installation by Andrew Hodgson 12/06/2010 # ### BEGIN INIT INFO # Provides: mailman-qrunner # Required-Start: $syslog $local_fs $remote_fs $named $network # Required-Stop: $syslog $local_fs $remote_fs $named $network # Should-Start: # Should-Stop: # Default-Start: 2 3 4 5 # Default-Stop: 1 # Short-Description: Mailman Master Queue Runner # Description: Starts and stops the Mailman queue runners, used to # manage the various message queues within the Mailman # mailing list manager. ### END INIT INFO
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin DAEMON=/usr/local/mailman/bin/mailmanctl PIDFILE=/usr/local/mailman/data/master-qrunner.pid
test -x $DAEMON || exit 0
set -e
#if ! [ -d /var/run/mailman ]; then # install -d -o list -g list /var/run/mailman #fi
#if ! [ -d /var/lock/mailman ]; then # install -d -o root -g list -m 2775 /var/lock/mailman #fi
. /lib/lsb/init-functions
# In rare upgrading cycles python might not be available at some point. # Do not break the upgrade in that case. if ! [ -x /usr/bin/python ]; then log_warning_msg "Python interpreter not available, exiting." exit 0; fi
case "$1" in start) SITE_LIST=$( sed -rne "s/^[[:space:]]*MAILMAN_SITE_LIST[[:space:]]*=[[:space:]]*(['\"])([^'\"]+)\\1/\\2/p" /usr/local/mailman/Mailman/mm_cfg.py ) [ -n "$SITE_LIST" ] || SITE_LIST='mailman' if ! /usr/local/mailman/bin/list_lists -b | grep -q "^${SITE_LIST}$"; then log_warning_msg "Site list for mailman missing (looking for list named '${SITE_LIST}')." log_warning_msg "Please create it; until then, mailman will refuse to start." exit 0; fi log_daemon_msg "Starting Mailman master qrunner" "mailmanctl" if $DAEMON -s -q start; then log_end_msg 0 else log_end_msg 1 fi ;; stop) log_daemon_msg "Stopping Mailman master qrunner" "mailmanctl" if $DAEMON -q stop; then rm -f $PIDFILE log_end_msg 0 else log_end_msg 1 fi ;; reload) log_begin_msg "Reloading Mailman master qrunner configuration" if $DAEMON -q restart; then log_end_msg 0 else log_end_msg 1 fi ;; restart|force-reload) PID=`cat $PIDFILE 2>/dev/null` || true log_daemon_msg "Restarting Mailman master qrunner" "mailmanctl" $DAEMON -q stop if test -n "$PID" && kill -0 $PID 2>/dev/null ; then log_action_begin_msg "Waiting" for cnt in `seq 1 5`; do sleep 1 kill -0 $PID 2>/dev/null || break done; if kill -0 $PID 2>/dev/null ; then log_action_end_msg 1 else log_action_end_msg 0 fi fi if $DAEMON -q start; then log_end_msg 0 else log_end_msg 1 fi ;; *) echo "Usage: /etc/init.d/mailman {start|stop|restart|reload|force-reload}" >&2 exit 1 ;; esac
exit 0
Here is the logrotate script in /etc/logrotate.d/mailman:
/usr/local/mailman/logs/vette /usr/local/mailman/logs/error /usr/local/mailman/logs/bounce { weekly missingok create 0664 list list rotate 4 compress delaycompress sharedscripts postrotate [ -f '/usr/local/mailman/data/master-qrunner.pid' ] && /usr/local/mailman/bin/mailmanctl -q reopen || exit 0 endscript }
/usr/local/mailman/logs/mischief { monthly missingok create 0664 list www-data rotate 4 compress delaycompress sharedscripts postrotate [ -f '/usr/local/mailman/data/master-qrunner.pid' ] && /usr/local/mailman/bin/mailmanctl -q reopen || exit 0 endscript }
/usr/local/mailman/logs/digest { monthly missingok create 0664 list list rotate 4 compress delaycompress sharedscripts postrotate [ -f '/usr/local/mailman/data/master-qrunner.pid' ] && /usr/local/mailman/bin/mailmanctl -q reopen || exit 0 endscript }
/usr/local/mailman/logs/subscribe /usr/local/mailman/logs/post { monthly missingok create 0664 list list rotate 12 compress delaycompress sharedscripts postrotate [ -f '/usr/local/mailman/data/master-qrunner.pid' ] && /usr/local/mailman/bin/mailmanctl -q reopen || exit 0 endscript }
/usr/local/mailman/logs/qrunner /usr/local/mailman/logs/fromusenet /usr/local/mailman/logs/locks /usr/local/mailman/logs/smtp /usr/local/mailman/logs/smtp-failure { daily missingok create 0664 list list rotate 7 compress delaycompress sharedscripts postrotate [ -f '/usr/local/mailman/data/master-qrunner.pid' ] && /usr/local/mailman/bin/mailmanctl -q reopen || exit 0 endscript }
Here is my vhost template where the URL for the Mailman is off the root, it is a bit different to the defaults since I made a lot of changes to the configuration to take out unneeded directives:
<VirtualHost *:80> ServerName lists.domain.com DocumentRoot /var/www/lists ErrorLog /var/log/apache2/lists-error.log CustomLog /var/log/apache2/lists-access.log combined
<Directory /usr/local/mailman/archives/> Options FollowSymLinks AllowOverride None </Directory>
Alias /pipermail/ /usr/local/mailman/archives/public/ Alias /icons/ /usr/local/mailman/icons/ ScriptAlias /admin /usr/local/mailman/cgi-bin/admin ScriptAlias /admindb /usr/local/mailman/cgi-bin/admindb ScriptAlias /confirm /usr/local/mailman/cgi-bin/confirm ScriptAlias /create /usr/local/mailman/cgi-bin/create ScriptAlias /edithtml /usr/local/mailman/cgi-bin/edithtml ScriptAlias /listinfo /usr/local/mailman/cgi-bin/listinfo ScriptAlias /options /usr/local/mailman/cgi-bin/options ScriptAlias /private /usr/local/mailman/cgi-bin/private ScriptAlias /rmlist /usr/local/mailman/cgi-bin/rmlist ScriptAlias /roster /usr/local/mailman/cgi-bin/roster ScriptAlias /subscribe /usr/local/mailman/cgi-bin/subscribe ScriptAlias /mailman/ /usr/local/cgi-bin/ RedirectMatch ^[/]+$ http://lists.domain.com/listinfo/ </VirtualHost>
If you want a more traditional setup that works with the defaults use this: <VirtualHost *:80> ServerName lists.domain.com DocumentRoot /var/www/lists ErrorLog /var/log/apache2/lists-error.log CustomLog /var/log/apache2/lists-access.log combined
<Directory /usr/local/mailman/archives/> Options FollowSymLinks AllowOverride None </Directory>
Alias /pipermail/ /usr/local/mailman/archives/public/ Alias /icons/ /usr/local/mailman/icons/ ScriptAlias /mailman/ /usr/local/cgi-bin/ RedirectMatch ^[/]+$ http://lists.domain.com/mailman/listinfo/ </VirtualHost>
Whilst sending these to you I just noticed that this also allows the /icons directory to be indexed, I may fix this at some point by including a piece like this:
<Directory /usr/local/mailman/icons/> AllowOverride None </Directory>
I haven't tested this however.
Hope this helps. Andrew.
_______________________________________________ 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
Hello Andrew, Here's the info. Apache's definitely trying to serve a file that isn't right at least that's how it's looking. Dave [Sat Dec 18 18:10:04 2010] [error] [client xxx.xxx.xxx.xxx] File does not exist: /usr/local/mailman/templates/en/admin, referer: http://lists.domain1.com/mailman/admin/mailman [Sat Dec 18 18:14:32 2010] [error] [client xxx.xxx.xxx.xxx] File does not exist: /usr/local/mailman/templates/en/admin # # httpd configuration settings for use with mailman. #for lists.domain1.com # # create a virtual host for lists.domain1.com <VirtualHost xxx.xxx.xxx.xxx:80> ServerAdmin webmaster@domain1.com ServerName lists.domain1.com DocumentRoot /usr/local/mailman/templates/en ErrorLog /usr/local/mailman/logs/error.log CustomLog /usr/local/mailman/logs/access.log combined <Directory /> Options FollowSymLinks AllowOverride None </Directory> <Directory /usr/local/mailman/templates/en> AllowOverride None Options None Order allow,deny allow from all </directory> ScriptAlias /mailman/ /usr/local/mailman/cgi-bin/ <Directory /usr/local/mailman/cgi-bin/> AllowOverride None Options ExecCGI Order allow,deny Allow from all </Directory> Alias /pipermail/ /usr/local/mailman/archives/public/ <Directory /usr/local/mailman/archives/public> Options Indexes MultiViews FollowSymLinks AllowOverride None Order allow,deny Allow from all </Directory> Alias /images/mailman/ /usr/local/mailman/icons/ <Directory /usr/local/mailman/icons/> 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/' On 12/18/10, Andrew Hodgson <andrew@hodgsonfamily.org> wrote:
Hi,
Show me the Apache config you actually did, and the relevant entries in the HTTP log. Also, just thinking about the Debian package, are you *sure* you created your list on the second instance, as I think the Debian package puts the newlist command on the path?
Andrew.
-----Original Message----- From: blind-sysadmins-bounces@lists.hodgsonfamily.org [mailto:blind-sysadmins-bounces@lists.hodgsonfamily.org] On Behalf Of David Mehler Sent: 18 December 2010 23:17 To: Blind sysadmins list Subject: Re: [Blind-sysadmins] mailman administrator
Hi Andrew, Thanks a lot. That got me close. All the components are started, email is working fine, but i've got either a web server config error or a mailman error. I can create lists but when going to the web interface for example lists.domain1.com/admin/testlist i'm getting a 404 error. This also happens when it's like lists.domain1.com/create as well. When I goto lists.domain1.com/mailman/listinfo i'm seeing the message no publically advertized lists. I'm assuming i've got a cgi or permissions issue with the setup, or a mailman issue. Any ideas? Thanks. Dave
On 12/18/10, Andrew Hodgson <andrew@hodgsonfamily.org> wrote:
Hi,
I did get the message, have been busy all day.
This is the Cron script I use in /etc/cron.d/mailman:
# At 8AM every day, mail reminders to admins as to pending requests. # They are less likely to ignore these reminders if they're mailed # early in the morning, but of course, this is local time... ;) 0 8 * * * list [ -x /usr/local/mailman/cron/checkdbs ] && /usr/local/mailman/cron/checkdbs # # At 9AM, send notifications to disabled members that are due to be # reminded to re-enable their accounts. 0 9 * * * list [ -x /usr/local/mailman/cron/disabled ] && /usr/local/mailman/cron/disabled # # Noon, mail digests for lists that do periodic as well as threshold delivery. 0 12 * * * list [ -x /usr/local/mailman/cron/senddigests ] && /usr/local/mailman/cron/senddigests # # 5 AM on the first of each month, mail out password reminders. 0 5 1 * * list [ -x /usr/local/mailman/cron/mailpasswds ] && /usr/local/mailman/cron/mailpasswds # # Every 5 mins, try to gate news to mail. You can comment this one out # if you don't want to allow gating, or don't have any going on right now, # or want to exclusively use a callback strategy instead of polling. # */5 * * * * list [ -x /usr/local/mailman/cron/gate_news ] && /usr/local/mailman/cron/gate_news # # At 3:27am every night, regenerate the gzip'd archive file. Only # turn this on if the internal archiver is used and # GZIP_ARCHIVE_TXT_FILES is false in mm_cfg.py 27 3 * * * list [ -x /usr/local/mailman/cron/nightly_gzip ] && /usr/local/mailman/cron/nightly_gzip
Here is my init script in /etc/init.d/mailman:
#! /bin/sh # # mailman starts up the master queue runner for mailman # # Based on skeleton originally by Miquel van Smoorenburg and Ian Murdock, # customisations by Tollef Fog Heen and Thijs Kinkhorst for Debian. # Customised for stock Mailman installation by Andrew Hodgson 12/06/2010 # ### BEGIN INIT INFO # Provides: mailman-qrunner # Required-Start: $syslog $local_fs $remote_fs $named $network # Required-Stop: $syslog $local_fs $remote_fs $named $network # Should-Start: # Should-Stop: # Default-Start: 2 3 4 5 # Default-Stop: 1 # Short-Description: Mailman Master Queue Runner # Description: Starts and stops the Mailman queue runners, used to # manage the various message queues within the Mailman # mailing list manager. ### END INIT INFO
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin DAEMON=/usr/local/mailman/bin/mailmanctl PIDFILE=/usr/local/mailman/data/master-qrunner.pid
test -x $DAEMON || exit 0
set -e
#if ! [ -d /var/run/mailman ]; then # install -d -o list -g list /var/run/mailman #fi
#if ! [ -d /var/lock/mailman ]; then # install -d -o root -g list -m 2775 /var/lock/mailman #fi
. /lib/lsb/init-functions
# In rare upgrading cycles python might not be available at some point. # Do not break the upgrade in that case. if ! [ -x /usr/bin/python ]; then log_warning_msg "Python interpreter not available, exiting." exit 0; fi
case "$1" in start) SITE_LIST=$( sed -rne "s/^[[:space:]]*MAILMAN_SITE_LIST[[:space:]]*=[[:space:]]*(['\"])([^'\"]+)\\1/\\2/p" /usr/local/mailman/Mailman/mm_cfg.py ) [ -n "$SITE_LIST" ] || SITE_LIST='mailman' if ! /usr/local/mailman/bin/list_lists -b | grep -q "^${SITE_LIST}$"; then log_warning_msg "Site list for mailman missing (looking for list named '${SITE_LIST}')." log_warning_msg "Please create it; until then, mailman will refuse to start." exit 0; fi log_daemon_msg "Starting Mailman master qrunner" "mailmanctl" if $DAEMON -s -q start; then log_end_msg 0 else log_end_msg 1 fi ;; stop) log_daemon_msg "Stopping Mailman master qrunner" "mailmanctl" if $DAEMON -q stop; then rm -f $PIDFILE log_end_msg 0 else log_end_msg 1 fi ;; reload) log_begin_msg "Reloading Mailman master qrunner configuration" if $DAEMON -q restart; then log_end_msg 0 else log_end_msg 1 fi ;; restart|force-reload) PID=`cat $PIDFILE 2>/dev/null` || true log_daemon_msg "Restarting Mailman master qrunner" "mailmanctl" $DAEMON -q stop if test -n "$PID" && kill -0 $PID 2>/dev/null ; then log_action_begin_msg "Waiting" for cnt in `seq 1 5`; do sleep 1 kill -0 $PID 2>/dev/null || break done; if kill -0 $PID 2>/dev/null ; then log_action_end_msg 1 else log_action_end_msg 0 fi fi if $DAEMON -q start; then log_end_msg 0 else log_end_msg 1 fi ;; *) echo "Usage: /etc/init.d/mailman {start|stop|restart|reload|force-reload}" >&2 exit 1 ;; esac
exit 0
Here is the logrotate script in /etc/logrotate.d/mailman:
/usr/local/mailman/logs/vette /usr/local/mailman/logs/error /usr/local/mailman/logs/bounce { weekly missingok create 0664 list list rotate 4 compress delaycompress sharedscripts postrotate [ -f '/usr/local/mailman/data/master-qrunner.pid' ] && /usr/local/mailman/bin/mailmanctl -q reopen || exit 0 endscript }
/usr/local/mailman/logs/mischief { monthly missingok create 0664 list www-data rotate 4 compress delaycompress sharedscripts postrotate [ -f '/usr/local/mailman/data/master-qrunner.pid' ] && /usr/local/mailman/bin/mailmanctl -q reopen || exit 0 endscript }
/usr/local/mailman/logs/digest { monthly missingok create 0664 list list rotate 4 compress delaycompress sharedscripts postrotate [ -f '/usr/local/mailman/data/master-qrunner.pid' ] && /usr/local/mailman/bin/mailmanctl -q reopen || exit 0 endscript }
/usr/local/mailman/logs/subscribe /usr/local/mailman/logs/post { monthly missingok create 0664 list list rotate 12 compress delaycompress sharedscripts postrotate [ -f '/usr/local/mailman/data/master-qrunner.pid' ] && /usr/local/mailman/bin/mailmanctl -q reopen || exit 0 endscript }
/usr/local/mailman/logs/qrunner /usr/local/mailman/logs/fromusenet /usr/local/mailman/logs/locks /usr/local/mailman/logs/smtp /usr/local/mailman/logs/smtp-failure { daily missingok create 0664 list list rotate 7 compress delaycompress sharedscripts postrotate [ -f '/usr/local/mailman/data/master-qrunner.pid' ] && /usr/local/mailman/bin/mailmanctl -q reopen || exit 0 endscript }
Here is my vhost template where the URL for the Mailman is off the root, it is a bit different to the defaults since I made a lot of changes to the configuration to take out unneeded directives:
<VirtualHost *:80> ServerName lists.domain.com DocumentRoot /var/www/lists ErrorLog /var/log/apache2/lists-error.log CustomLog /var/log/apache2/lists-access.log combined
<Directory /usr/local/mailman/archives/> Options FollowSymLinks AllowOverride None </Directory>
Alias /pipermail/ /usr/local/mailman/archives/public/ Alias /icons/ /usr/local/mailman/icons/ ScriptAlias /admin /usr/local/mailman/cgi-bin/admin ScriptAlias /admindb /usr/local/mailman/cgi-bin/admindb ScriptAlias /confirm /usr/local/mailman/cgi-bin/confirm ScriptAlias /create /usr/local/mailman/cgi-bin/create ScriptAlias /edithtml /usr/local/mailman/cgi-bin/edithtml ScriptAlias /listinfo /usr/local/mailman/cgi-bin/listinfo ScriptAlias /options /usr/local/mailman/cgi-bin/options ScriptAlias /private /usr/local/mailman/cgi-bin/private ScriptAlias /rmlist /usr/local/mailman/cgi-bin/rmlist ScriptAlias /roster /usr/local/mailman/cgi-bin/roster ScriptAlias /subscribe /usr/local/mailman/cgi-bin/subscribe ScriptAlias /mailman/ /usr/local/cgi-bin/ RedirectMatch ^[/]+$ http://lists.domain.com/listinfo/ </VirtualHost>
If you want a more traditional setup that works with the defaults use this: <VirtualHost *:80> ServerName lists.domain.com DocumentRoot /var/www/lists ErrorLog /var/log/apache2/lists-error.log CustomLog /var/log/apache2/lists-access.log combined
<Directory /usr/local/mailman/archives/> Options FollowSymLinks AllowOverride None </Directory>
Alias /pipermail/ /usr/local/mailman/archives/public/ Alias /icons/ /usr/local/mailman/icons/ ScriptAlias /mailman/ /usr/local/cgi-bin/ RedirectMatch ^[/]+$ http://lists.domain.com/mailman/listinfo/ </VirtualHost>
Whilst sending these to you I just noticed that this also allows the /icons directory to be indexed, I may fix this at some point by including a piece like this:
<Directory /usr/local/mailman/icons/> AllowOverride None </Directory>
I haven't tested this however.
Hope this helps. Andrew.
_______________________________________________ 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
Hi Dave, You obviously didn't use much of my virtual host file in there. I don't think you are getting the CGIs executed correctly, as you have your home directory set to the template directory (which shouldn't be the case), and it looks like it is trying to get the admin pages directly from that. It may also be worth running ./bin/check_perms to ensure you have the permissions set correctly. Here is the virtual host file with the /mailman default URL set up. Access everything with /mailman/ (for example lists.domain1.com/mailman/listinfo). I have also commented this as well so it is easier to understand: # httpd configuration settings for use with mailman. #for lists.domain1.com # create a virtual host for lists.domain1.com <VirtualHost *:80> ServerName lists.domain1.com ServerAdmin webmaster@domain1.com # This directory for the document root should exist and preferably be empty. DocumentRoot /var/www/lists ErrorLog /var/log/apache2/lists-error.log CustomLog /var/log/apache2/lists-access.log combined # Directory access directives for the archives and icons directories. We want as little access as possible to these directories. # We need to follow symbolic links in the archive directory to work with the public archives. <Directory /usr/local/mailman/archives/> Options FollowSymLinks AllowOverride None </Directory> <Directory /usr/local/mailman/icons/> Options None AllowOverride None </Directory> Alias /pipermail/ /usr/local/mailman/archives/public/ Alias /icons/ /usr/local/mailman/icons/ # Define the CGI directory. We don't need a directory access entry here because we are using ScriptAlias. ScriptAlias /mailman/ /usr/local/cgi-bin/ # Redirect the root of the /mailman directory to the listinfo page. Replace with your active URL. RedirectMatch ^/mailman[/]*$ http://lists.domain1.com/mailman/listinfo/ # Redirect the root of the site to the listinfo page. Replace with your active URL. RedirectMatch ^[/]+$ http://lists.domain1.com/mailman/listinfo/ </VirtualHost>
Hi Andrew, Thanks. Still having difficulties. I ran check_perms and no permissions problems. I dropped in your config substituting my domain names and it's giving me error 404's on all pages. For the templates/en folder I thought that was where the files were being pulled from? This issue is definitely with apache. I commandline created a test list and subscribed to it, sent emails back and forth email and mailman are working, the web server is not. Thanks. Dave On 12/18/10, Andrew Hodgson <andrew@hodgsonfamily.org> wrote:
Hi Dave,
You obviously didn't use much of my virtual host file in there. I don't think you are getting the CGIs executed correctly, as you have your home directory set to the template directory (which shouldn't be the case), and it looks like it is trying to get the admin pages directly from that. It may also be worth running ./bin/check_perms to ensure you have the permissions set correctly.
Here is the virtual host file with the /mailman default URL set up. Access everything with /mailman/ (for example lists.domain1.com/mailman/listinfo).
I have also commented this as well so it is easier to understand:
# httpd configuration settings for use with mailman. #for lists.domain1.com
# create a virtual host for lists.domain1.com <VirtualHost *:80> ServerName lists.domain1.com ServerAdmin webmaster@domain1.com # This directory for the document root should exist and preferably be empty. DocumentRoot /var/www/lists ErrorLog /var/log/apache2/lists-error.log CustomLog /var/log/apache2/lists-access.log combined
# Directory access directives for the archives and icons directories. We want as little access as possible to these directories. # We need to follow symbolic links in the archive directory to work with the public archives. <Directory /usr/local/mailman/archives/> Options FollowSymLinks AllowOverride None </Directory>
<Directory /usr/local/mailman/icons/> Options None AllowOverride None </Directory>
Alias /pipermail/ /usr/local/mailman/archives/public/ Alias /icons/ /usr/local/mailman/icons/
# Define the CGI directory. We don't need a directory access entry here because we are using ScriptAlias. ScriptAlias /mailman/ /usr/local/cgi-bin/
# Redirect the root of the /mailman directory to the listinfo page. Replace with your active URL. RedirectMatch ^/mailman[/]*$ http://lists.domain1.com/mailman/listinfo/
# Redirect the root of the site to the listinfo page. Replace with your active URL. RedirectMatch ^[/]+$ http://lists.domain1.com/mailman/listinfo/ </VirtualHost>
_______________________________________________ Blind-sysadmins mailing list Blind-sysadmins@lists.hodgsonfamily.org http://lists.hodgsonfamily.org/listinfo/blind-sysadmins
Hi, Could be a conflict with your virtual hosts, when you reload Apache is it giving you warnings? Andrew. -----Original Message----- From: blind-sysadmins-bounces@lists.hodgsonfamily.org [mailto:blind-sysadmins-bounces@lists.hodgsonfamily.org] On Behalf Of David Mehler Sent: 19 December 2010 01:44 To: Blind sysadmins list Subject: Re: [Blind-sysadmins] mailman administrator Hi Andrew, Thanks. Still having difficulties. I ran check_perms and no permissions problems. I dropped in your config substituting my domain names and it's giving me error 404's on all pages. For the templates/en folder I thought that was where the files were being pulled from? This issue is definitely with apache. I commandline created a test list and subscribed to it, sent emails back and forth email and mailman are working, the web server is not. Thanks. Dave On 12/18/10, Andrew Hodgson <andrew@hodgsonfamily.org> wrote:
Hi Dave,
You obviously didn't use much of my virtual host file in there. I don't think you are getting the CGIs executed correctly, as you have your home directory set to the template directory (which shouldn't be the case), and it looks like it is trying to get the admin pages directly from that. It may also be worth running ./bin/check_perms to ensure you have the permissions set correctly.
Here is the virtual host file with the /mailman default URL set up. Access everything with /mailman/ (for example lists.domain1.com/mailman/listinfo).
I have also commented this as well so it is easier to understand:
# httpd configuration settings for use with mailman. #for lists.domain1.com
# create a virtual host for lists.domain1.com <VirtualHost *:80> ServerName lists.domain1.com ServerAdmin webmaster@domain1.com # This directory for the document root should exist and preferably be empty. DocumentRoot /var/www/lists ErrorLog /var/log/apache2/lists-error.log CustomLog /var/log/apache2/lists-access.log combined
# Directory access directives for the archives and icons directories. We want as little access as possible to these directories. # We need to follow symbolic links in the archive directory to work with the public archives. <Directory /usr/local/mailman/archives/> Options FollowSymLinks AllowOverride None </Directory>
<Directory /usr/local/mailman/icons/> Options None AllowOverride None </Directory>
Alias /pipermail/ /usr/local/mailman/archives/public/ Alias /icons/ /usr/local/mailman/icons/
# Define the CGI directory. We don't need a directory access entry here because we are using ScriptAlias. ScriptAlias /mailman/ /usr/local/cgi-bin/
# Redirect the root of the /mailman directory to the listinfo page. Replace with your active URL. RedirectMatch ^/mailman[/]*$ http://lists.domain1.com/mailman/listinfo/
# Redirect the root of the site to the listinfo page. Replace with your active URL. RedirectMatch ^[/]+$ http://lists.domain1.com/mailman/listinfo/ </VirtualHost>
_______________________________________________ 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
Hi, Could be a conflict with your virtual hosts, when you reload Apache is it giving you warnings? Andrew. -----Original Message----- From: blind-sysadmins-bounces@lists.hodgsonfamily.org [mailto:blind-sysadmins-bounces@lists.hodgsonfamily.org] On Behalf Of David Mehler Sent: 19 December 2010 01:44 To: Blind sysadmins list Subject: Re: [Blind-sysadmins] mailman administrator Hi Andrew, Thanks. Still having difficulties. I ran check_perms and no permissions problems. I dropped in your config substituting my domain names and it's giving me error 404's on all pages. For the templates/en folder I thought that was where the files were being pulled from? This issue is definitely with apache. I commandline created a test list and subscribed to it, sent emails back and forth email and mailman are working, the web server is not. Thanks. Dave On 12/18/10, Andrew Hodgson <andrew@hodgsonfamily.org> wrote:
Hi Dave,
You obviously didn't use much of my virtual host file in there. I don't think you are getting the CGIs executed correctly, as you have your home directory set to the template directory (which shouldn't be the case), and it looks like it is trying to get the admin pages directly from that. It may also be worth running ./bin/check_perms to ensure you have the permissions set correctly.
Here is the virtual host file with the /mailman default URL set up. Access everything with /mailman/ (for example lists.domain1.com/mailman/listinfo).
I have also commented this as well so it is easier to understand:
# httpd configuration settings for use with mailman. #for lists.domain1.com
# create a virtual host for lists.domain1.com <VirtualHost *:80> ServerName lists.domain1.com ServerAdmin webmaster@domain1.com # This directory for the document root should exist and preferably be empty. DocumentRoot /var/www/lists ErrorLog /var/log/apache2/lists-error.log CustomLog /var/log/apache2/lists-access.log combined
# Directory access directives for the archives and icons directories. We want as little access as possible to these directories. # We need to follow symbolic links in the archive directory to work with the public archives. <Directory /usr/local/mailman/archives/> Options FollowSymLinks AllowOverride None </Directory>
<Directory /usr/local/mailman/icons/> Options None AllowOverride None </Directory>
Alias /pipermail/ /usr/local/mailman/archives/public/ Alias /icons/ /usr/local/mailman/icons/
# Define the CGI directory. We don't need a directory access entry here because we are using ScriptAlias. ScriptAlias /mailman/ /usr/local/cgi-bin/
# Redirect the root of the /mailman directory to the listinfo page. Replace with your active URL. RedirectMatch ^/mailman[/]*$ http://lists.domain1.com/mailman/listinfo/
# Redirect the root of the site to the listinfo page. Replace with your active URL. RedirectMatch ^[/]+$ http://lists.domain1.com/mailman/listinfo/ </VirtualHost>
_______________________________________________ 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
Hi Andrew, No warnings or errors on load. A syntax check reveals no problems. Thanks. Dave On 12/19/10, Andrew Hodgson <andrew@hodgsonfamily.org> wrote:
Hi,
Could be a conflict with your virtual hosts, when you reload Apache is it giving you warnings?
Andrew.
-----Original Message----- From: blind-sysadmins-bounces@lists.hodgsonfamily.org [mailto:blind-sysadmins-bounces@lists.hodgsonfamily.org] On Behalf Of David Mehler Sent: 19 December 2010 01:44 To: Blind sysadmins list Subject: Re: [Blind-sysadmins] mailman administrator
Hi Andrew, Thanks. Still having difficulties. I ran check_perms and no permissions problems. I dropped in your config substituting my domain names and it's giving me error 404's on all pages. For the templates/en folder I thought that was where the files were being pulled from? This issue is definitely with apache. I commandline created a test list and subscribed to it, sent emails back and forth email and mailman are working, the web server is not. Thanks. Dave
On 12/18/10, Andrew Hodgson <andrew@hodgsonfamily.org> wrote:
Hi Dave,
You obviously didn't use much of my virtual host file in there. I don't think you are getting the CGIs executed correctly, as you have your home directory set to the template directory (which shouldn't be the case), and it looks like it is trying to get the admin pages directly from that. It may also be worth running ./bin/check_perms to ensure you have the permissions set correctly.
Here is the virtual host file with the /mailman default URL set up. Access everything with /mailman/ (for example lists.domain1.com/mailman/listinfo).
I have also commented this as well so it is easier to understand:
# httpd configuration settings for use with mailman. #for lists.domain1.com
# create a virtual host for lists.domain1.com <VirtualHost *:80> ServerName lists.domain1.com ServerAdmin webmaster@domain1.com # This directory for the document root should exist and preferably be empty. DocumentRoot /var/www/lists ErrorLog /var/log/apache2/lists-error.log CustomLog /var/log/apache2/lists-access.log combined
# Directory access directives for the archives and icons directories. We want as little access as possible to these directories. # We need to follow symbolic links in the archive directory to work with the public archives. <Directory /usr/local/mailman/archives/> Options FollowSymLinks AllowOverride None </Directory>
<Directory /usr/local/mailman/icons/> Options None AllowOverride None </Directory>
Alias /pipermail/ /usr/local/mailman/archives/public/ Alias /icons/ /usr/local/mailman/icons/
# Define the CGI directory. We don't need a directory access entry here because we are using ScriptAlias. ScriptAlias /mailman/ /usr/local/cgi-bin/
# Redirect the root of the /mailman directory to the listinfo page. Replace with your active URL. RedirectMatch ^/mailman[/]*$ http://lists.domain1.com/mailman/listinfo/
# Redirect the root of the site to the listinfo page. Replace with your active URL. RedirectMatch ^[/]+$ http://lists.domain1.com/mailman/listinfo/ </VirtualHost>
_______________________________________________ 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
Hi, Check the logs to ensure that your requests are going to the correct vhost (look at the directory that the page is being requested from, if necessary change the directory/log file locations). Andrew. -----Original Message----- From: blind-sysadmins-bounces@lists.hodgsonfamily.org [mailto:blind-sysadmins-bounces@lists.hodgsonfamily.org] On Behalf Of David Mehler Sent: 19 December 2010 19:02 To: Blind sysadmins list Subject: Re: [Blind-sysadmins] mailman administrator Hi Andrew, No warnings or errors on load. A syntax check reveals no problems. Thanks. Dave On 12/19/10, Andrew Hodgson <andrew@hodgsonfamily.org> wrote:
Hi,
Could be a conflict with your virtual hosts, when you reload Apache is it giving you warnings?
Andrew.
-----Original Message----- From: blind-sysadmins-bounces@lists.hodgsonfamily.org [mailto:blind-sysadmins-bounces@lists.hodgsonfamily.org] On Behalf Of David Mehler Sent: 19 December 2010 01:44 To: Blind sysadmins list Subject: Re: [Blind-sysadmins] mailman administrator
Hi Andrew, Thanks. Still having difficulties. I ran check_perms and no permissions problems. I dropped in your config substituting my domain names and it's giving me error 404's on all pages. For the templates/en folder I thought that was where the files were being pulled from? This issue is definitely with apache. I commandline created a test list and subscribed to it, sent emails back and forth email and mailman are working, the web server is not. Thanks. Dave
On 12/18/10, Andrew Hodgson <andrew@hodgsonfamily.org> wrote:
Hi Dave,
You obviously didn't use much of my virtual host file in there. I don't think you are getting the CGIs executed correctly, as you have your home directory set to the template directory (which shouldn't be the case), and it looks like it is trying to get the admin pages directly from that. It may also be worth running ./bin/check_perms to ensure you have the permissions set correctly.
Here is the virtual host file with the /mailman default URL set up. Access everything with /mailman/ (for example lists.domain1.com/mailman/listinfo).
I have also commented this as well so it is easier to understand:
# httpd configuration settings for use with mailman. #for lists.domain1.com
# create a virtual host for lists.domain1.com <VirtualHost *:80> ServerName lists.domain1.com ServerAdmin webmaster@domain1.com # This directory for the document root should exist and preferably be empty. DocumentRoot /var/www/lists ErrorLog /var/log/apache2/lists-error.log CustomLog /var/log/apache2/lists-access.log combined
# Directory access directives for the archives and icons directories. We want as little access as possible to these directories. # We need to follow symbolic links in the archive directory to work with the public archives. <Directory /usr/local/mailman/archives/> Options FollowSymLinks AllowOverride None </Directory>
<Directory /usr/local/mailman/icons/> Options None AllowOverride None </Directory>
Alias /pipermail/ /usr/local/mailman/archives/public/ Alias /icons/ /usr/local/mailman/icons/
# Define the CGI directory. We don't need a directory access entry here because we are using ScriptAlias. ScriptAlias /mailman/ /usr/local/cgi-bin/
# Redirect the root of the /mailman directory to the listinfo page. Replace with your active URL. RedirectMatch ^/mailman[/]*$ http://lists.domain1.com/mailman/listinfo/
# Redirect the root of the site to the listinfo page. Replace with your active URL. RedirectMatch ^[/]+$ http://lists.domain1.com/mailman/listinfo/ </VirtualHost>
_______________________________________________ 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
Hi, Thanks, requests are going to where I want them to go to, but getting 404's on the docs. It's definitely apache as email is working fine. Thanks. Dave On 12/19/10, Andrew Hodgson <andrew@hodgsonfamily.org> wrote:
Hi,
Check the logs to ensure that your requests are going to the correct vhost (look at the directory that the page is being requested from, if necessary change the directory/log file locations).
Andrew.
-----Original Message----- From: blind-sysadmins-bounces@lists.hodgsonfamily.org [mailto:blind-sysadmins-bounces@lists.hodgsonfamily.org] On Behalf Of David Mehler Sent: 19 December 2010 19:02 To: Blind sysadmins list Subject: Re: [Blind-sysadmins] mailman administrator
Hi Andrew, No warnings or errors on load. A syntax check reveals no problems. Thanks. Dave
On 12/19/10, Andrew Hodgson <andrew@hodgsonfamily.org> wrote:
Hi,
Could be a conflict with your virtual hosts, when you reload Apache is it giving you warnings?
Andrew.
-----Original Message----- From: blind-sysadmins-bounces@lists.hodgsonfamily.org [mailto:blind-sysadmins-bounces@lists.hodgsonfamily.org] On Behalf Of David Mehler Sent: 19 December 2010 01:44 To: Blind sysadmins list Subject: Re: [Blind-sysadmins] mailman administrator
Hi Andrew, Thanks. Still having difficulties. I ran check_perms and no permissions problems. I dropped in your config substituting my domain names and it's giving me error 404's on all pages. For the templates/en folder I thought that was where the files were being pulled from? This issue is definitely with apache. I commandline created a test list and subscribed to it, sent emails back and forth email and mailman are working, the web server is not. Thanks. Dave
On 12/18/10, Andrew Hodgson <andrew@hodgsonfamily.org> wrote:
Hi Dave,
You obviously didn't use much of my virtual host file in there. I don't think you are getting the CGIs executed correctly, as you have your home directory set to the template directory (which shouldn't be the case), and it looks like it is trying to get the admin pages directly from that. It may also be worth running ./bin/check_perms to ensure you have the permissions set correctly.
Here is the virtual host file with the /mailman default URL set up. Access everything with /mailman/ (for example lists.domain1.com/mailman/listinfo).
I have also commented this as well so it is easier to understand:
# httpd configuration settings for use with mailman. #for lists.domain1.com
# create a virtual host for lists.domain1.com <VirtualHost *:80> ServerName lists.domain1.com ServerAdmin webmaster@domain1.com # This directory for the document root should exist and preferably be empty. DocumentRoot /var/www/lists ErrorLog /var/log/apache2/lists-error.log CustomLog /var/log/apache2/lists-access.log combined
# Directory access directives for the archives and icons directories. We want as little access as possible to these directories. # We need to follow symbolic links in the archive directory to work with the public archives. <Directory /usr/local/mailman/archives/> Options FollowSymLinks AllowOverride None </Directory>
<Directory /usr/local/mailman/icons/> Options None AllowOverride None </Directory>
Alias /pipermail/ /usr/local/mailman/archives/public/ Alias /icons/ /usr/local/mailman/icons/
# Define the CGI directory. We don't need a directory access entry here because we are using ScriptAlias. ScriptAlias /mailman/ /usr/local/cgi-bin/
# Redirect the root of the /mailman directory to the listinfo page. Replace with your active URL. RedirectMatch ^/mailman[/]*$ http://lists.domain1.com/mailman/listinfo/
# Redirect the root of the site to the listinfo page. Replace with your active URL. RedirectMatch ^[/]+$ http://lists.domain1.com/mailman/listinfo/ </VirtualHost>
_______________________________________________ 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
Hi, Check the logs to ensure that your requests are going to the correct vhost (look at the directory that the page is being requested from, if necessary change the directory/log file locations). Andrew. -----Original Message----- From: blind-sysadmins-bounces@lists.hodgsonfamily.org [mailto:blind-sysadmins-bounces@lists.hodgsonfamily.org] On Behalf Of David Mehler Sent: 19 December 2010 19:02 To: Blind sysadmins list Subject: Re: [Blind-sysadmins] mailman administrator Hi Andrew, No warnings or errors on load. A syntax check reveals no problems. Thanks. Dave On 12/19/10, Andrew Hodgson <andrew@hodgsonfamily.org> wrote:
Hi,
Could be a conflict with your virtual hosts, when you reload Apache is it giving you warnings?
Andrew.
-----Original Message----- From: blind-sysadmins-bounces@lists.hodgsonfamily.org [mailto:blind-sysadmins-bounces@lists.hodgsonfamily.org] On Behalf Of David Mehler Sent: 19 December 2010 01:44 To: Blind sysadmins list Subject: Re: [Blind-sysadmins] mailman administrator
Hi Andrew, Thanks. Still having difficulties. I ran check_perms and no permissions problems. I dropped in your config substituting my domain names and it's giving me error 404's on all pages. For the templates/en folder I thought that was where the files were being pulled from? This issue is definitely with apache. I commandline created a test list and subscribed to it, sent emails back and forth email and mailman are working, the web server is not. Thanks. Dave
On 12/18/10, Andrew Hodgson <andrew@hodgsonfamily.org> wrote:
Hi Dave,
You obviously didn't use much of my virtual host file in there. I don't think you are getting the CGIs executed correctly, as you have your home directory set to the template directory (which shouldn't be the case), and it looks like it is trying to get the admin pages directly from that. It may also be worth running ./bin/check_perms to ensure you have the permissions set correctly.
Here is the virtual host file with the /mailman default URL set up. Access everything with /mailman/ (for example lists.domain1.com/mailman/listinfo).
I have also commented this as well so it is easier to understand:
# httpd configuration settings for use with mailman. #for lists.domain1.com
# create a virtual host for lists.domain1.com <VirtualHost *:80> ServerName lists.domain1.com ServerAdmin webmaster@domain1.com # This directory for the document root should exist and preferably be empty. DocumentRoot /var/www/lists ErrorLog /var/log/apache2/lists-error.log CustomLog /var/log/apache2/lists-access.log combined
# Directory access directives for the archives and icons directories. We want as little access as possible to these directories. # We need to follow symbolic links in the archive directory to work with the public archives. <Directory /usr/local/mailman/archives/> Options FollowSymLinks AllowOverride None </Directory>
<Directory /usr/local/mailman/icons/> Options None AllowOverride None </Directory>
Alias /pipermail/ /usr/local/mailman/archives/public/ Alias /icons/ /usr/local/mailman/icons/
# Define the CGI directory. We don't need a directory access entry here because we are using ScriptAlias. ScriptAlias /mailman/ /usr/local/cgi-bin/
# Redirect the root of the /mailman directory to the listinfo page. Replace with your active URL. RedirectMatch ^/mailman[/]*$ http://lists.domain1.com/mailman/listinfo/
# Redirect the root of the site to the listinfo page. Replace with your active URL. RedirectMatch ^[/]+$ http://lists.domain1.com/mailman/listinfo/ </VirtualHost>
_______________________________________________ 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
Hi Dave, You obviously didn't use much of my virtual host file in there. I don't think you are getting the CGIs executed correctly, as you have your home directory set to the template directory (which shouldn't be the case), and it looks like it is trying to get the admin pages directly from that. It may also be worth running ./bin/check_perms to ensure you have the permissions set correctly. Here is the virtual host file with the /mailman default URL set up. Access everything with /mailman/ (for example lists.domain1.com/mailman/listinfo). I have also commented this as well so it is easier to understand: # httpd configuration settings for use with mailman. #for lists.domain1.com # create a virtual host for lists.domain1.com <VirtualHost *:80> ServerName lists.domain1.com ServerAdmin webmaster@domain1.com # This directory for the document root should exist and preferably be empty. DocumentRoot /var/www/lists ErrorLog /var/log/apache2/lists-error.log CustomLog /var/log/apache2/lists-access.log combined # Directory access directives for the archives and icons directories. We want as little access as possible to these directories. # We need to follow symbolic links in the archive directory to work with the public archives. <Directory /usr/local/mailman/archives/> Options FollowSymLinks AllowOverride None </Directory> <Directory /usr/local/mailman/icons/> Options None AllowOverride None </Directory> Alias /pipermail/ /usr/local/mailman/archives/public/ Alias /icons/ /usr/local/mailman/icons/ # Define the CGI directory. We don't need a directory access entry here because we are using ScriptAlias. ScriptAlias /mailman/ /usr/local/cgi-bin/ # Redirect the root of the /mailman directory to the listinfo page. Replace with your active URL. RedirectMatch ^/mailman[/]*$ http://lists.domain1.com/mailman/listinfo/ # Redirect the root of the site to the listinfo page. Replace with your active URL. RedirectMatch ^[/]+$ http://lists.domain1.com/mailman/listinfo/ </VirtualHost>
Hi, The parameters I passed to the configure script were as follows on the Debian system: ./configure --with-username=list --with-groupname=list --with-mail-gid=daemon --with-cgi-gid=www-data --with-mailhost=lists.hodgsonfamily.org --with-urlhost=lists.hodgsonfamily.org The Mail GID needs to be set right, in Postfix on Debian it may run under another GID, check this. Obviously set the domains differently for the default URL/email hosts. That will compile in /usr/local/mailman. I have Vhost directives, cron entries, a init script and a logrotate script if you are interested which I did for this installation. Thanks. Andrew. -----Original Message----- From: blind-sysadmins-bounces@lists.hodgsonfamily.org [mailto:blind-sysadmins-bounces@lists.hodgsonfamily.org] On Behalf Of David Mehler Sent: 16 December 2010 14:48 To: Blind sysadmins list Subject: Re: [Blind-sysadmins] mailman administrator HI, Thanks for your reply. Can you give me the procedure you followed for a source compile? Thus far i've not been successful. The ubuntu package is working, the second instance compiled from source is not. Thanks. Dave. On 12/15/10, Andrew Hodgson <andrew@hodgsonfamily.org> wrote:
Hi,
Yes I did get the message, sorry for not replying.
I don't really want SSH access to your server, though am happy to help you with the compilation of Mailman on Debian/Ubuntu.
Thanks. Andrew.
-----Original Message----- From: blind-sysadmins-bounces@lists.hodgsonfamily.org [mailto:blind-sysadmins-bounces@lists.hodgsonfamily.org] On Behalf Of David Mehler Sent: 15 December 2010 17:40 To: Blind sysadmins list Subject: Re: [Blind-sysadmins] mailman administrator
Hi Andrew, Wondering if you got my last message on this? Thanks. Dave.
On 12/14/10, David Mehler <dave.mehler@gmail.com> wrote:
Hi, Thank you. I suspect i'm going to need it. I'm looking over the mailman install doc and there are parts of it that are confusing. If your willing to help out write me privately and I can give you an ssh username/password for my server and details. Thanks. Dave.
On 12/14/10, Andrew Hodgson <Andrew.Hodgson@allpay.net> wrote:
Hi,
All the important mailman messages on this system are coming from mailman at the correct domain. If one sends a message to mailman at the correct domain, they will get back messages from the mailman at the first domain, but I can live with that myself. I find the notion of requiring a mailman specific list a bit odd, and hopefully something they may get rid of in a later version.
Let me know if you want any help with compiling 2.1.14 from source.
Thanks. Andrew.
-----Original Message----- From: blind-sysadmins-bounces@lists.hodgsonfamily.org [mailto:blind-sysadmins-bounces@lists.hodgsonfamily.org] On Behalf Of David Mehler Sent: 14 December 2010 16:27 To: Blind sysadmins list Subject: Re: [Blind-sysadmins] mailman administrator
Hi, The issue is a while back a list called list1 was created in domain1 and used. Now they want that same listname list1 created in domain2 but without the list1@domain1's archives or information. For another thing the mailman messages got for domain2 need to come from mailman@lists.domain2.com which at the moment they are not. The apache and postfix are both set they should work, it's a question of the mailman setup. Thanks. Dave.
On 12/14/10, Andrew Hodgson <Andrew.Hodgson@allpay.net> wrote:
Hi,
That is possible but is rather an extreme measure. What is the issue you have with the virtual domain support, do they want the same list at both domains?
When I built Mailman 2.1.14 on this Debian system I built it on another system and moved the binaries over and used the default /usr/local/mailman. I used the Debian provided startup scripts and cron definitions, modifying them as appropriate. I have my own Apache virtual host files that I use with specific configuration schemes in mind already. It took around an hour to sort everything out.
Andrew.
-----Original Message----- From: blind-sysadmins-bounces@lists.hodgsonfamily.org [mailto:blind-sysadmins-bounces@lists.hodgsonfamily.org] On Behalf Of David Mehler Sent: 14 December 2010 14:45 To: Blind sysadmins list Subject: Re: [Blind-sysadmins] mailman administrator
Hi, Thanks. I just set up a test list on my domain2.com and although it's working I'm really not liking it and the individuals i'm setting this up for probably won't either. I think i'm going to need a second mailman instance, one specifically for this domain so mails coming from it will be completely separate from domain1.com. Your using v2.1.14 can I run that version compiled from source, say installed in /usr/local while the ubuntu packaged version 2.1.12 is used for domain1? If so what issues am I likely to encounter with this approach? Thanks. Dave.
On 12/14/10, Andrew Hodgson <Andrew.Hodgson@allpay.net> wrote:
Hi,
You can't create a list with the same name in more than one domain. The only way to do this is to have multiple Mailman installations. The mailman case is slightly odd in that it uses mailman@domain1.com and mailman@domain2.com based on the vhost the list is in.
Thanks. Andrew.
-----Original Message----- From: blind-sysadmins-bounces@lists.hodgsonfamily.org [mailto:blind-sysadmins-bounces@lists.hodgsonfamily.org] On Behalf Of David Mehler Sent: 14 December 2010 14:24 To: Blind sysadmins list Subject: Re: [Blind-sysadmins] mailman administrator
Hello,
Still having trouble creating this new list. I'm atempting to create a list called mailman in domain2.com already have one for domain1.com and am being told the list already exists. Either I can't do what i'm atempting to do create a list with the same name in two domains or i've got a syntax or config issue. Thanks. Dave.
On 12/14/10, Andrew Hodgson <Andrew.Hodgson@allpay.net> wrote:
Hi,
Yes. admin@domain2.com can be any external address (probably outside domain2.com is best). Password can be omitted and you will be asked for the password - saves typing the password in on the CLI.
Andrew.
-----Original Message----- From: blind-sysadmins-bounces@lists.hodgsonfamily.org [mailto:blind-sysadmins-bounces@lists.hodgsonfamily.org] On Behalf Of David Mehler Sent: 14 December 2010 01:40 To: Blind sysadmins list Subject: Re: [Blind-sysadmins] mailman administrator
Hi Andrew,
Thanks. Set those options. Will your command now create mailing lists in domain2.com:
Newlist -u lists.domain2.com listname admin@domain2.com password
Thanks a lot! Dave.
On 12/13/10, Andrew Hodgson <andrew@hodgsonfamily.org> wrote: > 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 > > > > _______________________________________________ > 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
_______________________________________________ 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
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
participants (6)
-
Andrew Hodgson
-
Andrew Hodgson
-
Billy L. Irwin
-
Brian Dalton
-
Darragh OHeiligh
-
David Mehler