4
5

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

postfixのmynetworksとsmtp-auth

Last updated at Posted at 2015-09-16

<概要>

/etc/postfix/main.cfのmynetworks
にリレーを許可するネットワークの記載有無とsmtp-authの有無の動作を確認してみた。

<結果>

|NO |mynetworksに
送信元IPの記載有無|認証(smtp-auth)
の有無|結果|
|:--:|:--:|:--:|:--|:--:|
|1 | 有り|- |送信可能|
|2 | 有り|有り |送信可能|
|3 | 有り|有り(誤ったpass)|送信NG|
|4 | - |- |送信NG|
|5 | - |有り |送信可能|

注目はNo3。たとえmynetworkで記載があっても認証が失敗だと、
送信できないようです。
逆にNo1のように認証をなくしてしまえば送信できる。

<備考>

smtpd_recipient_restrictionsは以下のような設定です。
smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination

4
5
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4
5

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?