HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Installation/Configuration (http://www.howtoforge.com/forums/forumdisplay.php?f=27)
-   -   How to config mailman (http://www.howtoforge.com/forums/showthread.php?t=60543)

deeeeeeeeeen 13th February 2013 09:11

How to config mailman
 
Hi
I'm a new in Linux, and now trying to install ispconfig on Centos 6.3 final, after installed mailman and start service it says:
Really appreciated for telling me how to fix the problem, Thank you

[root@ispconfig ~]# service mailman start
Starting mailman: Site list is missing: mailman
[FAILED]
I lookup mm_cfg.py it shown follows:

# -*- python -*-

# Copyright (C) 1998,1999,2000 by the Free Software Foundation, Inc.
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
# 02110-1301 USA


"""This is the module which takes your site-specific settings.

From a raw distribution it should be copied to mm_cfg.py. If you
already have an mm_cfg.py, be careful to add in only the new settings
you want. The complete set of distributed defaults, with annotation,
are in ./Defaults. In mm_cfg, override only those you want to
change, after the

from Defaults import *

line (see below).

Note that these are just default settings - many can be overridden via the
admin and user interfaces on a per-list or per-user basis.

Note also that some of the settings are resolved against the active list
setting by using the value as a format string against the
list-instance-object's dictionary - see the distributed value of
DEFAULT_MSG_FOOTER for an example."""


################################################## #####
# Here's where we get the distributed defaults. #

from Defaults import *

################################################## ############
# Put YOUR site-specific configuration below, in mm_cfg.py . #
# See Defaults.py for explanations of the values. #

#-------------------------------------------------------------
# The name of the list Mailman uses to send password reminders
# and similar. Don't change if you want mailman-owner to be
# a valid local part.
MAILMAN_SITE_LIST = 'mailman'

#-------------------------------------------------------------
# If you change these, you have to configure your http server
# accordingly (Alias and ScriptAlias directives in most httpds)
DEFAULT_URL_PATTERN = 'https://%s/cgi-bin/mailman/'
PRIVATE_ARCHIVE_URL = '/cgi-bin/mailman/private'
IMAGE_LOGOS = '/images/mailman/'

#-------------------------------------------------------------
# Default domain for email addresses of newly created MLs
DEFAULT_EMAIL_HOST = ''
#-------------------------------------------------------------
# Default host for web interface of newly created MLs
DEFAULT_URL_HOST = ''
#-------------------------------------------------------------
# Required when setting any of its arguments.
add_virtualhost(DEFAULT_URL_HOST, DEFAULT_EMAIL_HOST)

#-------------------------------------------------------------
# The default language for this server.
DEFAULT_SERVER_LANGUAGE = 'en'

#-------------------------------------------------------------
# Iirc this was used in pre 2.1, leave it for now
USE_ENVELOPE_SENDER = 0 # Still used?

#-------------------------------------------------------------
# Unset send_reminders on newly created lists
DEFAULT_SEND_REMINDERS = 0

#-------------------------------------------------------------
# Uncomment this if you configured your MTA such that it
# automatically recognizes newly created lists.
# (see /usr/share/doc/mailman/README.Exim4.Debian or
# /usr/share/mailman/postfix-to-mailman.py)
# MTA=None # Misnomer, suppresses alias output on newlist

#-------------------------------------------------------------
# Uncomment if you use Postfix virtual domains (but not
# postfix-to-mailman.py), but be sure to see
# /usr/share/doc/mailman/README.Debian first.
MTA='Postfix'
POSTFIX_STYLE_VIRTUAL_DOMAINS = [' ']
#-------------------------------------------------------------
# Uncomment if you want to filter mail with SpamAssassin. For
# more information please visit this website:
# http://www.jamesh.id.au/articles/mailman-spamassassin/
# GLOBAL_PIPELINE.insert(1, 'SpamAssassin')

# Note - if you're looking for something that is imported from mm_cfg, but you
# didn't find it above, it's probably in /usr/lib/mailman/Mailman/Defaults.py.

Parsec 13th February 2013 13:37

I've not used mailman with an ispconfig setup but I jave used it elsewhere on other servers. The 2 lines that are obviously incorrect are:

#-------------------------------------------------------------
# Default domain for email addresses of newly created MLs
DEFAULT_EMAIL_HOST = ''
#-------------------------------------------------------------
# Default host for web interface of newly created MLs
DEFAULT_URL_HOST = ''
#-------------------------------------------------------------

Should be:
DEFAULT_EMAIL_HOST = 'your mailserver name'
(eg: server1.example.com)

DEFAULT_URL_HOST = 'your servers fqdn'
(most probably the name of your server like server1.example.com)

till 13th February 2013 13:55

and the default "mailman" mailinglist is missing, thats what mailman complains about in the error message. Create the mailinglist with the command:

newlist mailman

deeeeeeeeeen 14th February 2013 11:26

Quote:

Originally Posted by till (Post 291987)
and the default "mailman" mailinglist is missing, thats what mailman complains about in the error message. Create the mailinglist with the command:

newlist mailman

I have done following:
[root@ispconfig mailman]# bin/newlist mailman
Create a new, unpopulated mailing list.

Usage: bin/newlist [options][listname[listadmin-addr [admin-password]]]

Options:

-l language
--language=language
Make the list's preferred language `language', which must be a two
letter language code.

-u urlhost
--urlhost=urlhost
Gives the list's web interface host name.

-e emailhost
--emailhost=emailhost
Gives the list's email domain name.

-q/--quiet
Normally the administrator is notified by email (after a prompt) that
their list has been created. This option suppresses the prompt and
notification.

-h/--help
Print this help text and exit.

You can specify as many of the arguments as you want on the command line:
you will be prompted for the missing ones.

Every Mailman list has two parameters which define the default host name for
outgoing email, and the default URL for all web interfaces. When you
configured Mailman, certain defaults were calculated, but if you are running
multiple virtual Mailman sites, then the defaults may not be appropriate for
the list you are creating.

You also specify the domain to create your new list in by typing the command
like so:

newlist --urlhost=www.mydom.ain mylist

where `www.mydom.ain' should be the base hostname for the URL to this virtual
hosts's lists. E.g. with this setting people will view the general list
overviews at http://www.mydom.ain/mailman/listinfo. Also, www.mydom.ain
should be a key in the VIRTUAL_HOSTS mapping in mm_cfg.py/Defaults.py if
the email hostname to be automatically determined.

If you want the email hostname to be different from the one looked up by the
VIRTUAL_HOSTS or if urlhost is not registered in VIRTUAL_HOSTS, you can specify
`emailhost' like so:

newlist --urlhost=www.mydom.ain --emailhost=mydom.ain mylist

where `mydom.ain' is the mail domain name. If you don't specify emailhost but
urlhost is not in the virtual host list, then mm_cfg.DEFAULT_EMAIL_HOST will
be used for the email interface.

For backward compatibility, you can also specify the domain to create your
new list in by spelling the listname like so:

mylist@www.mydom.ain

where www.mydom.ain is used for `urlhost' but it will also be used for
`emailhost' if it is not found in the virtual host table. Note that
'--urlhost' and '--emailhost' have precedence to this notation.

If you spell the list name as just `mylist', then the email hostname will be
taken from DEFAULT_EMAIL_HOST and the url will be taken from DEFAULT_URL (as
defined in your Defaults.py file or overridden by settings in mm_cfg.py).

Note that listnames are forced to lowercase.

List already exists: mailman
[root@ispconfig mailman]# ls
bin cgi-bin cron icons mail Mailman messages pythonlib scripts templates tests
[root@ispconfig mailman]# vi mailman
[root@ispconfig mailman]# service mailman start
Starting mailman: [ OK ]

It seems OK but I am not quite sure the list is correct or not , because I saw error during creating the list, can you advise how to check the list , and how it look should be corrected, Much Thanks

deeeeeeeeeen 14th February 2013 11:30

Quote:

Originally Posted by Parsec (Post 291985)
I've not used mailman with an ispconfig setup but I jave used it elsewhere on other servers. The 2 lines that are obviously incorrect are:

#-------------------------------------------------------------
# Default domain for email addresses of newly created MLs
DEFAULT_EMAIL_HOST = ''
#-------------------------------------------------------------
# Default host for web interface of newly created MLs
DEFAULT_URL_HOST = ''
#-------------------------------------------------------------

Should be:
DEFAULT_EMAIL_HOST = 'your mailserver name'
(eg: server1.example.com)

DEFAULT_URL_HOST = 'your servers fqdn'
(most probably the name of your server like server1.example.com)

Thanks it works, really appreciated


All times are GMT +2. The time now is 21:49.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.