Postfix(8) (933レス)
前次1-
抽出解除 レス栞

23
(5): 2008/12/12(金)10:08 AAS
Postfix+Mailmanでメーリングリストを運用していて、main.cfで

smtpd_recipient_restrictions =
permit_mynetworks
permit_sasl_authenticated
reject_unauth_destination

こんなかんじの設定を行っています。

この設定だと、メーリングリストのメンバーに別ドメインのメールアドレスが
含まれている場合に relay_domains にそのドメインを含める必要があるのですが、

・localhost からの転送ついては、 reject_unauth_destination を無視する
・それ以外のホストからの転送については、reject_unauth_destination を有効にする
省1
25: 23 2008/12/12(金)13:50 AAS
main.cfはこんなかんじです。

# postconf -n
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
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
default_privs = vmail
省18
26: 23 2008/12/12(金)13:51 AAS
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_helo_required = yes
smtpd_recipient_restrictions = permit_mynetworks permit_sasl_authenticated reject_unauth_destination
smtpd_sasl_local_domain = $myhostname
smtpd_sasl_path = private/auth
smtpd_sasl_security_options = noanonymous
smtpd_sasl_type = dovecot
省13
27
(1): 2008/12/13(土)00:12 AAS
>>23
mynetworks に 127.0.0.0/8 が含まれているから、permit_mynetworks が効くので、
今のままの設定でも問題ないはず。
28
(1): 23 2008/12/13(土)10:18 AAS
>>27
ありがとうございます。

しかし、この設定で、relay_domainsに設定しないとリレーしてくれないんです・・・。
transport でいったんMailmanに渡してるからだと思うんですが、謎。

/var/log/maillog は↓こんなかんじです。

Dec 13 10:12:37 linux-test postfix/smtpd[27016]: 28C3EFF2F06:
reject: RCPT from linux-test.example.ne.jp[127.0.0.1]:
554 5.7.1 <test@hoge.hoge.ne.jp>: Relay access denied;
from=<test-bounces@ml.example.ne.jp> to=<test@hoge.hoge.ne.jp>
proto=ESMTP helo=<linux-test.example.ne.jp>
30: 23 2008/12/13(土)16:36 AAS
>>29
smtp inet n - n - - smtpd
-o smtpd_sasl_auth_enable=yes
-o smtpd_recipient_restrictions=permit_sasl_authenticated,reject_unauth_destination
submission inet n - n - - smtpd
-o smtpd_sasl_auth_enable=yes
-o smtpd_recipient_restrictions=permit_sasl_authenticated,reject_unauth_destination
smtps inet n - n - - smtpd
-o smtpd_tls_wrappermode=yes
-o smtpd_sasl_auth_enable=yes
省3
前次1-
スレ情報 赤レス抽出 画像レス抽出 歴の未読スレ AAサムネイル

ぬこの手 ぬこTOP 1.815s*