外部メールサフィックスサーバーを使用してDebian bookwormにmailman3をインストールする

外部メールサフィックスサーバーを使用してDebian bookwormにmailman3をインストールする

私のDebianボックス(本虫)にmailman3をインストールしたいのですが、他のホストにすでに存在するpostfixメールサーバーを使用したいと思います(これはできますか?)。

mailman.cfgファイルに次の設定があります/etc/mailman3

[mta]
# The class defining the interface to the incoming mail transport agent.
#incoming: mailman.mta.exim4.LMTP
incoming: mailman.mta.postfix.LMTP

# The callable implementing delivery to the outgoing mail transport agent.
# This must accept three arguments, the mailing list, the message, and the
# message metadata dictionary.
outgoing: mailman.mta.deliver.deliver

# How to connect to the outgoing MTA.  If smtp_user and smtp_pass is given,
# then Mailman will attempt to log into the MTA when making a new connection.
smtp_host: localhost
smtp_port: 25
smtp_user:
smtp_pass:

# Where the LMTP server listens for connections.  Use 127.0.0.1 instead of
# localhost for Postfix integration, because Postfix only consults DNS
# (e.g. not /etc/hosts).
lmtp_host: 127.0.0.1
lmtp_port: 8024

私の郵便局サーバーで利用可能なリモートメールサーバーのポート25と、リモートメールサーバーのポート8024で利用可能な私の郵便局サーバーのポート8024を作成するSSHトンネルがあります。 8024、私が理解したものが正しいかどうかは完全にはわかりません。)

何らかの理由でmailman3が起動した場合は、postmapmailmanサーバーにインストールされているプログラムの代わりにメールサーバーにインストールされているプログラムを実行しようとします。これはincoming:、およびの構成ファイル設定のために発生すると推測されますoutgoing:

この設定が機能するように構成を変更するにはどうすればよいですか?または(不可能な場合):新しいシステムをmailman3既存の実行サーバーに接続して実行するようにシステムをどのように構成する必要がありますかpostfix

(おそらく言及する必要があるようです:メーリングリストは、postfix既存のメールサーバーが担当するメールドメインのものである必要があります。)

ベストアンサー1

構成を更新しmailman.cfg、両方のサーバーでSMTPポートとLMTPポートを有効にしましたが、トランスポートマッピングセクションを見逃しました。文書、PostfixでTransport_maps、local_recipient_maps、Relay_domainsの3つのパラメータを設定する必要があります。

これら3つのパラメータは、Mailmanが追加されたドメインとリストに基づいて生成され、最新の状態に保たれるファイルを指す必要がありますpostfix_domains。言及されたユーティリティを介してpostfix_lmtp行われます。postmap

したがって、Postfix設定に3つのパラメータを追加し、<var_dir>/dataMailmanサーバーのフォルダをPostfixサーバーと共有し、postmapこの設定が機能するためにMailmanにユーティリティを提供する必要があります。

このソリューションを既存のPostfix設定と統合するには、いくつかの変更が必要な場合があります。

おすすめ記事