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

[postfix-jp: 2298] (再)mailman導入時にpostfixの設定



以前お世話になった、橋本です。

前回での試行錯誤の結果、いくつか解消できなかった問題点が見つかりました。
mailmanのMLの方へも問い合わせてみたのですが、postfixの問題と指摘されまた、
こちらでお世話になろうとやってきました。

[前回までの概要]

1)unixアカウントのメールは作成しない
2)postfixadmin(mysql)でアドレスは全てバーチャル管理
3)mailmanを導入したい
4)バーチャルドメイン毎に同じML名は使用できなくてもよい

この4点で、transport_mapsを使用してメインのドメインまではmailmanで動作
するようになりましたが、バーチャルのドメインで宛先不明になってしまいます。

[構成]
example.com(メイン)
virtual.com(バーチャル)

mailman@example.comへのMLは正常に動作します。
test@xxxxxxxxxxxへのMLは、test@example.comとして処理され、宛先不明になる。

原因が、どこにあるのかが現在のところまだよく分かりません。
いまだに、local,virtual,transportの仕組みが分からずです。

あまり進歩してませんが、よろしくお願い致します。


[postconf -n]
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases, hash:/usr/local/mailman/data/aliases
allow_mail_to_commands = alias,forward,include
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 = 2
disable_vrfy_command = yes
home_mailbox = Maildir/
html_directory = no
inet_interfaces = all
local_transport = local
mail_owner = postfix
mailbox_command = /usr/bin/procmail
mailbox_size_limit = 512000000
mailq_path = /usr/bin/mailq.postfix
manpage_directory = /usr/share/man
message_size_limit = 102400000
mydestination =
mydomain = example.com
myhostname = ns.example.com
mynetworks = 172.16.4.0/24, 127.0.0.0/8
myorigin = $mydomain
newaliases_path = /usr/bin/newaliases.postfix
owner_request_special = no
queue_directory = /var/spool/postfix
readme_directory = /usr/share/doc/postfix-2.2.2/README_FILES
recipient_delimiter = +
relay_domains = $mydestination
sample_directory = /usr/share/doc/postfix-2.2.2/samples
sendmail_path = /usr/sbin/sendmail.postfix
setgid_group = postdrop
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
smtp_sasl_security_options = noanonymous
smtpd_client_restrictions = permit_mynetworks,check_client_access 
regexp:/etc/postfix/restrict_clients,reject_rbl_client relays.ordb.org,
reject_unknown_client,permit
smtpd_helo_required = yes
smtpd_recipient_restrictions = permit_mynetworks,
permit_sasl_authenticated,reject_unauth_destination,reject_rbl_client 
relays.ordb.org,reject_rbl_client bl.spamcop.net
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain = $myhostname
smtpd_sasl_security_options =
smtpd_sender_restrictions = reject_unknown_sender_domain
transport_maps = hash:/etc/postfix/transport_maps.cf
unknown_local_recipient_reject_code = 550
virtual_alias_domains = $virtual_alias_maps
virtual_alias_maps = mysql:/etc/postfix/mysql_virtual_alias_maps.cf, 
hash:/usr/local/mailman/data/virtual-mailman
virtual_gid_maps = static:10000
virtual_mailbox_base = /var/virtual
virtual_mailbox_domains = mysql:/etc/postfix/mysql_virtual_domains_maps.
cf, /etc/postfix/virtual_domains_maps
virtual_mailbox_limit = 512000000
virtual_mailbox_maps = mysql:/etc/postfix/mysql_virtual_mailbox_maps.cf
virtual_minimum_uid = 10000
virtual_transport = virtual
virtual_uid_maps = static:10000

[mm_cfg.py]
POSTFIX_ALIAS_CMD = '/usr/sbin/postalias'
POSTFIX_MAP_CMD = '/usr/sbin/postmap'
POSTFIX_VIRTUAL_DOMAIN = ['example.com','virtual.com']
DEFAULT_URT_HOST = 'www.example.com'
DEFAULT_EMAIL_HOST = 'example.com'
add_virtualhost(DEFAULT_URL_HOST, DEFAULT_EMAIL_HOST)
add_virtualhost('www.example.com','example.com')
add_virtualhost('www.virtual.com','virtual.com')
POSTFIX_STYLE_VIRTUAL_DOMAINS = ['example.com','virtual.com']
MTA = 'Postfix'
DEFAULT_SERVER_LANGUAGE = 'ja'
DEFAULT_URL_PATTERN = 'http://%s/mailman/'
DEFAULT_LIST_ADVERTISED = No
OWNERS_CAN_DELETE_THEIR_OWN_LISTS = yes
DEFAULT_SUBJECT_PREFIX = "[%(real_name)s:%%04d] "
DEFAULT_REPLY_GOES_TO_LIST = 1
DEFAULT_NEW_MEMBER_OPTIONS = 258
DEFAULT_GENERIC_NONMEMBER_ACTION = 2

[/usr/local/mailman/data/aliases]
# STANZA START: mailman
# CREATED: Thu Sep 28 00:06:45 2006
mailman:             "|/usr/local/mailman/mail/mailman post mailman"
mailman-admin:       "|/usr/local/mailman/mail/mailman admin mailman"
mailman-bounces:     "|/usr/local/mailman/mail/mailman bounces mailman"
mailman-confirm:     "|/usr/local/mailman/mail/mailman confirm mailman"
mailman-join:        "|/usr/local/mailman/mail/mailman join mailman"
mailman-leave:       "|/usr/local/mailman/mail/mailman leave mailman"
mailman-owner:       "|/usr/local/mailman/mail/mailman owner mailman"
mailman-request:     "|/usr/local/mailman/mail/mailman request mailman"
mailman-subscribe:   "|/usr/local/mailman/mail/mailman subscribe mailman"
mailman-unsubscribe: "|/usr/local/mailman/mail/mailman unsubscribe 
mailman"
# STANZA END: mailman

# STANZA START: test
# CREATED: Thu Sep 28 00:17:32 2006
test:             "|/usr/local/mailman/mail/mailman post test"
test-admin:       "|/usr/local/mailman/mail/mailman admin test"
test-bounces:     "|/usr/local/mailman/mail/mailman bounces test"
test-confirm:     "|/usr/local/mailman/mail/mailman confirm test"
test-join:        "|/usr/local/mailman/mail/mailman join test"
test-leave:       "|/usr/local/mailman/mail/mailman leave test"
test-owner:       "|/usr/local/mailman/mail/mailman owner test"
test-request:     "|/usr/local/mailman/mail/mailman request test"
test-subscribe:   "|/usr/local/mailman/mail/mailman subscribe test"
test-unsubscribe: "|/usr/local/mailman/mail/mailman unsubscribe test"
# STANZA END: test

[/usr/local/mailman/data/virtual-mailman]
# STANZA START: mailman
# CREATED: Thu Sep 28 00:06:45 2006
mailman@example.com              mailman
mailman-admin@example.com        mailman-admin
mailman-bounces@example.com      mailman-bounces
mailman-confirm@example.com      mailman-confirm
mailman-join@example.com         mailman-join
mailman-leave@example.com        mailman-leave
mailman-owner@example.com        mailman-owner
mailman-request@example.com      mailman-request
mailman-subscribe@example.com    mailman-subscribe
mailman-unsubscribe@example.com  mailman-unsubscribe
# STANZA END: mailman

# STANZA START: test
# CREATED: Thu Sep 28 00:17:32 2006
test@xxxxxxxxxxx              test
test-admin@xxxxxxxxxxx        test-admin
test-bounces@xxxxxxxxxxx      test-bounces
test-confirm@xxxxxxxxxxx      test-confirm
test-join@xxxxxxxxxxx         test-join
test-leave@xxxxxxxxxxx        test-leave
test-owner@xxxxxxxxxxx        test-owner
test-request@xxxxxxxxxxx      test-request
test-subscribe@xxxxxxxxxxx    test-subscribe
test-unsubscribe@xxxxxxxxxxx  test-unsubscribe
# STANZA END: test

[/etc/postfix/transport_maps.cf]

#ここのlocalやvirtualは色々いじってみたけど駄目でした。
mailman@example.com                      local
mailman-admin@example.com                local
mailman-bounces@example.com              local
mailman-confirm@example.com              local
mailman-join@example.com                 local
mailman-leave@example.com                local
mailman-owner@example.com                local
mailman-request@example.com              local
mailman-subscribe@example.com            local
mailman-unsubscribe@example.com          local

test@xxxxxxxxxxx                 virtual
test-admin@xxxxxxxxxxx           virtual
test-bounces@xxxxxxxxxxx         virtual
test-confirm@xxxxxxxxxxx         virtual
test-join@xxxxxxxxxxx            virtual
test-leave@xxxxxxxxxxx           virtual
test-owner@xxxxxxxxxxx           virtual
test-request@xxxxxxxxxxx         virtual
test-subscribe@xxxxxxxxxxx       virtual
test-unsubscribe@xxxxxxxxxxx     virtual

[/etc/postfix/virtual_domains_maps]
example.com
virtual.com

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

Follow-Ups
[postfix-jp: 2299] Re: (再)mailman導入時にpostfixの設定, Nakane Ryuji
[postfix-jp: 2324] Re: (再)mailman導入時にpostfixの設定, Nakane Ryuji

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