MacOS Sierra sending mail from terminal?

clean macOS Sierra

/etc/postfix/main.cf
configured (taken from here)
_____________________________
#Gmail SMTP
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=noanonymous
smtp_sasl_mechanism_filter=plain
# Enable Transport Layer Security (TLS), i.e. SSL.
smtp_use_tls=yes
smtp_tls_security_level=encrypt
tls_random_source=dev:/dev/urandom

_____________
/etc/postfix/sasl_passwd
_____________________________

Send a test message date | mail-s testing zaza41rus@gmail.com

Neither of which comes

probyval so Still manual

also I can't do anything.

The system does not find any logs logs for mail (Postfix)

syslogd is running and has a track...:

/etc/syslog.conf:
# Note that flat file logs are now configured in /etc/asl.conf

*.* @127.0.0.1:32376


/etc/asl/com.apple.mail

# mail facility has its own log file
? [= Facility mail] claim only
> /var/log/mail.log mode=0644 format=bsd rotate=seq compress file_max=5M all_max=50M
* file /var/log/mail.log
August 19th 19 at 23:10
1 answer
August 19th 19 at 23:12
Try this (option for mailgun)
relayhost = [smtp.mailgun.org]:587
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = static:postmaster@mydomain.com:password
smtp_sasl_security_options = noanonymous

Find more questions by tags macOSPostfixSendmailCommand line