bin/rmlist sinonome48

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 310, in remove
   _update_maps()
 File "/usr/local/mailman/Mailman/MTA/Postfix.py", line 60, in _update_maps
   raise RuntimeError, msg % (vcmd, status, errstr)
RuntimeError: command failed: /usr/sbin/postmap /usr/local/mailman/data/virtual-mailman (status: 127, Unknown error: 127)
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.1.html
/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

2012/08/30

                  The mail system

<sns_rs_base@k222.kuji-clinic.net>: Command died with status 2:
   "/usr/local/mailman/mail/mailman post sns_rs_base". Command output: Group
   mismatch error.  Mailman expected the mail wrapper script to be executed as
   group "nobody", but the system's mail server executed the mail script as
   group "mailman".  Try tweaking the mail server to run the script as group
   "nobody", or re-run configure,  providing the command line option
   `--with-mail-gid=mailman'.

というエラー。

/usr/ports/japanese/mailman

で、

# make deinstall 
# make rmconfig
# portinstall japanese/mailman

として、postfix integrate と postfix にチェックをいれて、再度インストール、でOK

Mailmanのインストール

本家、菊地時夫先生のサイトのインストールマニュアルはこちら
http://mm.tkikuchi.net/mailman-install/mailman-install.html

  1. portsでインストール
  2. Mailmanのチェック
  3. Apacheとの接続
  4. Postfixとの接続
  5. mailmanの設定

portsでインストール

# locate mailman
/usr/ports/japanese/mailman  -->2010現在では、/usr/ports/mail/mailman
# cd /usr/ports/japanese/mailman --> portinstall mail/mailman -m "MAIL_GID=mailman" "CGI_GID=www"
# make MAIL_GID=mailman CGI_GID=www install -->or? portinstall -m "MAIL_GID=mailman" "CGI_GID=www" mail/mailman 
mailman-options.jpg

依存関係で(というか、Mailman が動作する言語がそうなので)Python-2.5.1.tgz が同時にインストールされます。

# make install
---> Starting post-install script:
---> 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 (non-Sendmail) MTA, you MUST be sure
that the correct value of MAIL_GID was used when this port or package
was built.  Performing a "make options" in the Mailman port directory
will list required values for various mail servers.

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
----------------------------------------------------------------------------

Your Postfix hostname is non-default.
You must add "$SMTPHOST = tfc.thousand-winds.jp" to the bottom of mm_cfg.py.

===> Installing rc.d startup script(s)
===>   Registering installation for ja-mailman-with-htdig-2.1.9_4
===> 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/mmsearch
/usr/local/mailman/cgi-bin/roster
/usr/local/mailman/cgi-bin/htdig
/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.list.org/

Mailmanのチェック

# cd /usr/local/mailman
# bin/check_perms -f
  または、
# /usr/local/mailman/bin/check_perms -f

Warning: Private archive directory is other-executable (o+x).
        This could allow other users on your system to read private archives.
        If you're on a shared multiuser system, you should consult the
        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
最期の行に
"$SMTPHOST = tfc.thousand-winds.jp"
を加える。

Mailmanのインストールの後、メールサーバとウエッブサーバへの接続をする。

Apacheとの接続

cp /usr/local/mailman/icons/* /webのtop-pageのディレクトリ/icons/

mkdir /usr/local/www/apache22/data/icons
cp /usr/local/mailman/icons/* /usr/local/www/apache22/data/icons/
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.php?FreeBSD%2FMailServerSetup

Postfixとの接続

# 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 stop
postfix start

mailmanの設定

# 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.net
Initial mailman password:
Hit enter to notify mailman owner... 
★サイトのパスワードを変更するには、
/usr/local/mailman/bin/mmsitepass  コマンドで変更 

http://mm.tkikuchi.net/mailman-install/node40.html

mailman起動

/usr/local/mailman/bin/mailmanctl start
起動時に自動起動するには /etc/rc.conf
mailman_enable="YES"
を記述

Mailmanで最初のリストを作成する

URL http://210.255.122.220/mailman/create を開いてください.


http://www.voyager.gr.jp/~sampei/freebsd/mailman.html


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