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

[postfix-jp: 3849] Re: 送信先メールアドレスをアカウントだけで指定先ホストに送信する方法を教えてください



荻野です。

山本 誠一郎 said the following on 10/10/09 3:20:
> 下記、maillogを受信者アカウントだけでgrepしたログです。
> 最後にrewrite_clnt部分でドメインが付けられてます。

さて…

こちらでは rewrite_clnt: local: foo -> foo ですね。間の rewrite のログ
がないのでどこが違うかわかりませんが。

あと、mail_addr_find: では OK で、その後で rewrite_clnt で書き変わって
いるということは trivial-rewrite の結果が出ているようなので、これに -v
をつけてみるとなにか分かるかもしれません。

master.cf:
  rewrite  unix  -  -  -  -  -  trivial-rewrite -v

こちらではこんな感じになりました。

----- ここから -----
postfix/trivial-rewrite[22328]: master_notify: status 0
postfix/trivial-rewrite[22328]: rewrite socket: wanted attribute: request
postfix/trivial-rewrite[22328]: input attribute name: request
postfix/trivial-rewrite[22328]: input attribute value: rewrite
postfix/trivial-rewrite[22328]: rewrite socket: wanted attribute: rule
postfix/trivial-rewrite[22328]: input attribute name: rule
postfix/trivial-rewrite[22328]: input attribute value: local
postfix/trivial-rewrite[22328]: rewrite socket: wanted attribute: address
postfix/trivial-rewrite[22328]: input attribute name: address
postfix/trivial-rewrite[22328]: input attribute value: foo
postfix/trivial-rewrite[22328]: rewrite socket: wanted attribute: (list terminator)
postfix/trivial-rewrite[22328]: input attribute name: (end)
postfix/trivial-rewrite[22328]: `local' `foo' -> `foo'
postfix/trivial-rewrite[22328]: send attr flags = 0
postfix/trivial-rewrite[22328]: send attr address = foo
postfix/trivial-rewrite[22328]: master_notify: status 1
----- ここまで -----

postconf -n も載せておきます。mydomain は載っていませんが、
example.co.jp(宛先)とは違うものになっています。

----- ここから -----
# postconf -n
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
append_at_myorigin = no
append_dot_mydomain = no
biff = no
config_directory = /etc/postfix
inet_protocols = all
mailbox_command = 
mailbox_size_limit = 100000000
mydestination = b.example.co.jp, localhost
myhostname = b.example.co.jp
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128 192.168.100.0/24
myorigin = /etc/mailname
readme_directory = no
recipient_delimiter = +
relayhost = smtp.example.co.jp
smtp_generic_maps = regexp:${config_directory}/smtp_rewrite_map_regexp
smtp_never_send_ehlo = yes
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
smtpd_tls_cert_file = /etc/ssl/certs/ssl-cert-snakeoil.pem
smtpd_tls_key_file = /etc/ssl/private/ssl-cert-snakeoil.key
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtpd_use_tls = yes
----- ここまで -----


-- 
荻野 充 (おぎの みつる) ... 「萩(はぎ)」にあらず
Key fingerprint = 7F26 5414 1805 F31B 1617  10B7 C117 07AE 1691 9BD1

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

References
[postfix-jp: 3845] Re: 送信先メールアドレスをアカウントだけで指定先ホストに送信する方法を教えてください, Mitsuru Ogino
[postfix-jp: 3846] Re: 送信先メールアドレスをアカウントだけで指定先ホストに送信する方法を教えてください, Mitsuru Ogino
[postfix-jp: 3847] Re: 送信先メールアドレスをアカウントだけで指定先ホストに送信する方法を教えてください, 山本 誠一郎
[postfix-jp: 3848] Re: 送信先メールアドレスをアカウントだけで指定先ホストに送信する方法を教えてください, Mitsuru Ogino

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