postfixでGmailに送信できるようにする

https://sites.google.com/site/shin1ogawa/mac-osx-1/postfix_gmail

Gmailへ送信時に以下のエラー発生

Feb 20 11:05:05 ip-172-31-8-159 postfix/smtp[3524]: connect to smtp.gmail.com[2404:6800:4008:c03::6c]:587: Network is unreachable

原因は、ipv6でつなぎにいっていることだった。main.cfのinet_protcolsをipv4とセットすることで回避。