The following ip6tables block thunderbird from retrieving email from my gmail account:
sudo ip6tables -P FORWARD DROP
sudo ip6tables -P INPUT DROP
sudo ip6tables -P OUTPUT DROP
sudo ip6tables -A INPUT -j ACCEPT -i lo
sudo ip6tables -A OUTPUT -j ACCEPT -o lo
sudo ip6tables -A INPUT -j ACCEPT -m conntrack --ctstate ESTABLISHED,RELATED
sudo ip6tables -A OUTPUT -j ACCEPT -m conntrack --ctstate ESTABLISHED,RELATED
sudo ip6tables -A INPUT -p icmpv6 -j ACCEPT
sudo ip6tables -A OUTPUT -p icmpv6 -j ACCEPT
sudo ip6tables -A OUTPUT -j ACCEPT -p tcp --dport 53 -m comment --comment "DNS/TCP"
sudo ip6tables -A OUTPUT -j ACCEPT -p udp --dport 53 -m comment --comment "DNS/UDP"
sudo ip6tables -A OUTPUT -j ACCEPT -p tcp --dport 22 -m comment --comment "SSH secure shell"
sudo ip6tables -A OUTPUT -j ACCEPT -p tcp --dport 80 -m comment --comment "HTTP"
sudo ip6tables -A OUTPUT -j ACCEPT -p tcp --dport 443 -m comment --comment "HTTPS"
sudo ip6tables -A OUTPUT -j ACCEPT -p tcp --dport 110 -m comment --comment "POP3"
sudo ip6tables -A OUTPUT -j ACCEPT -p tcp --dport 143 -m comment --comment "IMAP"
sudo ip6tables -A OUTPUT -j ACCEPT -p tcp --dport 993 -m comment --comment "IMAP/SSL"
sudo ip6tables -A OUTPUT -j ACCEPT -p tcp --dport 25 -m comment --comment "SMTP"
sudo ip6tables -A OUTPUT -j ACCEPT -p tcp --dport 26 -m comment --comment "SMTP 2nd"
sudo ip6tables -A OUTPUT -j ACCEPT -p tcp --dport 465 -m comment --comment "SMTP/SSL"
Whenever I disable them, thunderbird can retrieve email fine. What am I doing wrong?