#author("2023-10-19T03:50:03+09:00","default:kuji","kuji") #author("2023-10-19T05:51:03+09:00","default:kuji","kuji") CONTENTS #contents ---- Lastmodified &lastmod; ---- */etc/rc.conf [#yf518389] mailman_enable="YES" * portinstall japanese/mailman [#w562ee19] ---------------------------------------------------------------------------- Installing ja-mailman-2.1.14.j7_2,1... ===> Creating groups. Creating group 'mailman' with gid '91'. ===> Creating users Creating user 'mailman' with uid '91'. ---> Starting post-install script ---> Running update Upgrading from version 0x0 to 0x2010ef0 getting rid of old source files no lists == nothing to do, exiting ---> Checking crontab(5) file for user "mailman" ---> Creating crontab(5) file for user "mailman" ---> Checking (and fixing) file and directory permissions ---------------------------------------------------------------------------- Mailman has been installed, but requires further configuration before use! You will have to configure both your MTA (mail server) and web server to integrate with Mailman. If the port's documentation has been installed, extensive post-installation instructions may be found in: /usr/local/share/doc/mailman/FreeBSD-post-install-notes Note (1): If you use an alternate MTA (meaning "not Sendmail"), you MUST be sure that the correct value of MAIL_GID was used when this port or package was built. You can choose your MTA with the correct MAIL_GID by running "make config" in the Mailman port directory. Note (2): The entire Mailman installation resides under /usr/local/mailman. The command-line scripts necessary to administer Mailman have been installed in /usr/local/mailman/bin. Note (3): As of version 2.1, Mailman's queue runner runs as a daemon and is started by a script in /usr/local/etc/rc.d In order to make private archives searchable with namazu2, you need copy or link /usr/local/libexec/namazu.cgi to /usr/local/mailman/archives/private/<ML_name>/ and configure .namazurc to refer to /usr/local/etc/namazu/namazu-sample. You can also see the Japanese document in <http://www.python.jp/pipermail/mailman-users-jp/2004-August/001008.html> ---------------------------------------------------------------------------- ===> SECURITY REPORT: This port has installed the following binaries which execute with 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 there may be a security risk to the system. FreeBSD makes no guarantee about the security of ports included in the Ports Collection. Please type 'make deinstall' to deinstall the port if this is a concern. For more information, and contact details about the security 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_2,1 blackcube# chown -R mailman:mailman mailman blackcube# cd mailman blackcube# ll blackcube# bin/check_perms -f blackcube# chown www /usr/local/mailman/archives/private blackcube# chmod o-x /usr/local/mailman/archives/private blackcube# bin/check_perms -f No problems found *Apacheとの接続 [#l83d1d25] /usr/local/etc/apache24/Includes/mailman.conf <IfModule alias_module> ScriptAlias /mailman/ "/usr/local/mailman/cgi-bin/" Alias /pipermail/ "/usr/local/mailman/archives/public/" Alias /icons/ "/usr/local/www/icons/" </IfModule> <Directory "/usr/local/mailman/"> Options FollowSymLinks ExecCGI AllowOverride None Require all granted </Directory> <Directory "/usr/local/www/icons/"> Require all granted </Directory> blackcube# apachectl configtest Syntax OK blackcube# apachectl restart blackcube# *Postfixとの接続 [#vadc2d31] # 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/mailman/data/aliases owner_request_special = no recipient_delimiter = + unknown_local_recipient_reject_code = 550 postfix reload *mailmanの設定 [#o4800a67] # Put YOUR site-specific settings below this line. DEFAULT_SERVER_LANGUAGE = 'ja' DEFAULT_EMAIL_HOST = 'mail.smb.net' DEFAULT_URL_HOST = 'www.smb.net' MTA = 'Postfix' USE_MAILMAN_MESSAGE_ID = Yes "SMTPHOST = blackcube.smb.net" 設定のデフォルト値 [[Defaults.py.2_1_39.utf-8.txt:https://mm.poem.co.jp/mailman-jp/ja_translations/Defaults.py.2_1_39.utf-8.txt]] *mailmanで新しいリストを作る [#ifcc7049] bin/genaliases スクリプトを実行して aliases ファイルを初期化 また、新しいリストを作ろう また、新しいリストを作っておかないと、mailman の qランナー が起動しない blackcube# bin/newlist mailman Enter the email of the person running the list: kuji@my.domain Initial mailman password: hogehoge すると kuji@my.domain へ、新規リスト作成報告メールが届く。 http://maniawanele.blog64.fc2.com/blog-entry-24.html * リスト削除 [#o36daebd] /usr/local/mailman/Mailman/mm_cfg.py OWNERS_CAN_DELETE_THEIR_OWN_LISTS = yes とすると、管理画面から削除できる。アーカイブは残る。 *icon favicon を表示 [#g299a00f] /usr/local/mailman/icons を /usr/local/www/apache24/data/icons へコピーする cp -rpv /usr/local/mailman/icons /usr/local/www/apache24/data/ ---- Total access &counter(total);:本日 &counter(today);:昨日 &counter(yesterday); #counter([total|today|yesterday]);