[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[postfix-jp: 2098] Re: mailman導入時にpostfixの設定
- Subject: [postfix-jp: 2098] Re: mailman導入時にpostfixの設定
- From: Kentaro Hashimoto <ml@xxxxxxxxx>
- Date: Wed, 21 Jun 2006 15:45:12 +0900
橋本です。
お返事ありがとうございます。
>POSTFIX_VIRTUAL_DOMAIN = ['example.jp']
>を加えてgenaliasを実行すればPostfixようのvirtualmapができるので
>それをPostfixで指定すれば言いかと思います。
早速以下のことを試してみました。
/usr/local/mailman/Mailman/mm_cfg.py
POSTFIX_ALIAS_CMD = '/usr/sbin/postalias'
POSTFIX_MAP_CDM = '/usr/sbin/postmap'
POSTFIX_VIRTUAL_DOMAIN = ['example.com','virtual.com']
POSTFIX_STYLE_VIRTUAL_DOMAINS = ['example.com','virtual.com']
DEFAULT_URL_HOST = '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' )
MTA = 'Postfix'
DEFAULT_SERVER_LANGUAGE = 'ja'
DEFAULT_URL_PATTERN = 'https://%s/mailman/'
DEFAULT_LIST_ADVERTISED = No
OWNERS_CAN_DELETE_THEIR_OWN_LISTS = Yes
DEFAULT_SUBJECT_PREFIX = "[%(real_name)s:%%d] "
DEFAULT_REPLY_GOES_TO_LIST = 1
DEFAULT_NEW_MENBER_OPTIONS = 258
DEFAULT_GENERIC_NONMEMBER_ACTION = 2
この設定で、genaliasを実行
postfix側のmain.cfも以下の様に変更
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases, hash:/usr/local/mailman/data/aliases
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
home_mailbox = Maildir/
html_directory = no
inet_interfaces = all
local_transport = virtual
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
smtpd_recipient_restrictions = permit_mynetworks,
permit_sasl_authenticated,reject_unauth_destination
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain = $myhostname
smtpd_sasl_security_options = noanonymous
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
ログに若干変化が現れましたが、未だにうまく動作しません。
Jun 21 15:14:27 ns postfix/smtpd[10139]: connect from ****.mail.bbt.
yahoo.co.jp[xxx.xxx.xxx.xxx]
Jun 21 15:14:27 ns postfix/smtpd[10139]: C253C1428105: client=****.mail.
bbt.yahoo.co.jp[xxx.xxx.xxx.xxx]
Jun 21 15:14:27 ns postfix/cleanup[10143]: C253C1428105: message-id=
<C0C694F9F6F65CXXXX@xxxxxxxxxxx>
Jun 21 15:14:27 ns postfix/qmgr[10049]: C253C1428105: from=<XXXX@yahoo.
co.jp>, size=2405, nrcpt=1 (queue active)
Jun 21 15:14:27 ns postfix/smtpd[10139]: disconnect from ****.mail.bbt.
yahoo.co.jp[xxx.xxx.xxx.xxx]
Jun 21 15:14:30 ns postfix/smtpd[10148]: connect from ns.example.com[127.
0.0.1]
Jun 21 15:14:30 ns postfix/smtpd[10148]: 98D581428432: client=ns.example.
com[127.0.0.1]
Jun 21 15:14:30 ns postfix/cleanup[10143]: 98D581428432: message-id=
<C0C694F9F6F65CXXXX@xxxxxxxxxxx>
Jun 21 15:14:30 ns postfix/qmgr[10049]: 98D581428432: from=<XXXX@yahoo.
co.jp>, size=2843, nrcpt=1 (queue active)
Jun 21 15:14:30 ns postfix/smtpd[10148]: disconnect from ns.example.com
[127.0.0.1]
Jun 21 15:14:30 ns amavis[7947]: (07947-04) Passed CLEAN, [xxx.xxx.xxx.
xxx] [219.117.222.113] <XXXX@xxxxxxxxxxx> -> <test-request@example.com>,
Message-ID: <C0C694F9F6F65CXXXX@xxxxxxxxxxx>, mail_id: x3r5RKyli9nJ,
Hits: 1.552, 2795 ms
Jun 21 15:14:30 ns postfix/smtp[10145]: C253C1428105: to=<test-
request@example.com>, relay=127.0.0.1[127.0.0.1], delay=3, status=sent
(250 2.6.0 Ok, id=07947-04, from MTA([127.0.0.1]:10025): 250 Ok: queued
as 98D581428432)
Jun 21 15:14:30 ns postfix/qmgr[10049]: C253C1428105: removed
Jun 21 15:14:30 ns postfix/virtual[10150]: 98D581428432: to=<test-
request@example.com>, relay=virtual, delay=0, status=bounced (unknown
user: "test-request@example.com")
Jun 21 15:14:30 ns postfix/cleanup[10143]: B2C011428435: message-id=
<20060621061430.B2C011428435@ns.example.com>
Jun 21 15:14:30 ns postfix/qmgr[10049]: B2C011428435: from=<>, size=4499,
nrcpt=1 (queue active)
Jun 21 15:14:30 ns postfix/qmgr[10049]: 98D581428432: removed
Jun 21 15:14:31 ns postfix/smtp[10153]: B2C011428435: to=<XXXX@xxxxxxxxx
jp>, relay=mx2.mail.yahoo.co.jp[203.216.227.209], delay=1, status=sent
(250 ok dirdel)
Jun 21 15:14:31 ns postfix/qmgr[10049]: B2C011428435: removed
途中まで通ってるように思うのですが、最終的にはuser_unknownになります。
/usr/local/mailman/data のaliasesとvirtual-domainは以下の様に出力されて
います。
# STANZA START: test
# CREATED: Wed Jun 21 15:08:48 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
# STANZA START: mailman
# CREATED: Wed Jun 21 15:08:48 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 START: test
# CREATED: Wed Jun 21 15:08:48 2006
test@example.com test
test-admin@example.com test-admin
test-bounces@example.com test-bounces
test-confirm@example.com test-confirm
test-join@example.com test-join
test-leave@example.com test-leave
test-owner@example.com test-owner
test-request@example.com test-request
test-subscribe@example.com test-subscribe
test-unsubscribe@example.com test-unsubscribe
# STANZA END: test
# STANZA START: mailman
# CREATED: Wed Jun 21 15:08:48 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
postfixとmailmanのどちらのMLに投げようかと悩んだんですが、こちらで解決で
きない場合、mailmanの方へ投げさせていただきます。
マルチポストになってしまいますので、mailmanの方へ投げるときは、こちらの
スレッドは終了させてからにします。
よろしくお願いします。
_______________________________________________
Postfix-jp-list mailing list
Postfix-jp-list@xxxxxxxxxxxxxxxxxxxx
http://lists.sourceforge.jp/mailman/listinfo/postfix-jp-list
- Follow-Ups
-
- [postfix-jp: 2100] Re: mailman導入時にpostfixの設定, SATOH Fumiyasu
- [postfix-jp: 2104] Re: mailman導入時にpostfixの設定, IWAMOTO Kouichi
- References
-
- [postfix-jp: 2083] mailman導入時にpostfixの設定, Kentaro Hashimoto
- [postfix-jp: 2097] Re: mailman導入時にpostfixの設定, ikari
[検索ページ]
[Postfix-JP ML Home]