◻️以下のpostfixの追記を行う。
======/etc/postfix/main.cf=========================
# local send mail only
check_local_only = check_recipient_access hash:/etc/postfix/local_domains,reject
check_sender_restriction = check_sender_access hash:/etc/postfix/restricted_senders
smtpd_sender_restrictions = check_sender_access hash:/etc/postfix/restricted_senders
smtpd_restriction_classes = local_only
local_only = check_recipient_access hash:/etc/postfix/local_domains,reject
============================================
vi /etc/postfix/restricted_senders
=======restricted_senders=======
=======restricted_senders=======
test1@digihide.local local_only
============================
/etc/postfix/local_domains
=====local_domains======
digihide.local OK
======================
◻️MAPを更新する。
# postmap /etc/postfix/restricted_senders
# postmap /etc/postfix/local_domains
# postmap /etc/postfix/restricted_senders
# postmap /etc/postfix/local_domains
◻️postfixのサービスを再起動を行う
systemctl restart posrfix
◻️以下、編集する。
/etc/postfix/master.cf
========================================
smtp inet n - n - - smtpd
#smtp inet n - n - 1 postscreen
#smtpd pass - - n - - smtpd
#dnsblog unix - - n - 0 dnsblog
#tlsproxy unix - - n - 0 tlsproxy
#submission inet n - n - - smtpd
# -o syslog_name=postfix/submission
# -o smtpd_tls_security_level=encrypt
# -o smtpd_sasl_auth_enable=yes
# -o smtpd_reject_unlisted_recipient=no
# -o smtpd_client_restrictions=$mua_client_restrictions
# -o smtpd_helo_restrictions=$mua_helo_restrictions
# -o smtpd_sender_restrictions=$mua_sender_restrictions
# -o smtpd_recipient_restrictions=permit_sasl_authenticated,reject
# -o milter_macro_daemon_name=ORIGINATING
smtps inet n - n - - smtpd
# -o syslog_name=postfix/smtps
-o smtpd_tls_wrappermode=yes
-o smtpd_sasl_auth_enable=yes
# -o smtpd_reject_unlisted_recipient=no
# -o smtpd_client_restrictions=$mua_client_restrictions
# -o smtpd_helo_restrictions=$mua_helo_restrictions
-o smtpd_restriction_classes=local_only
-o local_only=${check_local_only}
-o smtpd_sender_restrictions=${check_sender_restriction}
-o smtpd_recipient_restrictions=permit_sasl_authenticated,reject
# -o milter_macro_daemon_name=ORIGINATING
==================================================
0 件のコメント:
コメントを投稿