このブログは、旧・はてなダイアリー「檜山正幸のキマイラ飼育記 メモ編」(http://d.hatena.ne.jp/m-hiyama-memo/)のデータを移行・保存したものであり、今後(2019年1月以降)更新の予定はありません。

今後の更新は、新しいブログ http://m-hiyama-memo.hatenablog.com/ で行います。

Postfixを調べる


[hiyama@microapplications postfix]$ grep myhostname main.cf | grep '^[^#]'
myhostname = microapplications.net
myorigin = $myhostname
mydestination = $myhostname, localhost.$mydomain, localhost

[hiyama@microapplications postfix]$ grep mydomain main.cf | grep '^[^#]'
mydomain = microapplications.net
mydestination = $myhostname, localhost.$mydomain, localhost

[hiyama@microapplications postfix]$ grep mynet main.cf | grep '^[^#]'
mynetworks = 127.0.0.1

[hiyama@microapplications postfix]$ grep smtpd main.cf | grep '^[^#]'

[hiyama@microapplications postfix]$ grep smtpd main.cf
# through Postfix. See the smtpd_recipient_restrictions parameter
# relay mail to. See the smtpd_recipient_restrictions description in
# The smtpd_banner parameter specifies the text that follows the 220
#smtpd_banner = $myhostname ESMTP $mail_name
#smtpd_banner = $myhostname ESMTP $mail_name ($mail_version)

[hiyama@microapplications postfix]$ service postfix status
master (pid 3654) is running...

[hiyama@microapplications postfix]$

とかやってみたが、次が楽。


[hiyama@microapplications postfix]$ 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
debug_peer_level = 2
html_directory = no
inet_interfaces = all
mail_owner = postfix
mail_spool_directory = /var/mail
mailq_path = /usr/bin/mailq.postfix
manpage_directory = /usr/share/man
mydestination = $myhostname, localhost.$mydomain, localhost
mydomain = microapplications.net
myhostname = microapplications.net
mynetworks = 127.0.0.1
myorigin = $myhostname
newaliases_path = /usr/bin/newaliases.postfix
queue_directory = /var/spool/postfix
readme_directory = /usr/share/doc/postfix-2.2.10/README_FILES
sample_directory = /usr/share/doc/postfix-2.2.10/samples
sendmail_path = /usr/sbin/sendmail.postfix
setgid_group = postdrop
unknown_local_recipient_reject_code = 550

[hiyama@microapplications postfix]$