Expires: Fri, 05 Aug 2005 03:12:11 GMT Date: Fri, 05 Aug 2005 03:12:01 GMT Pragma: no-cache Last-modified: Fri Aug 5 03:12:01 2005 Cache-control: no-cache Content-Type: text/html; charset=gb2312
bash# groupadd mailman bash# useradd -g mailman -M -s /sbin/nologin mailman bash# mkdir -p /usr/local/mailman bash# chown -R mailman.mailman /usr/local/mailman bash# chmod -R 2775 /usr/local/mailman
bash# tar zxvf mailman-2.1.3.tar.gz bash# cd mailman-2.1.3/misc bash# cp path/ChineseCodecs-1.1.0p.tar.gz .
--- Makefile.in.org +++ Makefile.in @@ -54,8 +54,9 @@ EMAILPKG= email-2.5.4 JACODECSPKG= JapaneseCodecs-1.4.9 KOCODECSPKG= KoreanCodecs-2.0.5 +CNCODECSPKG= ChineseCodecs-1.1.0p -PACKAGES= $(EMAILPKG) $(JACODECSPKG) $(KOCODECSPKG) +PACKAGES= $(EMAILPKG) $(JACODECSPKG) $(KOCODECSPKG) $(CNCODECSPKG) # Modes for directories and executables created by the install # process. Default to group-writable directories but
bash# cat >>paths.py.in<<EOF import chinesetw import chinesecn EOF
bash# ./configure --with-mail-gid=mail --with-cgi-gid=nobody --prefix=/usr/local/mailman
bash# grep DefaultUser /etc/mail/sendmail.cf O DefaultUser=8:12 bash# grep -w 12 /etc/group mail:x:12:mail bash# grep "^User\|^Group" /etc/httpd.conf User nobody Group nobody
bash# make bash# make install
bash# cd /usr/local/mailman bash# bin/check_perms bash# bin/check_perms -f
Exec /mailman/* $prefix/cgi-bin/*
or:
ScriptAlias /mailman/ $prefix/cgi-bin/
bash# cp $prefix/icons/*.{jpg,png} /path/to/apache/images
Alias /pipermail/ $varprefix/archives/public/
<Directory "/usr/local/mailman/archives/public/">
AddDefaultCharset Off
</Directory>
bash# service httpd restart
define(`ALIAS_FILE', `/etc/aliases,/etc/aliases.mailman')dnl
bash# m4 sendmail.mc > sendmail.cf bash# touch /etc/aliases.mailman bash# service sendmail restart
DEFAULT_SERVER_LANGUAGE = 'gb'
IMAGE_LOGOS = '/images/'
DEFAULT_EMAIL_HOST = 'localhost.localdomain' DEFAULT_URL_HOST = 'localhost.localdomain' add_virtualhost(DEFAULT_URL_HOST, DEFAULT_EMAIL_HOST)
# Should a list, by default be advertised? What is the default maximum number # of explicit recipients allowed? What is the default maximum message size # allowed? DEFAULT_MAX_NUM_RECIPIENTS = 50 DEFAULT_MAX_MESSAGE_SIZE = 0 # KB DEFAULT_DIGEST_SIZE_THRESHHOLD = 1000 # KB # What shold happen to non-member posts which are do not match explicit # non-member actions? # 0 = Accept # 1 = Hold # 2 = Reject # 3 = Discard DEFAULT_GENERIC_NONMEMBER_ACTION = 0 # Mailman can be configured to "munge" Reply-To: headers for any passing # messages. One the one hand, there are a lot of good reasons not to munge # Reply-To: but on the other, people really seem to want this feature. See # the help for reply_goes_to_list in the web UI for links discussing the # issue. # 0 - Reply-To: not munged # 1 - Reply-To: set back to the list # 2 - Reply-To: set to an explicit value (reply_to_address) DEFAULT_REPLY_GOES_TO_LIST = 1 DEFAULT_MSG_FOOTER = """_______________________________________________ %(real_name)s mailing list email address: %(real_name)s@%(host_name)s list homepage: %(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s web archive : http://hostname/pipermail/%(_internal_name)s """
bash$ bin/newlist mailman bash$ bin/config_list -i data/sitelist.cfg mailman
bash# cd $prefix/cron
bash# crontab -u mailman crontab.in
or
bash#su - mailman
bash#crontab crontab.in
bash# bin/mailmanctl start
bash# scripts/mailman /etc/init.d/mailman bash# chkconfig --add mailman
bash# $prefix/bin/mmsitepass <your-site-password>
bash# bin/mmsitepass
############################################### # Here's where we get the distributed defaults. from Defaults import * ################################################## # Put YOUR site-specific settings below this line. IMAGE_LOGOS = '/images/' DEFAULT_EMAIL_HOST = 'cvs.rd.is-one.net' DEFAULT_URL_HOST = '10.0.0.7' add_virtualhost(DEFAULT_URL_HOST, DEFAULT_EMAIL_HOST) # Should a list, by default be advertised? What is the default maximum number # of explicit recipients allowed? What is the default maximum message size # allowed? DEFAULT_MAX_NUM_RECIPIENTS = 50 DEFAULT_MAX_MESSAGE_SIZE = 0 # KB DEFAULT_DIGEST_SIZE_THRESHHOLD = 1000 # KB # What shold happen to non-member posts which are do not match explicit # non-member actions? # 0 = Accept # 1 = Hold # 2 = Reject # 3 = Discard DEFAULT_GENERIC_NONMEMBER_ACTION = 0 # Mailman can be configured to "munge" Reply-To: headers for any passing # messages. One the one hand, there are a lot of good reasons not to munge # Reply-To: but on the other, people really seem to want this feature. See # the help for reply_goes_to_list in the web UI for links discussing the # issue. # 0 - Reply-To: not munged # 1 - Reply-To: set back to the list # 2 - Reply-To: set to an explicit value (reply_to_address) DEFAULT_REPLY_GOES_TO_LIST = 1 DEFAULT_MSG_FOOTER = """_______________________________________________ %(real_name)s mailing list email address: %(real_name)s@%(host_name)s web archive : http://10.0.0.7/pipermail/%(_internal_name)s """
bash# bin/newlist listname [listadmin-addr [admin-password]]
bash# echo subscriber@host.name | bin/add_members -r - -wn -an listname
bash# bin/config_list -o filename listname
bash# bin/config_list -i filename listname
Dec 24 15:10:50 2003 (3526) SHUNTING: 1072249849.865207+77db27f35a1302967488b48a43f814f47a2886c7
Dec 24 15:11:57 2003 (3526) Uncaught runner exception: unknown encoding: gb2312
Dec 24 15:11:57 2003 (3526) Traceback (most recent call last):
File "/usr/local/mailman/Mailman/Queue/Runner.py", line 110, in _oneloop
self._onefile(msg, msgdata)
File "/usr/local/mailman/Mailman/Queue/Runner.py", line 160, in _onefile
keepqueued = self._dispose(mlist, msg, msgdata)
File "/usr/local/mailman/Mailman/Queue/IncomingRunner.py", line 130, in _dispose
more = self._dopipeline(mlist, msg, msgdata, pipeline)
File "/usr/local/mailman/Mailman/Queue/IncomingRunner.py", line 153, in _dopipeline
sys.modules[modname].process(mlist, msg, msgdata)
File "/usr/local/mailman/Mailman/Handlers/CookHeaders.py", line 75, in process
prefix_subject(mlist, msg, msgdata)
File "/usr/local/mailman/Mailman/Handlers/CookHeaders.py", line 262, in prefix_subject
h.append(s, c)
File "/usr/local/mailman/pythonlib/email/Header.py", line 285, in append
s = s.encode(outcodec, errors)
LookupError: unknown encoding: gb2312
bash# msgfmt -v -o mailman.mo mailman.po
bash# bin/transcheck gb