From d015ca310c2920df46e90e1ab8f257779024cbc8 Mon Sep 17 00:00:00 2001 From: Bobbi Webber-Manners Date: Sun, 4 Sep 2022 20:19:21 -0400 Subject: [PATCH] README-gmail-gateway.md: add line to force IPv4 --- README-gmail-gateway.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/README-gmail-gateway.md b/README-gmail-gateway.md index 0ede79b..43aeff9 100644 --- a/README-gmail-gateway.md +++ b/README-gmail-gateway.md @@ -179,6 +179,10 @@ My home network is 192.168.10.0/24, so I added it here: `mynetworks = 192.168.10.0/24 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128`. You should adjust this line to match your own LAN subnet. +I had an issue where the Pi was unable to connect to Google's SMTP server. +It turned out it was trying to use IPv6, so I forced IPv4 as follows: +`inet_protocols = ipv4` + Finally I added the following block of settings to enabled SASL authentication when talking to Gmail: @@ -245,7 +249,7 @@ mynetworks = 192.168.10.0/24 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128 mailbox_size_limit = 0 recipient_delimiter = + inet_interfaces = all -inet_protocols = all +inet_protocols = ipv4 # Enable SASL authentication smtp_sasl_auth_enable = yes