nullmailerが自分のホスト名を受信者アドレスに追加するのはなぜですか?

nullmailerが自分のホスト名を受信者アドレスに追加するのはなぜですか?

私のプロバイダのSMTPにメールを中継するようにnullmailerを設定したいと思います。

プロバイダは、送信者ドメインとユーザーのログインが一致しない電子メールを削除するため、ログインを一致させ、機能し、完全修飾アドレス/etc/nullmailer/allmailfrom/etc/nullmailer/remotes電子メールを送信できました。

/etc/nullmailer/adminaddr私はまた、すべてのローカル電子メール[user]@localhostをにリダイレクトした[email protected]man nullmailer-queue

   adminaddr
          If this file is not empty, all recipients to users at either
          "localhost" (the literal string) or the canon‐
          ical host name (from /etc/mailname ) are remapped to this 
          address.  This is provided to allow local daemons
          to be able to send email to "somebody@localhost" and have it go
          somewhere sensible instead of being bounced
          by your relay host. To send to multiple addresses, put them all
          on one line separated by a comma.

myowndomain.netこれで、ユニバーサルユーザー名()に追加しようとしていますmail any_username。によるとman nullmailer-inject

   defaultdomain
          The  content  of  this file is appended to any host name that
          does not contain a period (except localhost),
          including defaulthost and idhost.  Defaults to the value of the
          /etc/mailname system file,  if  it  exists,
          otherwise the literal name defauldomain.

   defaulthost
          The  content of this file is appended to any address that is
          missing a host name.  Defaults to the value of
          the /etc/mailname system file, if it exists, otherwise the
          literal name defaulthost.

/etc/nullmailer/defaulthost私が理解したのは、ホスト名が見つからないアドレスに電子メールを送信するために使用する必要があります。だからちょうどそこに置いたmyowndomain.net

ただし、nullmailerがまだ添付されているため、@hostname.myprovider.netSMTPリレーホストからEメールを削除します。問題のドメインが存在しません。

ホスト名が不足しているアドレスに追加する@myprovider.netのではなく、追加のみを行うようにnullmailerを設定するにはどうすればよいですか?@hostname.myprovider.net

ベストアンサー1

おすすめ記事