Mailman on FreeBSD

Hotshot

Mailman de Virtualhost

/usr/local/mailman/Mailman/mm_cfg.py

##################################################
# Put YOUR site-specific settings below this line.
DEFAULT_SERVER_LANGUAGE = 'ja'
"$SMTPHOST = mail.smb.net"
MTA = 'Postfix'
#POSTFIX_STYLE_VIRTUAL_DOMAINS = ['thousand-winds.jp']
add_virtualhost('mail.nosmoke.jp','mail.nosmoke.jp')
add_virtualhost('mail.niihama-med.or.jp','mail.niihama-med.or.jp')
add_virtualhost('mail.soundstep.co.jp','mail.soundstep.co.jp')
add_virtualhost('mail.smb.net','mail.smb.net')
DEFAULT_SUBJECT_PREFIX = '[%(real_name)s:%%d]'
#GLOBAL_PIPELINE.insert(0,'behave')
OWNERS_CAN_ENABLE_PERSONALIZATION = Yes

/usr/local/etc/postfix/main.cf

#virtual_alias_domains = niihama-med.or.jp, soundstep.co.jp
virtual_alias_domains = niihama-med.or.jp, soundstep.co.jp, nosmoke.jp

Vertual-mailman バーチャルホスト上で運用中のMailmanに新しいリストを作成した場合 †

Virtualホスト上で運用中のMailmanに新しいリストを作成した際、

/usr/local/mailman/data/virtual-mailman の変更は手動で行う必要がある。

hotshot:root {101} % cd /usr/local/mailman/data
hotshot:root {103} % cp virtual-mailman virtual-mailman-old 
vi /usr/local/mailman/data/virtual-mailman 
nosmoke.jp	anything
uen@nosmoke.jp	uen
uen-admin@nosmoke.jp	uen-admin
uen-bounces@nosmoke.jp	uen-bounces
uen-confirm@nosmoke.jp	uen-confirm
uen-join@nosmoke.jp	uen-join
uen-leave@nosmoke.jp	uen-leave
uen-owner@nosmoke.jp	uen-owner
uen-request@nosmoke.jp	uen-request
uen-subscribe@nosmoke.jp	uen-subscribe
uen-unsubscribe@nosmoke.jp	uen-unsubscribe
# STANZA END: uen
postmap /usr/local/mailman/data/virtual-mailman

mailman 再起動

/usr/local/mailman/bin/mailmanctl restart 

Virtual host の変更

【環境】
FreeBSD 6.3-p6 Postfix(2.3.8) Mailman(version 2.1.9)
○通し番号カスタマイズ○本文機種文字対策菊地先生方式^^
○[mmjp-users 2258] 添付のMIMESubject.patch(by Nagae様)適応済み。
【やりたいこと】
mail.smb.net というメールサーバ上の、virtual domain で運用中の、
Wigand@niihama-med.or.jp というMLを、
Wigand@nosmoke.jp というドメインに変更したい。
【想定している手順】
/usr/local/mailman/data/aliases  には、既にwigandは登録されているので、

# STANZA START: wigand
# CREATED: Thu Aug 16 17:04:29 2007
wigand:             "|/usr/local/mailman/mail/mailman post wigand"
wigand-admin:       "|/usr/local/mailman/mail/mailman admin wigand"
wigand-bounces:     "|/usr/local/mailman/mail/mailman bounces wigand"
wigand-confirm:     "|/usr/local/mailman/mail/mailman confirm wigand"
wigand-join:        "|/usr/local/mailman/mail/mailman join wigand"
wigand-leave:       "|/usr/local/mailman/mail/mailman leave wigand"
wigand-owner:       "|/usr/local/mailman/mail/mailman owner wigand"
wigand-request:     "|/usr/local/mailman/mail/mailman request wigand"
wigand-subscribe:   "|/usr/local/mailman/mail/mailman subscribe wigand"
wigand-unsubscribe: "|/usr/local/mailman/mail/mailman unsubscribe wigand"
# STANZA END: wigand

2)現在/usr/local/mailman/data/virtual-mailman で、 niihama-med.or.jp以下に記載されている

niihama-med.or.jp	anything
wigand@niihama-med.or.jp	wigand
wigand-admin@niihama-med.or.jp	wigand-admin
wigand-bounces@niihama-med.or.jp	wigand-bounces
wigand-confirm@niihama-med.or.jp	wigand-confirm
wigand-join@niihama-med.or.jp	wigand-join
wigand-leave@niihama-med.or.jp	wigand-leave
wigand-owner@niihama-med.or.jp	wigand-owner
wigand-request@niihama-med.or.jp	wigand-request
wigand-subscribe@niihama-med.or.jp	wigand-subscribe
wigand-unsubscribe@niihama-med.or.jp	wigand-unsubscribe
# STANZA END: wigand

の部分を、

nosmoke.jp	anything
wigand@nosumoke.jp	wigand
wigand-admin@nosumoke.jp	wigand-admin
wigand-bounces@nosumoke.jp	wigand-bounces
wigand-confirm@nosumoke.jp	wigand-confirm
wigand-join@nosumoke.jp	wigand-join
wigand-leave@nosumoke.jp	wigand-leave
wigand-owner@nosumoke.jp	wigand-owner
wigand-request@nosumoke.jp	wigand-request
wigand-subscribe@nosumoke.jp	wigand-subscribe
wigand-unsubscribe@nosumoke.jp	wigand-unsubscribe
# STANZA END: wigand

と書き換え、

postmap /usr/local/mailman/data/virtual-mailman

する。

さらに、admin ページで、「メールの送信に使うホスト名(ドメイン名)」 (host_name)を変更する必要があります。

また、場合によっては、Webpage URL を変更する必要があると 思いますが、その場合、bin/fix_url.py を使ってください。

hotshot:root {112} % bin/withlist -l -r fix_url wigand -u mail.nosmoke.jp
Importing fix_url...
Running fix_url.fix_url()...
Loading list wigand (locked)
Saving list
Finalizing
hotshot:root {113} %
% bin/withlist -l -r fix_url listname [options]

Options:
   -u urlhost
   --urlhost=urlhost
       Look up urlhost in the virtual host table and set the web_page_url and
       host_name attributes of the list to the values found.  This
       essentially moves the list from one virtual domain to another.

       Without this option, the default web_page_url and host_name values are
       used.

   -v / --verbose
       Print what the script is doing.

Piano

/usr/local/etc/postfix/main.cf

#virtual_alias_domains = niihama-med.or.jp, soundstep.co.jp
virtual_alias_domains = thousand-winds.net
#modify 20081020 for Mailman
virtual_alias_maps =  hash:/usr/local/etc/postfix/virtual,hash:/usr/local/mailman/data/virtual-mailman
#add for Mailman##########################################20081020
CoolMaster:root {78} % touch virtual-mailman
CoolMaster:root {79} % postmap /usr/local/mailman/data/virtual-mailman
CoolMaster:root {80} % postfix reload
postfix/postfix-script: refreshing the Postfix mail system

トップ   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS