Mailman on FreeBSD
をテンプレートにして作成
[
トップ
] [
新規
|
一覧
|
検索
|
最終更新
|
ヘルプ
|
ログイン
]
開始行:
CONTENTS
#contents
----
Lastmodified &lastmod;
----
*Mailmanのインストール [#kcf1d8a2]
本家.菊地時夫先生のサイトのインストールマニュアルはこちら
+[[portsでインストール>#oe512e9c]]
+[[Mailmanのチェック>#x9399738]]
+[[Apacheとの接続>#nd16424e]]
+[[Postfixとの接続>#r316984c]]
+[[mailmanの設定>#r4270433]]
**portsでインストール 2013/10/20 [#e0ece436]
# portinstall japanese/mailman
&ref(mailman_install.PNG);
以前は、
# cd /usr/ports/japanese/mailman --> portinstall mail/m...
# make MAIL_GID=mailman CGI_GID=www install -->or? porti...
みたいな事をしていた様なので、ちょっと、/usr/ports/japane...
--------------------------------------------------------...
Mailman has been installed, but requires further configu...
You will have to configure both your MTA (mail server) a...
integrate with Mailman. If the port's documentation has...
extensive post-installation instructions may be found in:
/usr/local/share/doc/mailman/FreeBSD-post-install-notes
Note (1): If you use an alternate (non-Sendmail) MTA, y...
that the correct value of MAIL_GID was used when this po...
was built. Performing a "make config" in the Mailman po...
you can choose your MTA with the correct MAIL_GID.
Note (2): The entire Mailman installation resides under...
The command-line scripts necessary to administer Mailman...
installed in /usr/local/mailman/bin
Note (3): As of version 2.1, Mailman's queue runner run...
is started by a script in /usr/local/etc/rc.d
In order to make private archives searchable with namazu...
or link /usr/local/libexec/namazu.cgi to
/usr/local/mailman/archives/private/<ML name>/ and confi...
to refer to /usr/local/etc/namazu/namazu-sample.
See also
http://www.python.jp/pipermail/mailman-users-jp/2004-Aug...
written in Japanese.
--------------------------------------------------------...
Your Postfix hostname is non-default.
You must add "SMTPHOST = g7.kuji-clinic.net" to the bott...
===> Correct pkg-plist sequence to create group(s) and u...
===> Registering installation for ja-mailman-2.1.14.j7,1
===> SECURITY REPORT:
This port has installed the following binaries whi...
increased privileges.
/usr/local/mailman/cgi-bin/create
/usr/local/mailman/cgi-bin/subscribe
/usr/local/mailman/mail/mailman
/usr/local/mailman/cgi-bin/listinfo
/usr/local/mailman/cgi-bin/rmlist
/usr/local/mailman/cgi-bin/options
/usr/local/mailman/cgi-bin/private
/usr/local/mailman/cgi-bin/admindb
/usr/local/mailman/cgi-bin/edithtml
/usr/local/mailman/cgi-bin/roster
/usr/local/mailman/cgi-bin/admin
/usr/local/mailman/cgi-bin/confirm
If there are vulnerabilities in these programs the...
risk to the system. FreeBSD makes no guarantee abo...
ports included in the Ports Collection. Please typ...
to deinstall the port if this is a concern.
For more information, and contact details about th...
status of this software, see the following webpage:
http://www.python.jp/doc/contrib/mailman/releases.html
===> Cleaning for ja-mailman-2.1.14.j7,1
インストール直後では、mailman ユーザが反映されておらず、
mailman:*:91:91::0:0:Mailman User:/usr/local/mailman:/us...
一度、reboot.
取り敢えず、/usr/local/mailman 以下のオーナをmailmanに
chown -R mailman:mailman /usr/local/mailman/
**Mailmanのチェック [#x9399738]
# cd /usr/local/mailman
# bin/check_perms -f
または、
# /usr/local/mailman/bin/check_perms -f
Warning: Private archive directory is other-executable (...
This could allow other users on your system to r...
If you're on a shared multiuser system, you shou...
installation manual on how to fix this.
No problems found
ということで、
# chown www /usr/local/mailman/archives/private
# chmod o-x /usr/local/mailman/archives/private
して、
# /usr/local/mailman/bin/check_perms -f
すると、
No problems found
# vi /usr/local/mailman/Mailman/mm_cfg.py
最期の行に
#################################################
DEFAULT_SUBJECT_PREFIX = '[%(real_name)s:%%d]'
OWNERS_CAN_ENABLE_PERSONALIZATION = Yes
OWNERS_CAN_DELETE_THEIR_OWN_LISTS = Yes
DEFAULT_EMAIL_HOST = 'g7.kuji-clinic.net'
DEFAULT_URL_HOST = 'g7.kuji-clinic.net'
"$SMTPHOST = g7.kuji-clinic.net"
add_virtualhost('210.255.122.215','210.255.122.215')
add_virtualhost('sns.kuji-clinic.net','sns.kuji-clinic.n...
を加える。
Mailmanのインストールの後、メールサーバとウエッブサーバへ...
**Apacheとの接続 [#nd16424e]
cp /usr/local/mailman/icons/* /webのtop-pageのディレクト...
mkdir /usr/local/www/apache22/data/icons
cp /usr/local/mailman/icons/* /usr/local/www/apache22/da...
vi /usr/local/etc/apache22/httpd.conf
<IfModule alias_module>
ScriptAlias /mailman/ "/usr/local/mailman/cgi-bin/"
Alias /pipermail/ "/usr/local/mailman/archives/public/"
</IfModule>
<Directory "/usr/local/mailman">
Options FollowSymLinks ExecCGI
AllowOverride None
Order allow,deny
Allow from all
</Directory>
apachectl configtest
apachectl restart
http://www.nw.is.kyusan-u.ac.jp/xoops/modules/bwiki/index...
**Postfixとの接続 [#r316984c]
# vi /usr/local/etc/postfix/main.cf
alias_maps = hash:/etc/mail/aliases
alias_database = hash:/etc/mail/aliases
↓(変更する)↓
alias_maps = hash:/etc/mail/aliases,
hash:/usr/local/mailman/data/aliases <--行頭にTAB...
alias_database = hash:/etc/mail/aliases, hash:/usr/local...
owner_request_special = no
recipient_delimiter = +
unknown_local_recipient_reject_code = 550
postfix stop
postfix start
**mailmanの設定 [#r4270433]
# vi /usr/local/mailman/Mailman/mm_cfg.py
DEFAULT_SERVER_LANGUAGE = 'ja'
DEFAULT_EMAIL_HOST = 'mail.hogehoge.jp'
DEFAULT_URL_HOST = 'www.hogehoge.jp'
MTA = 'Postfix'
bin/genaliases スクリプトを実行して aliases ファイルを初...
# cd /usr/local/mailman
# bin/genaliases
# chown mailman:mailman data/aliases*
# chmod g+w data/aliases*
つづいてサイト全体のリストを作成。
# bin/newlist mailman
Enter the email of the person running the list: kuji@smb...
Initial mailman password:
Hit enter to notify mailman owner...
★サイトのパスワードを変更するには、
/usr/local/mailman/bin/mmsitepass コマンドで変更
http://mm.tkikuchi.net/mailman-install/node40.html
**mailman起動 [#o5007d5e]
/usr/local/mailman/bin/mailmanctl start
起動時に自動起動するには /etc/rc.conf
mailman_enable="YES"
を記述
***Mailmanで最初のリストを作成する [#f674ceee]
URL http://210.255.122.220/mailman/create を開いてくださ...
----
http://www.voyager.gr.jp/~sampei/freebsd/mailman.html
*bin/rmlist sinonome48 [#ibabd866]
hotshot# bin/rmlist sinonome48
Not removing archives. Reinvoke with -a to remove them.
/usr/sbin/postmap: not found
Traceback (most recent call last):
File "bin/rmlist", line 161, in <module>
main()
File "bin/rmlist", line 122, in main
sys.modules[modname].remove(mlist)
File "/usr/local/mailman/Mailman/MTA/Postfix.py", line ...
_update_maps()
File "/usr/local/mailman/Mailman/MTA/Postfix.py", line ...
raise RuntimeError, msg % (vcmd, status, errstr)
RuntimeError: command failed: /usr/sbin/postmap /usr/loc...
hotshot#
hotshot# locate postmap
/usr/Backups/hotshot/usr/local/man/man1/postmap.1.gz
/usr/Backups/hotshot/usr/local/sbin/postmap
/usr/Backups/hotshot/usr/local/share/doc/postfix/postmap...
/usr/local/man/man1/postmap.1.gz
/usr/local/sbin/postmap
/usr/local/share/doc/postfix/postmap.1.html
hotshot#
hotshot# ln -s /usr/local/sbin/postmap /usr/sbin/
hotshot# bin/rmlist sinonome48
Not removing archives. Reinvoke with -a to remove them.
Removing list info
hotshot#
*Error Undelivered Mail Returned to Sender [#e982931c]
2012/08/30
The mail system
<sns_rs_base@k222.kuji-clinic.net>: Command died with st...
"/usr/local/mailman/mail/mailman post sns_rs_base". C...
mismatch error. Mailman expected the mail wrapper sc...
group "nobody", but the system's mail server executed...
group "mailman". Try tweaking the mail server to run...
"nobody", or re-run configure, providing the command...
`--with-mail-gid=mailman'.
というエラー。
/usr/ports/japanese/mailman
で、
# make deinstall
# make rmconfig
# portinstall japanese/mailman
として、postfix integrate と postfix にチェックをいれて...
----
Total access &counter(total);:本日 &counter(today);:昨...
#counter([total|today|yesterday]);
終了行:
CONTENTS
#contents
----
Lastmodified &lastmod;
----
*Mailmanのインストール [#kcf1d8a2]
本家.菊地時夫先生のサイトのインストールマニュアルはこちら
+[[portsでインストール>#oe512e9c]]
+[[Mailmanのチェック>#x9399738]]
+[[Apacheとの接続>#nd16424e]]
+[[Postfixとの接続>#r316984c]]
+[[mailmanの設定>#r4270433]]
**portsでインストール 2013/10/20 [#e0ece436]
# portinstall japanese/mailman
&ref(mailman_install.PNG);
以前は、
# cd /usr/ports/japanese/mailman --> portinstall mail/m...
# make MAIL_GID=mailman CGI_GID=www install -->or? porti...
みたいな事をしていた様なので、ちょっと、/usr/ports/japane...
--------------------------------------------------------...
Mailman has been installed, but requires further configu...
You will have to configure both your MTA (mail server) a...
integrate with Mailman. If the port's documentation has...
extensive post-installation instructions may be found in:
/usr/local/share/doc/mailman/FreeBSD-post-install-notes
Note (1): If you use an alternate (non-Sendmail) MTA, y...
that the correct value of MAIL_GID was used when this po...
was built. Performing a "make config" in the Mailman po...
you can choose your MTA with the correct MAIL_GID.
Note (2): The entire Mailman installation resides under...
The command-line scripts necessary to administer Mailman...
installed in /usr/local/mailman/bin
Note (3): As of version 2.1, Mailman's queue runner run...
is started by a script in /usr/local/etc/rc.d
In order to make private archives searchable with namazu...
or link /usr/local/libexec/namazu.cgi to
/usr/local/mailman/archives/private/<ML name>/ and confi...
to refer to /usr/local/etc/namazu/namazu-sample.
See also
http://www.python.jp/pipermail/mailman-users-jp/2004-Aug...
written in Japanese.
--------------------------------------------------------...
Your Postfix hostname is non-default.
You must add "SMTPHOST = g7.kuji-clinic.net" to the bott...
===> Correct pkg-plist sequence to create group(s) and u...
===> Registering installation for ja-mailman-2.1.14.j7,1
===> SECURITY REPORT:
This port has installed the following binaries whi...
increased privileges.
/usr/local/mailman/cgi-bin/create
/usr/local/mailman/cgi-bin/subscribe
/usr/local/mailman/mail/mailman
/usr/local/mailman/cgi-bin/listinfo
/usr/local/mailman/cgi-bin/rmlist
/usr/local/mailman/cgi-bin/options
/usr/local/mailman/cgi-bin/private
/usr/local/mailman/cgi-bin/admindb
/usr/local/mailman/cgi-bin/edithtml
/usr/local/mailman/cgi-bin/roster
/usr/local/mailman/cgi-bin/admin
/usr/local/mailman/cgi-bin/confirm
If there are vulnerabilities in these programs the...
risk to the system. FreeBSD makes no guarantee abo...
ports included in the Ports Collection. Please typ...
to deinstall the port if this is a concern.
For more information, and contact details about th...
status of this software, see the following webpage:
http://www.python.jp/doc/contrib/mailman/releases.html
===> Cleaning for ja-mailman-2.1.14.j7,1
インストール直後では、mailman ユーザが反映されておらず、
mailman:*:91:91::0:0:Mailman User:/usr/local/mailman:/us...
一度、reboot.
取り敢えず、/usr/local/mailman 以下のオーナをmailmanに
chown -R mailman:mailman /usr/local/mailman/
**Mailmanのチェック [#x9399738]
# cd /usr/local/mailman
# bin/check_perms -f
または、
# /usr/local/mailman/bin/check_perms -f
Warning: Private archive directory is other-executable (...
This could allow other users on your system to r...
If you're on a shared multiuser system, you shou...
installation manual on how to fix this.
No problems found
ということで、
# chown www /usr/local/mailman/archives/private
# chmod o-x /usr/local/mailman/archives/private
して、
# /usr/local/mailman/bin/check_perms -f
すると、
No problems found
# vi /usr/local/mailman/Mailman/mm_cfg.py
最期の行に
#################################################
DEFAULT_SUBJECT_PREFIX = '[%(real_name)s:%%d]'
OWNERS_CAN_ENABLE_PERSONALIZATION = Yes
OWNERS_CAN_DELETE_THEIR_OWN_LISTS = Yes
DEFAULT_EMAIL_HOST = 'g7.kuji-clinic.net'
DEFAULT_URL_HOST = 'g7.kuji-clinic.net'
"$SMTPHOST = g7.kuji-clinic.net"
add_virtualhost('210.255.122.215','210.255.122.215')
add_virtualhost('sns.kuji-clinic.net','sns.kuji-clinic.n...
を加える。
Mailmanのインストールの後、メールサーバとウエッブサーバへ...
**Apacheとの接続 [#nd16424e]
cp /usr/local/mailman/icons/* /webのtop-pageのディレクト...
mkdir /usr/local/www/apache22/data/icons
cp /usr/local/mailman/icons/* /usr/local/www/apache22/da...
vi /usr/local/etc/apache22/httpd.conf
<IfModule alias_module>
ScriptAlias /mailman/ "/usr/local/mailman/cgi-bin/"
Alias /pipermail/ "/usr/local/mailman/archives/public/"
</IfModule>
<Directory "/usr/local/mailman">
Options FollowSymLinks ExecCGI
AllowOverride None
Order allow,deny
Allow from all
</Directory>
apachectl configtest
apachectl restart
http://www.nw.is.kyusan-u.ac.jp/xoops/modules/bwiki/index...
**Postfixとの接続 [#r316984c]
# vi /usr/local/etc/postfix/main.cf
alias_maps = hash:/etc/mail/aliases
alias_database = hash:/etc/mail/aliases
↓(変更する)↓
alias_maps = hash:/etc/mail/aliases,
hash:/usr/local/mailman/data/aliases <--行頭にTAB...
alias_database = hash:/etc/mail/aliases, hash:/usr/local...
owner_request_special = no
recipient_delimiter = +
unknown_local_recipient_reject_code = 550
postfix stop
postfix start
**mailmanの設定 [#r4270433]
# vi /usr/local/mailman/Mailman/mm_cfg.py
DEFAULT_SERVER_LANGUAGE = 'ja'
DEFAULT_EMAIL_HOST = 'mail.hogehoge.jp'
DEFAULT_URL_HOST = 'www.hogehoge.jp'
MTA = 'Postfix'
bin/genaliases スクリプトを実行して aliases ファイルを初...
# cd /usr/local/mailman
# bin/genaliases
# chown mailman:mailman data/aliases*
# chmod g+w data/aliases*
つづいてサイト全体のリストを作成。
# bin/newlist mailman
Enter the email of the person running the list: kuji@smb...
Initial mailman password:
Hit enter to notify mailman owner...
★サイトのパスワードを変更するには、
/usr/local/mailman/bin/mmsitepass コマンドで変更
http://mm.tkikuchi.net/mailman-install/node40.html
**mailman起動 [#o5007d5e]
/usr/local/mailman/bin/mailmanctl start
起動時に自動起動するには /etc/rc.conf
mailman_enable="YES"
を記述
***Mailmanで最初のリストを作成する [#f674ceee]
URL http://210.255.122.220/mailman/create を開いてくださ...
----
http://www.voyager.gr.jp/~sampei/freebsd/mailman.html
*bin/rmlist sinonome48 [#ibabd866]
hotshot# bin/rmlist sinonome48
Not removing archives. Reinvoke with -a to remove them.
/usr/sbin/postmap: not found
Traceback (most recent call last):
File "bin/rmlist", line 161, in <module>
main()
File "bin/rmlist", line 122, in main
sys.modules[modname].remove(mlist)
File "/usr/local/mailman/Mailman/MTA/Postfix.py", line ...
_update_maps()
File "/usr/local/mailman/Mailman/MTA/Postfix.py", line ...
raise RuntimeError, msg % (vcmd, status, errstr)
RuntimeError: command failed: /usr/sbin/postmap /usr/loc...
hotshot#
hotshot# locate postmap
/usr/Backups/hotshot/usr/local/man/man1/postmap.1.gz
/usr/Backups/hotshot/usr/local/sbin/postmap
/usr/Backups/hotshot/usr/local/share/doc/postfix/postmap...
/usr/local/man/man1/postmap.1.gz
/usr/local/sbin/postmap
/usr/local/share/doc/postfix/postmap.1.html
hotshot#
hotshot# ln -s /usr/local/sbin/postmap /usr/sbin/
hotshot# bin/rmlist sinonome48
Not removing archives. Reinvoke with -a to remove them.
Removing list info
hotshot#
*Error Undelivered Mail Returned to Sender [#e982931c]
2012/08/30
The mail system
<sns_rs_base@k222.kuji-clinic.net>: Command died with st...
"/usr/local/mailman/mail/mailman post sns_rs_base". C...
mismatch error. Mailman expected the mail wrapper sc...
group "nobody", but the system's mail server executed...
group "mailman". Try tweaking the mail server to run...
"nobody", or re-run configure, providing the command...
`--with-mail-gid=mailman'.
というエラー。
/usr/ports/japanese/mailman
で、
# make deinstall
# make rmconfig
# portinstall japanese/mailman
として、postfix integrate と postfix にチェックをいれて...
----
Total access &counter(total);:本日 &counter(today);:昨...
#counter([total|today|yesterday]);
ページ名: