メールアドレスに送信できる人の制限

メールアドレスに送信できる人の制限

特定のsender:アドレスだけがPostfixを実行しているUbuntuシステムの電子メールアドレス(メーリングリスト)に送信できるようにしたいと思います。

マニュアルでPostfixを理解するには多くの知識が必要なので、私が使用できる完全なレシピを得たいと思いました。現在私が持っているものは次のとおりです。

/etc/postfix/main.cf:
smtpd_recipient_restrictions =
  check_recipient_access hash:/etc/postfix/protected_destinations
smtpd_restriction_classes = insiders_only
insiders_only = check_sender_access hash:/etc/postfix/insiders, reject

/etc/postfix/protected_destinations:
[email protected] insiders_only

/etc/postfix/insiders:
[email protected] OK
[email protected] OK

これは以下を提供します:

fatal: parameter "smtpd_recipient_restrictions": specify at least one working instance of: check_relay_domains, reject_unauth_destination, reject, defer or defer_if_permit

私はどんな提案でも歓迎します。 Postfixである必要はありません。 procmailや他の標準ソリューションになることができます。

注:受信者はメーリングリストなので、システムアカウントにはユーザーアカウントがありません。したがって、すべてのソリューションはアカウントなしで機能する必要があります。

現在のメーリングリストの実装

/etc/postfix/virtual:
[email protected] [email protected], user2.example.com, ...

ベストアンサー1

エラーメッセージを読んで理解しましたか?あなたは次のようなものを持っている必要があります

smtpd_recipient_restrictions =
  check_recipient_access hash:/etc/postfix/protected_destinations,
  permit_mynetworks,
  reject_unauth_destination

postconf -d...これはここでランダムなDebianボックスの出力の前のルールです。

おすすめ記事