postconf
postconf
はPostfix設定ユーティリティ.
-a
List the available SASL server plug-in types.
利用可能なSASLサーバプラグインを表示.
$ postconf -a
cyrus
dovecot
-b [template_file]
Display the message text that appears at the beginning of delivery status notification (DSN) messages, replacing $name expressions with actual values as described in bounce(5). To override the built-in templates, specify a template file name at the end of the postconf(1) command line, or specify a file name in main.cf with the bounce_template_file parameter.
DSN(delivery status notification)メッセージの表示/上書き
$ postconf -b
expanded_failure_text = <<EOF
This is the mail system at host xxxx.vs.sakura.ne.jp.
I'm sorry to have to inform you that your message could not
be delivered to one or more recipients. It's attached below.
For further assistance, please send mail to postmaster.
If you do so, please include this problem report. You can
delete your own text from the attached returned message.
The mail system
EOF
expanded_delay_text = <<EOF
This is the mail system at host xxxx.vs.sakura.ne.jp.
####################################################################
# THIS IS A WARNING ONLY. YOU DO NOT NEED TO RESEND YOUR MESSAGE. #
####################################################################
Your message could not be delivered for more than 0 hour(s).
It will be retried until it is 5 day(s) old.
For further assistance, please send mail to postmaster.
If you do so, please include this problem report. You can
delete your own text from the attached returned message.
The mail system
EOF
expanded_success_text = <<EOF
This is the mail system at host xxxx.vs.sakura.ne.jp.
Your message was successfully delivered to the destination(s)
listed below. If the message was delivered to mailbox you will
receive no further notifications. Otherwise you may still receive
notifications of mail delivery errors from other systems.
The mail system
EOF
expanded_verify_text = <<EOF
This is the mail system at host xxxx.vs.sakura.ne.jp.
Enclosed is the mail delivery report that you requested.
The mail system
EOF
-c config_dir
The main.cf configuration file is in the named directory instead of the default configuration directory.
main.cfが配置されているディレクトリを指定. マルチインスタンス化してる時に使う.
$ postconf -c /etc/postfix/
2bounce_notice_recipient = postmaster
access_map_defer_code = 450
access_map_reject_code = 554
address_verify_cache_cleanup_interval = 12h
address_verify_default_transport = $default_transport
address_verify_local_transport = $local_transport
address_verify_map = btree:$data_directory/verify_cache
address_verify_negative_cache = yes
address_verify_negative_expire_time = 3d
address_verify_negative_refresh_time = 3h
~
~
-d
Print main.cf default parameter settings instead of actual settings.
main.cfのデフォルト値を表示.
$ postconf -d
2bounce_notice_recipient = postmaster
access_map_defer_code = 450
access_map_reject_code = 554
address_verify_cache_cleanup_interval = 12h
address_verify_default_transport = $default_transport
address_verify_local_transport = $local_transport
address_verify_map = btree:$data_directory/verify_cache
address_verify_negative_cache = yes
address_verify_negative_expire_time = 3d
address_verify_negative_refresh_time = 3h
~
~
-n
Show only configuration parameters that have explicit name=value settings in main.cf.
明示的に設定されているパラメータを表示.
$ postconf -n
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/libexec/postfix
data_directory = /var/lib/postfix
debug_peer_level = 2
debugger_command = PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin ddd $daemon_directory/$process_name $process_id & sleep 5
home_mailbox = Maildir/
html_directory = no
~
~
postfix
postfix
はPostfix制御プログラム.
check
Warn about bad directory/file ownership or permissions, and create missing directories.
Postfxi設定内容と所有権のテスト.
# postfix check
# echo $?
0
start
Start the Postfix mail system. This also runs the configuration check described above.
stop
Stop the Postfix mail system in an orderly fashion. If possible, running processes are allowed to terminate at their earliest convenience.
Note: in order to refresh the Postfix mail system after a configuration change, do not use the start and stop commands in succession. Use the reload command instead.
注釈: Postfix設定変更後にstartとstopを連続して使用してはいけない. 代わりにreloadを使用する.
abort
Stop the Postfix mail system abruptly. Running processes are signaled to stop immediately.
Postfixを強制停止する.
flush
Force delivery: attempt to deliver every message in the deferred mail queue. Normally, attempts to deliver delayed mail happen at regular intervals, the interval doubling after each failed attempt.
Warning: flushing undeliverable mail frequently will result in poor delivery performance of all other mail.
強制配送: キューに滞留している全てのメッセージの配送を試みる. 通常, 遅延メールの配送は定期的に発生する. 配送失敗する度に配送試行間隔が2倍になる.
警告: 滞留しているメールを頻繁にflushすると, メール配送全体のパフォーマンスに影響し, スループットの低下に繋がる.
reload
Re-read configuration files. Running processes terminate at their earliest convenience.
Postfix設定ファイルを再読み込みする. 実行中プロセスは可能な限り終了を試みる.
status
Indicate if the Postfix mail system is currently running.
# postfix status
postfix/postfix-script: the Postfix mail system is running: PID: 28511