21/06/28 22:10:46.58 wwq99Pnx.net
続きです
・/etc/postfix/master.cfの設定(コメントを外した個所のみ記載)
smtp inet n - n - - smtpd
submission inet n - n - - smtpd
-o smtpd_sasl_auth_enable=yes
-o smtpd_recipient_restrictions=permit_sasl_authenticated,reject
smtps inet n - n - - smtpd
-o syslog_name=postfix/smtps
-o smtpd_tls_wrappermode=yes
・/etc/postfix/sasl_passwd
[smtp.gmail.com]:587 xxx.xxx@gmail.com:xxxxxxx(メールアドレスとパスワードを伏せる為)
メール送信コマンド
echo test | mail xxx.xxx@gmail.com
続きます