LoginSignup
1
6

More than 5 years have passed since last update.

Postfix のメール転送の設定を確認する

Posted at

aliases の設定

vi /etc/aliases
newaliases
postfix reload

newaliases コマンドは This mode of operation is implemented by running the postalias(1) command. とマニュアルに記載されているので postalias コマンドを別途実行する必要はない。

また Note: it may take a minute or so before an alias database update becomes visible. Use the "postfix reload" command to eliminate this delay. とマニュアルに記載があるので postfix reload コマンドを実行すると即時反映される。

aliases.db をダンプして確認

file /etc/aliases.db

file コマンドで /etc/aliases.db を確認すると /etc/aliases.db: Berkeley DB (Hash, version 9, native byte-order) と返ってくることから Berkeley DB ファイルだと分かる。

db_dump -p /etc/aliases.db

db_dump コマンドで中身を確認することができる。
行末に \00 というコードが付加される。

strings /etc/aliases.db

strings コマンドで参照すると余計な \00 は表示されないのでこちらの方が見やすいかもしれない。

1
6
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
1
6