「Postfix」バージョン確認と設定内容を操作するメモ
1.Postfixのバージョン確認
# postconf | grep mail_version
mail_version = 2.10.1
milter_macro_v = $mail_name $mail_version
2.Postfixの設定表示
# /usr/sbin/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
html_directory = no
inet_interfaces = all
inet_protocols = all
mail_owner = postfix
mailq_path = /usr/bin/mailq.postfix
manpage_directory = /usr/share/man
mydestination = $myhostname, localhost.$mydomain, localhost
newaliases_path = /usr/bin/newaliases.postfix
queue_directory = /var/spool/postfix
readme_directory = /usr/share/doc/postfix-2.10.1/README_FILES
relayhost = [xxxxx]
sample_directory = /usr/share/doc/postfix-2.10.1/samples
sendmail_path = /usr/sbin/sendmail.postfix
setgid_group = postdrop
smtpd_tls_cert_file = /etc/postfix/server.crt
smtpd_tls_key_file = /etc/postfix/server.key
unknown_local_recipient_reject_code = 550
3.設定ファイル
#cat /etc/postfix/main.cf
4.プロセス確認
# ps -ef | grep postfix
root 104650 1 0 12:43 ? 00:00:00 /usr/libexec/postfix/master -w
postfix 104652 104650 0 12:43 ? 00:00:00 qmgr -l -t unix -u
postfix 104658 104650 0 12:43 ? 00:00:00 tlsmgr -l -t unix -u
postfix 108096 104650 0 19:23 ? 00:00:00 pickup -l -t unix -u
root 108139 107890 0 19:28 pts/0 00:00:00 grep –color=auto postfix