提示コードですがpostfixを使ってxamppを使って会員登録にメールアドレスを入れて送信するという処理を作りたいのですが参考サイト通りmain.cfを編集しても再起動でエラーが起きてしまいます。これはどうやって修正するのでしょうか?受信先はgmailです。
postfix: warning: /etc/postfix/main.cf, line 54: overriding earlier entry: myhostname=shigurechan-System-Product-Name postfix: fatal: file /etc/postfix/main.cf: parameter mail_owner: unknown user name value: _postfix
参考サイト(Postfixの設定方法): https://sendgrid.kke.co.jp/blog/?p=12824
コンソール
$ sudo postfix reload postfix: warning: /etc/postfix/main.cf, line 54: overriding earlier entry: myhostname=shigurechan-System-Product-Name postfix: fatal: file /etc/postfix/main.cf: parameter mail_owner: unknown user name value: _postfix shigurechan@shigurechan-System-Product-Name:/etc/postfix$ sudo emacs main.cf
main.cf
cf
1# See /usr/share/postfix/main.cf.dist for a commented, more complete version 2 3 4# Debian specific: Specifying a file name will cause the first 5# line of that file to be used as the name. The Debian default 6# is /etc/mailname. 7#myorigin = /etc/mailname 8 9smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu) 10biff = no 11 12# appending .domain is the MUA's job. 13append_dot_mydomain = no 14 15# Uncomment the next line to generate "delayed mail" warnings 16#delay_warning_time = 4h 17 18readme_directory = no 19 20# See http://www.postfix.org/COMPATIBILITY_README.html -- default to 2 on 21# fresh installs. 22compatibility_level = 2 23 24 25 26# TLS parameters 27smtpd_tls_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem 28smtpd_tls_key_file=/etc/ssl/private/ssl-cert-snakeoil.key 29smtpd_tls_security_level=may 30 31smtp_tls_CApath=/etc/ssl/certs 32smtp_tls_security_level=may 33smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache 34 35 36smtpd_relay_restrictions = permit_mynetworks permit_sasl_authenticated defer_unauth_destination 37myhostname = shigurechan-System-Product-Name 38alias_maps = hash:/etc/aliases 39alias_database = hash:/etc/aliases 40mydestination = $myhostname, shigurechan-System-Product-Name, localhost.localdomain, , localhost 41relayhost = 42mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128 43mailbox_command = procmail -a "$EXTENSION" 44mailbox_size_limit = 0 45recipient_delimiter = + 46inet_interfaces = all 47inet_protocols = all 48 49 50mail_owner=_postfix 51 52setgid_group=_postdrop 53 54myhostname=localhost.localdomain 55 56compatibility_level = 2 57