Help → Can't connect to Gmail (Mac OS X 10.5)

Can't connect to Gmail (Mac OS X 10.5)

Hi folks -

I recently installed POPFile on my new laptop, and after installing the required SSL components I still cannot refresh folders or connect to Gmail.

Here's the output from the console log:

2008/12/1 09:19:43 381: POPFile successfully started
2008/12/1 09:19:44 381: IMAP-Client: 136: IO::Socket::SSL error: IO::Socket::SSL: bind: Address family not supported by protocol family
2008/12/1 09:19:44 381: imap: 1624: Could not CONNECT to server.
2008/12/1 09:19:44 381: imap: 272: Could not connect: NO_CONNECT Services/IMAP.pm(396))
2008/12/1 09:20:00 381: IMAP-Client: 136: IO::Socket::SSL error: IO::Socket::SSL: bind: Address family not supported by protocol family

Any ideas on how I can fix this?

Thanks,
Neil

  • Message #603

    Which operating system are you using?

    Which version of POPFile are you using?

    How did you add the SSL support to POPFile?

    Brian

    • Message #608

      Sorry, I should have been way more specific on my current setup:

      Which operating system are you using?

      Mac OS X 10.5

      Which version of POPFile are you using?

      1.1 - whatever is the most recent public release version.

      How did you add the SSL support to POPFile?

      Initially I tried adding it by installing the SSL package from the mac installer, but that didn't work. So I instead used CPAN to install the required modules.

      • Message #611

        As you've probably already noticed I've changed this topic's title :)

        Naoki is the Mac expert so I cannot offer much detailed help.

        Initially I tried adding it by installing the SSL package from the mac installer, but that didn't work.

        POPFile 1.1.0 is the first release to offer a Mac installer. I think you should raise a ticket about this problem (tickets make it easier for the developers to keep track of problems). You can do that here. It would help Naoki if you could provide some details about what did not work and any error messages you saw.

        So I instead used CPAN to install the required modules.

        The error message might mean that something is missing or that there is a mismatch between the components you've installed (e.g. POPFile requires some features not found in some versions of IO::Socket::SSL).

        Which version of IO::Socket::SSL did you install?

        Brian

        • Message #616

          Which version of IO::Socket::SSL did you install?

          Where can I find this information. Also, if I wanted to "reset" my perl install back to defaults what would be the best way to do so? I currently have macports installed, but currently perl is at /usr/bin/perl and openssl is at /usr/bin/openssl.

          • Message #617

            Which version of IO::Socket::SSL did you install?


            Where can I find this information.

            Try this command:

            perl -MIO::Socket::SSL -e 'print $IO::Socket::SSL::VERSION;'

            Also, if I wanted to "reset" my perl install back to defaults what would be the best way to do so?

            Sorry, I'm a Windows user so I cannot answer this question.

            Brian

  • Message #612

    Hi Neil,

    2008/12/1 09:19:44 381: IMAP-Client: 136: IO::Socket::SSL error: IO::Socket::SSL: bind: Address family not supported by protocol family

    Hmm... I've never seen this warning.

    At first, could you take a log with logger_level 2?
    http://getpopfile.org/docs/troubleshooting:preparelog

    After googling the warning, I've started to think it might be related to IPv6.
    If you are not using IPv6, please disable it and test POPFile.
    To disable IPv6, please follow below instructions:

    System Preferences -> Network -> (choose the interface from left pane) -> Advanced button -> TCP/IP tab -> click Configure IPv6 popup menu and select off

    And please try dig AAAA command to lookup DNS.
    Here's my machine's output:

    % dig AAAA mail.google.com
    
    ; <<>> DiG 9.4.2-P2 <<>> AAAA mail.google.com
    ;; global options:  printcmd
    ;; Got answer:
    ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 52722
    ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 0
    
    ;; QUESTION SECTION:
    ;mail.google.com.		IN	AAAA
    
    ;; ANSWER SECTION:
    mail.google.com.	60539	IN	CNAME	googlemail.l.google.com.
    
    ;; AUTHORITY SECTION:
    l.google.com.		262	IN	SOA	f.l.google.com. dns-admin.google.com. 1365365 900 900 1800 60
    
    ;; Query time: 178 msec
    ;; SERVER: 192.168.0.1#53(192.168.0.1)
    ;; WHEN: Tue Dec  9 22:27:03 2008
    ;; MSG SIZE  rcvd: 108
    

    Naoki

    • Message #615

      First of all, thanks a lot for your help!

      Here's some of the output after I changed the logging:

      2008/12/9 09:47:21 91: html: 191: Close HTTP connection on IO::Socket::INET=GLOB(0xc16da0)[0a]
      2008/12/9 09:47:21 91: html: 657: Read slurp data GET /skins/osx/style.css HTTP/1.1[0d][0a]Host: 127.0.0.1:8080[0d][0a]User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-CA; rv:1.9.2a1pre) Gecko/20081208 Firefo
      2008/12/9 09:47:21 91: html: 156: GET /skins/osx/style.css HTTP/1.1[0d][0a]
      2008/12/9 09:47:21 91: html: 657: Read slurp data x/3.2a1pre[0d][0a]Accept: text/css,*/*;q=0.1[0d][0a]Accept-Language: en-CA,en;q=0.9,en-US;q=0.8,en-us;q=0.6,en-gb;q=0.5,defaultQLS;q=0.4,en-ca;q=0.3,en;q=0.1[0d][0a]Accept-Encodi
      2008/12/9 09:47:21 91: html: 657: Read slurp data ng: gzip,deflate[0d][0a]Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7[0d][0a]Keep-Alive: 300[0d][0a]Connection: keep-alive[0d][0a]Referer: http://127.0.0.1:8080/advanced[0d][0a]Cache-Contro
      2008/12/9 09:47:21 91: html: 657: Read slurp data l: max-age=0[0d][0a][0d][0a]
      2008/12/9 09:47:21 91: html: 183: HTTP handle_url returned code 1[0a]

      Running dig gives me the same output as you, and turning off IPv6 doesn't fix the problem.

  • Message #636

    Hi Neil

    Sorry for late reply. I've been busy at work these days.

    2008/12/1 09:19:44 381: IMAP-Client: 136: IO::Socket::SSL error: IO::Socket::SSL: bind: Address family not supported by protocol family

    I saw the same warning today on my MacBook?:

    2008/12/21 03:19:26 159: IMAP-Client: 128: Connecting to imap.gmail.com:993
    2008/12/21 03:19:26 159: IMAP-Client: 136: IO::Socket::SSL error: IO::Socket::SSL: bind: Address family not supported by protocol family
    

    I've googled 'imap.gmail.com' and found a solution:

    http://blog.jameskanka.com/2008/01/google-imap-server.html

    Replacing 'imap.gmail.com' with 'gmail-imap.l.google.com' solved my problem.

    Naoki