My python is 2.7.9 I tried to disable IPv6, then postfix won't auto start when I reboot my server. and use *#postfix start *will return this warning postfix/postfix-script: warning: /var/spool/postfix/etc/resolv.conf and /etc/resolv.conf differ postfix/postfix-script: starting the Postfix mail system
but my web2py can send mail to Gmail and work well. thanks. Leonel Câmara於 2016年3月24日星期四 UTC+8上午3時36分47秒寫道: > > Humm what version of python are you using? 2.7.11 does have source_address > https://hg.python.org/releases/2.7.11/file/tip/Lib/smtplib.py#l248 > > Basically the problem here google is that google returning an IPv6 address > to your socket.getaddrinfo(host, port) before the IPv4 addresses so it > tries to connect to that one first. > > Your options seem to be: > - Set a PTR record for your IPv6 address > - disable IPv6 system wide > - monkeypatch socket.create_connection to ignore IPv6 results from > socket.getaddrinfo. > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.