# Global Postfix configuration file. This file lists only a subset # of all parameters. For the syntax, and for a complete parameter # list, see the postconf(5) manual page (command: "man 5 postconf"). # command_directory = /usr/sbin daemon_directory = /usr/lib/postfix data_directory = /var/lib/postfix mail_owner = postfix myhostname = Rpi3-com1.sunao-mita.pgw.jp mydomain = sunao-mita.pgw.jp myorigin = /etc/mailname inet_interfaces = all mydestination = Rpi3-com1, $myhostname, localhost, $mydomain local_recipient_maps = unix:passwd.byname $alias_maps unknown_local_recipient_reject_code = 550 mynetworks = 127.0.0.0/8, [::ffff:127.0.0.0]/104 [::1]/128 192.168.10.0/24 [240f:e3:b2ba:1::0]/64 relayhost = [smtp.nifty.com]:587 #add for op25b smtp_sasl_auth_enable = yes smtp_sasl_password_maps = hash:/etc/postfix/nifty.auth smtp_sasl_security_options = noanonymous alias_maps = hash:/etc/aliases alias_database = hash:/etc/aliases home_mailbox = Maildir/ smtpd_banner = $myhostname ESMTP debugger_command = PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin ddd $daemon_directory/$process_name $process_id & sleep 5 sendmail_path = /usr/sbin/postfix newaliases_path = /usr/bin/newaliases mailq_path = /usr/bin/mailq setgid_group = postdrop inet_protocols = ipv4, ipv6 # 最終行へ追記:送受信メールサイズを10Mに制限 message_size_limit = 10485760 # メールボックスサイズを1Gに制限 mailbox_size_limit = 1073741824 # SMTP-Auth 設定 smtpd_sasl_type = dovecot smtpd_sasl_path = private/auth smtpd_sasl_local_domain = $myhostname smtpd_recipient_restrictions = permit_mynetworks,permit_auth_destination,permit_sasl_authenticated,reject mua_client_restrictions = permit_sasl_authenticated,reject mua_helo_restrictions = permit_sasl_authenticated,reject mua_sender_restrictions = permit_sasl_authenticated,reject