postfixの設定が上手くいっていない様でメールが送信出来てないです。
おかしい所や正常にいっている設定等ご教示
頂ければ幸いです。
【環境】
mac os sierra
mamp使用
php 5.6.30
——————————————————————————————————————————
php.ini
[mail function]
; For Win32 only.
SMTP = smtp.gmail.com
smtp_port = 587
; For Win32 only.
sendmail_from = tak****@gmail.com
——————————————————————————————————————————
postfix
sudo vi /etc/postfix/sasl_passwd
smtp.gmail.com:587 tak********@gmail.com:*******
postmap /etc/postfix/sasl_passwd
sudo vi /etc/postfix/main.cf
#Minimum Postfix-specific configurations
mydomain_fallback = localhost
mail_owner = _postfix
setgid_group = _postdrop
relayhost = smtp.gmail.com:587
Enable SASL authentication in the Postfix SMTP client.
smtp_sasl_auth_enable=yes
smtp_sasl_password_maps=hash:/etc/postfix/sasl_passwd
smtp_sasl_security_options=
Enable Transport Layer Security (TLS), i.e. SSL.
smtp_use_tls=yes
smtp_tls_security_level=encrypt
tls_random_source=dev:/dev/urandom
——————————————————————————————————————————
これでpostfixをリロードして
mailコマンドしたのですが、送信出来ず、ご助言お願い致します。
あなたの回答
tips
プレビュー