[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[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@xxxxxxxxxxxxxxxxxx local
test-ml-admin@xxxxxxxxxxxxxxxxxx local
test-ml-bounces@xxxxxxxxxxxxxxxxxx local
test-ml-confirm@xxxxxxxxxxxxxxxxxx local
test-ml-join@xxxxxxxxxxxxxxxxxx local
test-ml-leave@xxxxxxxxxxxxxxxxxx local
test-ml-owner@xxxxxxxxxxxxxxxxxx local
test-ml-request@xxxxxxxxxxxxxxxxxx local
test-ml-subscribe@xxxxxxxxxxxxxxxxxx local
test-ml-unsubscribe@xxxxxxxxxxxxxxxxxx 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@xxxxxxxxxxxxxxxxxx mailman-loop
test-ml@xxxxxxxxxxxxxxxxxx test-ml
test-ml-admin@xxxxxxxxxxxxxxxxxx test-ml-admin
test-ml-bounces@xxxxxxxxxxxxxxxxxx test-ml-bounces
test-ml-confirm@xxxxxxxxxxxxxxxxxx test-ml-confirm
test-ml-join@xxxxxxxxxxxxxxxxxx test-ml-join
test-ml-leave@xxxxxxxxxxxxxxxxxx test-ml-leave
test-ml-owner@xxxxxxxxxxxxxxxxxx test-ml-owner
test-ml-request@xxxxxxxxxxxxxxxxxx test-ml-request
test-ml-subscribe@xxxxxxxxxxxxxxxxxx test-ml-subscribe
test-ml-unsubscribe@xxxxxxxxxxxxxxxxxx test-ml-unsubscribe

<「hoge@xxxxxxxxxxxxxxxxxx」からメーリングリスト「test-
ml@xxxxxxxxxxxxxxxxxx」にメールを送信した時のログ>
post postfix/smtpd[30580]: connect from **********.ne.jp[***.***.***.***]
post postfix/smtpd[30580]: 3244B49804B:
client=**********.ne.jp[***.***.***.***], sasl_method=LOGIN,
sasl_username=hoge@xxxxxxxxxxxxxxxxxx
post postfix/cleanup[30590]: 3244B49804B:
message-id=<DE6362A1E3AE4485BFCFEA58C700CE87@2140>
post postfix/qmgr[30535]: 3244B49804B: from=<hoge@xxxxxxxxxxxxxxxxxx>,
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@xxxxxxxxxxxxxxxx>:
Recipient address rejected: User unknown in virtual mailbox table;
from=<hoge@xxxxxxxxxxxxxxxxxx> to=<test-ml@xxxxxxxxxxxxxxxx> 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@xxxxxxxxxxxxxxxxxx> -> <test-ml@xxxxxxxxxxxxxxxx>,BODY=7BIT 550
5.1.1 Failed, id=27900-09, from MTA([127.0.0.1]:10025): 550 5.1.1
<test-ml@xxxxxxxxxxxxxxxx>: 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@xxxxxxxxxxxxxxxxxxxxx>
post postfix/qmgr[30535]: 11BC9498068: from=<>, size=3165, nrcpt=1
(queue active)
post amavis[27900]: (27900-09) Blocked MTA-BLOCKED, [***.***.***.***]
[***.***.***.***] <hoge@xxxxxxxxxxxxxxxxxx> ->
<test-ml@xxxxxxxxxxxxxxxx>, Message-ID:
<DE6362A1E3AE4485BFCFEA58C700CE87@2140>, 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@xxxxxxxxxxxxxxxx>,
orig_to=<test-ml@xxxxxxxxxxxxxxxxxx>, 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@xxxxxxxxxxxxxxxx>: 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@xxxxxxxxxxxxxxxxxxxxx>
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@xxxxxxxxxxxxxxxxxx>,
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@xxxxxxxxxxxxxxxxxx>,
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@xxxxxxxxxxxxxxxxxxxx
http://lists.sourceforge.jp/mailman/listinfo/postfix-jp-list

Follow-Ups
[postfix-jp: 3644] Re: postfixとmailmanの連携について, とみたまさひろ
[postfix-jp: 3646] Re: postfixとmailmanの連携について, SATOH Fumiyasu
[postfix-jp: 3649] Re: postfixとmailmanの連携について, IWAMOTO Kouichi

[検索ページ] [Postfix-JP ML Home]