2019年2月17日日曜日

postfix設定メモ

以下、不要かもリスト;


◻️/etc/postfix/main.cf

###########  add settings  ##################
#local_recipient_maps =
#luser_relay = unknown_user@localhost
#disable_vrfy_command = yes

# MailBox
mailbox_size_limit = 204800000

#smtpd_client_restrictions =
#    check_client_access hash:/etc/postfix/access
#    reject_rbl_client zen.spamhaus.org
#    reject_non_fqdn_sender
#    reject_unknown_sender_domain
#smtpd_sender_restrictions =
#        reject_rhsbl_sender zen.spamhaus.org
#        reject_unknown_sender_domain

########## SMTP-Auth ##########

# Dovecot SASL
smtpd_sasl_type = dovecot
smtpd_sasl_path = private/auth
broken_sasl_auth_clients = yes


# SASL Authentication
smtpd_sasl_auth_enable = yes
#smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd  <--リレー送信用の設定なので、今回は不要
smtp_sasl_security_options = noanonymous
smtp_sasl_mechanism_filter = plain
smtp_sasl_auth_enable = yes
smtp_sasl_tls_security_options = noanonymous


########## TLS/SSL ##########
smtpd_use_tls = yes
smtp_tls_security_level = may
smtpd_tls_cert_file = /etc/pki/tls/device.crt
smtpd_tls_key_file = /etc/pki/tls/device.key
smtpd_tls_CAfile = /etc/pki/tls/rootCA.pem
tls_random_source = dev:/dev/urandom

smtpd_tls_loglevel = 1
smtpd_tls_received_header = yes
smtpd_tls_session_cache_database = btree:/var/lib/postfix/smtpd_scache
smtpd_tls_session_cache_timeout = 3600s
smtpd_sasl_auth_enable = yes

#smtpd_recipient_restrictions =
#    permit_mynetworks
#    permit_sasl_authenticated

#    reject_unauth_destination

0 件のコメント:

コメントを投稿

php log(ECS ログ出力)

# PHPエラーログの設定 ENV PHP_INI_DIR /usr/local/etc/php RUN { \ echo 'log_errors = On' ; \ echo 'error_log = /proc/self/...