2009年11月17日

[postfix-jp: 3643]postfixとmailmanの連携について

南保と申します。

CentOS + postfix + mysql + sasl + postfixadmin + mailman、の組合せにて環
境構築を目指しておりますがmailmanでのメーリングリストが送信できず困って
います。
1ヶ月ほど過去ログやマニュアルも調べましたが自分では解決できませんでした
ので、皆様からのご助言を頂きたく投稿させて頂きます。
なお問題があるのはmailmanのみです。


よろしくお願い致します。

<ネットワーク状態例>
リアルドメイン :realdomain.co.jp(192.168.0.1/28)
MXレコード :post.realdomain.co.jp(192.168.0.2)

バーチャルドメイン:virtualdomain.info(192.168.0.1/28)
MXレコード :post.virtualdomain.info(192.168.0.2)

<Postfixでの運用形態>
全てのドメインを、OSアカウントを持たないバーチャルメールボックスにて運用

<作成するメーリングリスト>
「virtualdomain.info」のバーチャルドメインに対して「test-ml」のメーリン
グリストを設定する

<Postfixの「Postconf -n」出力結果>
alias_database = hash:/etc/aliases
alias_maps =
hash:/etc/aliases,hash:/etc/postfix/alias_maps,hash:/etc/mailman/aliases
※「/etc/postfix/alias_maps」には何も設定されていません
broken_sasl_auth_clients = yes
command_directory = /usr/sbin
config_directory = /etc/postfix
content_filter = smtp-amavis:[127.0.0.1]:10024
daemon_directory = /usr/libexec/postfix
debug_peer_level = 3
disable_vrfy_command = yes
fallback_transport = virtual
home_mailbox = Maildir/
html_directory = no
inet_interfaces = all
local_transport = virtual
mail_owner = postfix
mailq_path = /usr/bin/mailq.postfix
manpage_directory = /usr/share/man
mydestination =
mydomain = realdomain.co.jp
myhostname = post.realdomain.co.jp
mynetworks = 127.0.0.0/8, 192.168.0.1/28
myorigin = $mydomain
newaliases_path = /usr/bin/newaliases.postfix
owner_request_special = no
queue_directory = /var/spool/postfix
readme_directory = /usr/share/doc/postfix-2.3.3/README_FILES
recipient_delimiter = +
sample_directory = /usr/share/doc/postfix-2.3.3/samples
sendmail_path = /usr/sbin/sendmail.postfix
setgid_group = postdrop
smtpd_banner = $myhostname ESMTP unknown
smtpd_client_restrictions = permit_mynetworks,reject_unknown_client,permit
smtpd_recipient_restrictions =
permit_mynetworks,permit_sasl_authenticated,reject_unauth_destination
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain =
smtpd_sasl_security_options = noanonymous
transport_maps = hash:/etc/postfix/transport_maps
unknown_local_recipient_reject_code = 550
virtual_alias_domains =
virtual_alias_maps = mysql:/etc/postfix/mysql_virtual_alias_maps.cf,
hash:/etc/mailman/virtual-mailman
virtual_gid_maps = static:10000
virtual_mailbox_base = /inet_dir/mailbox
virtual_mailbox_domains = mysql:/etc/postfix/mysql_virtual_domains_maps.cf
virtual_mailbox_maps = mysql:/etc/postfix/mysql_virtual_mailbox_maps.cf
virtual_minimum_uid = 10000
virtual_transport = virtual
virtual_uid_maps = static:10000

<「/etc/postfix/transport_maps」の設定内容>
test-ml@xxxxx local
test-ml-admin@xxxxx local
test-ml-bounces@xxxxx local
test-ml-confirm@xxxxx local
test-ml-join@xxxxx local
test-ml-leave@xxxxx local
test-ml-owner@xxxxx local
test-ml-request@xxxxx local
test-ml-subscribe@xxxxx local
test-ml-unsubscribe@xxxxx local

<Mailmanの「mm_cfg.py」の設定内容>
from Defaults import *
import pwd, grp
MAILMAN_UID = pwd.getpwnam('mailman')[2]
MAILMAN_GID = grp.getgrnam('mailman')[2]
from socket import *
try:
fqdn = getfqdn()
except:
fqdn = 'mm_cfg_has_unknown_host_domains'
DEFAULT_URL_HOST = 'post.realdomain.co.jp'
DEFAULT_EMAIL_HOST = 'realdomain.co.jp'
add_virtualhost(DEFAULT_URL_HOST, DEFAULT_EMAIL_HOST)
add_virtualhost('post.virtualdomain.info','virtualdomain.info')
POSTFIX_STYLE_VIRTUAL_DOMAINS = ['realdomain.co.jp', 'virtualdomain.info']
MTA = 'Postfix'
DEFAULT_SERVER_LANGUAGE = 'ja'
DEFAULT_URL_PATTERN = 'https://%s/mailman/'
DEFAULT_LIST_ADVERTISED = Yes
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
DEFAULT_REQUIRE_EXPLICIT_DESTINATION = No
DEFAULT_MSG_FOOTER = ''

<「/etc/mailman/aliases」の内容
mailman-loop: /var/lib/mailman/data/owner-bounces.mbox
mailman: "|/usr/lib/mailman/mail/mailman post mailman"
mailman-admin: "|/usr/lib/mailman/mail/mailman admin mailman"
mailman-bounces: "|/usr/lib/mailman/mail/mailman bounces mailman"
mailman-confirm: "|/usr/lib/mailman/mail/mailman confirm mailman"
mailman-join: "|/usr/lib/mailman/mail/mailman join mailman"
mailman-leave: "|/usr/lib/mailman/mail/mailman leave mailman"
mailman-owner: "|/usr/lib/mailman/mail/mailman owner mailman"
mailman-request: "|/usr/lib/mailman/mail/mailman request mailman"
mailman-subscribe: "|/usr/lib/mailman/mail/mailman subscribe mailman"
mailman-unsubscribe: "|/usr/lib/mailman/mail/mailman unsubscribe mailman"
test-ml: "|/usr/lib/mailman/mail/mailman post test-ml"
test-ml-admin: "|/usr/lib/mailman/mail/mailman admin test-ml"
test-ml-bounces: "|/usr/lib/mailman/mail/mailman bounces test-ml"
test-ml-confirm: "|/usr/lib/mailman/mail/mailman confirm test-ml"
test-ml-join: "|/usr/lib/mailman/mail/mailman join test-ml"
test-ml-leave: "|/usr/lib/mailman/mail/mailman leave test-ml"
test-ml-owner: "|/usr/lib/mailman/mail/mailman owner test-ml"
test-ml-request: "|/usr/lib/mailman/mail/mailman request test-ml"
test-ml-subscribe: "|/usr/lib/mailman/mail/mailman subscribe test-ml"
test-ml-unsubscribe: "|/usr/lib/mailman/mail/mailman unsubscribe test-ml"

<「/etc/mailman/virtual-mailman」の内容
mailman-loop@xxxxx mailman-loop
test-ml@xxxxx test-ml
test-ml-admin@xxxxx test-ml-admin
test-ml-bounces@xxxxx test-ml-bounces
test-ml-confirm@xxxxx test-ml-confirm
test-ml-join@xxxxx test-ml-join
test-ml-leave@xxxxx test-ml-leave
test-ml-owner@xxxxx test-ml-owner
test-ml-request@xxxxx test-ml-request
test-ml-subscribe@xxxxx test-ml-subscribe
test-ml-unsubscribe@xxxxx test-ml-unsubscribe

<「hoge@xxxxx」からメーリングリスト「test-
ml@xxxxx」にメールを送信した時のログ>
post postfix/smtpd[30580]: connect from **********.ne.jp[***.***.***.***]
post postfix/smtpd[30580]: 3244B49804B:
client=**********.ne.jp[***.***.***.***], sasl_method=LOGIN,
sasl_username=hoge@xxxxx
post postfix/cleanup[30590]: 3244B49804B:
message-id=<DE6362A1E3AE4485BFCFEA58C700CE87@xxxxx>
post postfix/qmgr[30535]: 3244B49804B: from=<hoge@xxxxx>,
size=1360, nrcpt=1 (queue active)
post amavis[27900]: (27900-09) (!!)WARN: all primary virus scanners
failed, considering backups
post postfix/smtpd[30580]: disconnect from **********.ne.jp[***.***.***.***]
post postfix/smtpd[30595]: connect from post.realdomain.co.jp[127.0.0.1]
post postfix/smtpd[30595]: NOQUEUE: reject: RCPT from
post.realdomain.co.jp[127.0.0.1]: 550 5.1.1 <test-ml@xxxxx>:
Recipient address rejected: User unknown in virtual mailbox table;
from=<hoge@xxxxx> to=<test-ml@xxxxx> proto=ESMTP
helo=<localhost>
post amavis[27900]: (27900-09) Negative SMTP resp. to DATA: 554 5.5.1
Error: no valid recipients
post postfix/smtpd[30595]: disconnect from post.realdomain.co.jp[127.0.0.1]
post amavis[27900]: (27900-09) (!)FWD via SMTP:
<hoge@xxxxx> -> <test-ml@xxxxx>,BODY=7BIT 550
5.1.1 Failed, id=27900-09, from MTA([127.0.0.1]:10025): 550 5.1.1
<test-ml@xxxxx>: Recipient address rejected: User unknown in
virtual mailbox table
post postfix/smtpd[30595]: connect from post.realdomain.co.jp[127.0.0.1]
post postfix/smtpd[30595]: 11BC9498068:
client=post.realdomain.co.jp[127.0.0.1]
post postfix/cleanup[30590]: 11BC9498068:
message-id=<DSNZ-BmROmqQnnb@xxxxx>
post postfix/qmgr[30535]: 11BC9498068: from=<>, size=3165, nrcpt=1
(queue active)
post amavis[27900]: (27900-09) Blocked MTA-BLOCKED, [***.***.***.***]
[***.***.***.***] <hoge@xxxxx> ->
<test-ml@xxxxx>, Message-ID:
<DE6362A1E3AE4485BFCFEA58C700CE87@xxxxx>, mail_id: Z-BmROmqQnnb, Hits:
1.801, size: 1360, 8134 ms
post postfix/smtpd[30595]: disconnect from post.realdomain.co.jp[127.0.0.1]
post postfix/smtp[30592]: 3244B49804B: to=<test-ml@xxxxx>,
orig_to=<test-ml@xxxxx>, relay=127.0.0.1[127.0.0.1]:10024,
delay=9, delays=0.89/0.01/0/8.1, dsn=5.1.1, status=bounced (host
127.0.0.1[127.0.0.1] said: 550 5.1.1 Failed, id=27900-09, from
MTA([127.0.0.1]:10025): 550 5.1.1 <test-ml@xxxxx>: Recipient
address rejected: User unknown in virtual mailbox table (in reply to end
of DATA command))
post postfix/cleanup[30590]: 1DA0C49806C:
message-id=<20091116095238.1DA0C49806C@xxxxx>
post postfix/bounce[30600]: 3244B49804B: sender non-delivery
notification: 1DA0C49806C
post postfix/qmgr[30535]: 1DA0C49806C: from=<>, size=3657, nrcpt=1
(queue active)
post postfix/qmgr[30535]: 3244B49804B: removed
post postfix/virtual[30601]: 1DA0C49806C: to=<hoge@xxxxx>,
relay=virtual, delay=0.04, delays=0/0.01/0/0.03, dsn=2.0.0, status=sent
(delivered to maildir)
post postfix/virtual[30598]: 11BC9498068: to=<hoge@xxxxx>,
relay=virtual, delay=0.09, delays=0.01/0.01/0/0.07, dsn=2.0.0,
status=sent (delivered to maildir)
post postfix/qmgr[30535]: 11BC9498068: removed
post postfix/qmgr[30535]: 1DA0C49806C: removed

_______________________________________________
Postfix-jp-list mailing list
Postfix-jp-list@xxxxx
http://lists.sourceforge.jp/mailman/listinfo/postfix-jp-list


投稿者 xml-rpc : 2009年11月17日 11:21
役に立ちました?:
過去のフィードバック 平均:(0) 総合:(0) 投票回数:(0)
本記事へのTrackback: http://hoop.euqset.org/blog/mt-tb2006.cgi/90404
トラックバック
コメント
コメントする




画像の中に見える文字を入力してください。