yum -y install mailman vi /etc/mailman/mm_cfg.py DEFAULT_URL_HOST = '192.168.20.64' DEFAULT_EMAIL_HOST = 'localhost.localdomain' add_virtualhost(DEFAULT_URL_HOST, DEFAULT_EMAIL_HOST) MTA = 'Postfix' DEFAULT_SERVER_LANGUAGE = 'ja' DEFAULT_URL_PATTERN = 'https://%s/mailman/' DEFAULT_LIST_ADVERTISED = No OWNERS_CAN_DELETE_THEIR_OWN_LISTS = Yes DEFAULT_SUBJECT_PREFIX = "[%(real_name)s:%%d] " DEFAULT_REPLY_GOES_TO_LIST = 1 DEFAULT_NEW_MEMBER_OPTIONS = 258 DEFAULT_GENERIC_NONMEMBER_ACTION = 2 /usr/lib/mailman/bin/mmsitepass 111111 cp /usr/lib/mailman/cron/crontab.in /etc/rc.d/mailman /usr/lib/mailman/bin/genaliases chown mailman. /etc/mailman/aliases* chmod g+w /etc/mailman/aliases* vi /etc/postfix/main.cf alias_maps = hash:/etc/aliases, hash:/etc/mailman/aliases vi /etc/httpd/conf.d/mailman.conf vi /etc/httpd/conf.d/mailman.conf ScriptAlias /mailman/ /usr/lib/mailman/cgi-bin/ SSLRequireSSL AllowOverride None Options ExecCGI Order allow,deny Allow from all weg http://mars.homelinux.net/~kazuhiko/Computer/Mailman/pykf-0.3.4.tgz cd pykf-0.3.4 python setup.py install vi /etc/postfix/main.cf import japanese # import japanese codec to setup encodings.aliases. import codecs, pykf class iso2022jp_trad(codecs.Codec): def encode(self, s, errors="strict"): ret = s.encode("ms932", "replace") ret = pykf.tojis(ret, pykf.SJIS, j0208=True) #xxxx: pykf should return lenth not consumed. return (ret, len(s)) def decode(self, s, errors="strict"): ret = pykf.tosjis(s, pykf.JIS) ret = unicode(ret, "ms932", "replace") return ret, len(s) class iso2022jp_trad_writer(iso2022jp_trad, codecs.StreamWriter): pass class iso2022jp_trad_reader(iso2022jp_trad, codecs.StreamReader): pass class eucjp_trad(codecs.Codec): def encode(self, s, errors="strict"): ret = s.encode("ms932", "replace") ret = pykf.toeuc(ret, pykf.SJIS) #xxxx: pykf should return lenth not consumed. return (ret, len(s)) def decode(self, s, errors="strict"): ret = pykf.tosjis(s, pykf.EUC) ret = unicode(ret, "ms932", "replace") return ret, len(s) class eucjp_trad_writer(iso2022jp_trad, codecs.StreamWriter): pass class eucjp_trad_reader(eucjp_trad, codecs.StreamReader): pass # create codec module import sys, imp m = imp.new_module("iso2022_trad") m.getregentry = lambda : (iso2022jp_trad().encode, iso2022jp_trad().decode, iso2022jp_trad_reader, iso2022jp_trad_writer) sys.modules['iso2022_trad'] = m m = imp.new_module("eucjp_trad") m.getregentry = lambda : (eucjp_trad().encode, eucjp_trad().decode, eucjp_trad_reader, eucjp_trad_writer) sys.modules['eucjp_trad'] = m # register alias import encodings.aliases encodings.aliases.aliases.update({ 'euc_jp': 'eucjp_trad', 'iso_2022_jp': 'iso2022_trad', 'iso_2022_jp_1': 'iso2022_trad', 'iso_2022_jp_ext': 'iso2022_trad', }) # clear encoding cache import encodings encodings._cache.clear() # update email.Charset.CODEC_MAP import email.Charset email.Charset.CODEC_MAP.update({ 'euc-jp': 'eucjp_trad', 'iso-2022-jp': 'iso2022_trad', 'shift_jis': 'iso2022_trad', }) /usr/lib/mailman/bin/newlist mailman /etc/rc.d/init.d/mailman start