# "git send-email" thru Gmail incurs few minutes delay

7 messages from 2016-01-03 to 2016-02-08. Participants: Andrey Utkin, Jeff Merkey, Geert Uytterhoeven.
Thread: https://gitlist.dev/t/41110

## Andrey Utkin, 2016-01-03 13:52

Subject: "git send-email" thru Gmail incurs few minutes delay
Message-ID: <CAM_ZknWuOSbQcGvXaCDUKAJX7hR5FxJO3a8axPYS4ekyRiczCQ@mail.gmail.com>
URL: https://gitlist.dev/e/CAM_ZknWuOSbQcGvXaCDUKAJX7hR5FxJO3a8axPYS4ekyRiczCQ%40mail.gmail.com

```
After "Send this email? ([y]es|[n]o|[q]uit|[a]ll): y" prompt and
before "Password for 'smtp://XXX@gmail.com@smtp.gmail.com:587':"
prompt I always have a delay of 2-3 minutes. It is weird! "Unsafe
clients" are allowed in Gmail settings.
I experience this both with @gmail.com mailbox and with gmail-based
company domain mail.
I noticed this happening the first time several months ago.
Has anybody else experienced this? Any solution?
My git version is 2.6.4.

-- 
Bluecherry developer.

```

## Jeff Merkey, 2016-01-03 15:59

Subject: Re: "git send-email" thru Gmail incurs few minutes delay
Message-ID: <CAO6TR8UzKR=cXu-bgf4HfBwNKrmMx-Ucha-nHUA3ranw2AoxgA@mail.gmail.com>
URL: https://gitlist.dev/e/CAO6TR8UzKR%3DcXu-bgf4HfBwNKrmMx-Ucha-nHUA3ranw2AoxgA%40mail.gmail.com
In-Reply-To: <CAM_ZknWuOSbQcGvXaCDUKAJX7hR5FxJO3a8axPYS4ekyRiczCQ@mail.gmail.com>

```
On 1/3/16, Andrey Utkin <andrey.utkin@corp.bluecherry.net> wrote:
> After "Send this email? ([y]es|[n]o|[q]uit|[a]ll): y" prompt and
> before "Password for 'smtp://XXX@gmail.com@smtp.gmail.com:587':"
> prompt I always have a delay of 2-3 minutes. It is weird! "Unsafe
> clients" are allowed in Gmail settings.
> I experience this both with @gmail.com mailbox and with gmail-based
> company domain mail.
> I noticed this happening the first time several months ago.
> Has anybody else experienced this? Any solution?
> My git version is 2.6.4.
>
> --


Yes. I see it.  It's the gmail smtp gateway but 3 minutes is short, I
am seeing longer.  It's gmail not git.

Jeff


> Bluecherry developer.
> --
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at  http://www.tux.org/lkml/
>

```

## Geert Uytterhoeven, 2016-01-05 11:27

Subject: Re: "git send-email" thru Gmail incurs few minutes delay
Message-ID: <CAMuHMdUZf2CLyzWVr+KUcgALejWpgEhUt1DMDBg614bKbFEXZw@mail.gmail.com>
URL: https://gitlist.dev/e/CAMuHMdUZf2CLyzWVr%2BKUcgALejWpgEhUt1DMDBg614bKbFEXZw%40mail.gmail.com
In-Reply-To: <CAM_ZknWuOSbQcGvXaCDUKAJX7hR5FxJO3a8axPYS4ekyRiczCQ@mail.gmail.com>

```
On Sun, Jan 3, 2016 at 2:52 PM, Andrey Utkin
<andrey.utkin@corp.bluecherry.net> wrote:
> After "Send this email? ([y]es|[n]o|[q]uit|[a]ll): y" prompt and
> before "Password for 'smtp://XXX@gmail.com@smtp.gmail.com:587':"
> prompt I always have a delay of 2-3 minutes. It is weird! "Unsafe
> clients" are allowed in Gmail settings.
> I experience this both with @gmail.com mailbox and with gmail-based
> company domain mail.
> I noticed this happening the first time several months ago.
> Has anybody else experienced this? Any solution?
> My git version is 2.6.4.

Does it work better if you store the (preferably app-specific) password in
smtppass in .gitconfig?

Gr{oetje,eeting}s,

                        Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds

```

## Andrey Utkin, 2016-01-05 15:41

Subject: Re: "git send-email" thru Gmail incurs few minutes delay
Message-ID: <CAM_ZknX6m1UBrMyzovhRAODMzJxBD+gk86+6fmnDJLK6PwgokA@mail.gmail.com>
URL: https://gitlist.dev/e/CAM_ZknX6m1UBrMyzovhRAODMzJxBD%2Bgk86%2B6fmnDJLK6PwgokA%40mail.gmail.com
In-Reply-To: <CAMuHMdUZf2CLyzWVr+KUcgALejWpgEhUt1DMDBg614bKbFEXZw@mail.gmail.com>

```
On Tue, Jan 5, 2016 at 1:27 PM, Geert Uytterhoeven <geert@linux-m68k.org> wrote:
> Does it work better if you store the (preferably app-specific) password in
> smtppass in .gitconfig?

No.

```

## Andrey Utkin, 2016-02-08 00:22

Subject: Re: "git send-email" thru Gmail incurs few minutes delay
Message-ID: <CAM_ZknWNZFxhz8ELf+sc1X3gO=H3F+GYuNkornhU9qouffj6Hw@mail.gmail.com>
URL: https://gitlist.dev/e/CAM_ZknWNZFxhz8ELf%2Bsc1X3gO%3DH3F%2BGYuNkornhU9qouffj6Hw%40mail.gmail.com
In-Reply-To: <CAM_ZknWuOSbQcGvXaCDUKAJX7hR5FxJO3a8axPYS4ekyRiczCQ@mail.gmail.com>

```
On Sun, Jan 3, 2016 at 3:52 PM, Andrey Utkin
<andrey.utkin@corp.bluecherry.net> wrote:
> After "Send this email? ([y]es|[n]o|[q]uit|[a]ll): y" prompt and
> before "Password for 'smtp://XXX@gmail.com@smtp.gmail.com:587':"
> prompt I always have a delay of 2-3 minutes. It is weird! "Unsafe
> clients" are allowed in Gmail settings.
> I experience this both with @gmail.com mailbox and with gmail-based
> company domain mail.
> I noticed this happening the first time several months ago.
> Has anybody else experienced this? Any solution?
> My git version is 2.6.4.

Tested more with fresh git version 2.7.1.380.g0fea050 (from git's git)
 # equery list '*' | grep -i smtp
dev-perl/Net-SMTP-SSL-1.30.0
mail-mta/ssmtp-2.64-r3

It seems the delay is caused by git-send-email trying to resolve
workstation's FQDN.
When I add "smtpdomain = localhost.localdomain" to [sendmail] section
in gitconfig, it proceeds immediately.
The same behavior (including workaround case) happens with
openmailbox.org and fastmail.com for me.
BTW "smtpEncryption = tls" in gitconfig seems to mean STARTTLS, so
using fastmail's TLS port 465 doesn't work at all, you need to use
587.

```

## Jeff Merkey, 2016-02-08 00:42

Subject: Re: "git send-email" thru Gmail incurs few minutes delay
Message-ID: <CAO6TR8UGwqtsXSoYkxgjMy34rrkHAFJ+ALf0ufSaA8uDrDmxqQ@mail.gmail.com>
URL: https://gitlist.dev/e/CAO6TR8UGwqtsXSoYkxgjMy34rrkHAFJ%2BALf0ufSaA8uDrDmxqQ%40mail.gmail.com
In-Reply-To: <CAM_ZknWNZFxhz8ELf+sc1X3gO=H3F+GYuNkornhU9qouffj6Hw@mail.gmail.com>

```
On 2/7/16, Andrey Utkin <andrey.utkin@corp.bluecherry.net> wrote:
> On Sun, Jan 3, 2016 at 3:52 PM, Andrey Utkin
> <andrey.utkin@corp.bluecherry.net> wrote:
>> After "Send this email? ([y]es|[n]o|[q]uit|[a]ll): y" prompt and
>> before "Password for 'smtp://XXX@gmail.com@smtp.gmail.com:587':"
>> prompt I always have a delay of 2-3 minutes. It is weird! "Unsafe
>> clients" are allowed in Gmail settings.
>> I experience this both with @gmail.com mailbox and with gmail-based
>> company domain mail.
>> I noticed this happening the first time several months ago.
>> Has anybody else experienced this? Any solution?
>> My git version is 2.6.4.
>
> Tested more with fresh git version 2.7.1.380.g0fea050 (from git's git)
>  # equery list '*' | grep -i smtp
> dev-perl/Net-SMTP-SSL-1.30.0
> mail-mta/ssmtp-2.64-r3
>
> It seems the delay is caused by git-send-email trying to resolve
> workstation's FQDN.
> When I add "smtpdomain = localhost.localdomain" to [sendmail] section
> in gitconfig, it proceeds immediately.
> The same behavior (including workaround case) happens with
> openmailbox.org and fastmail.com for me.
> BTW "smtpEncryption = tls" in gitconfig seems to mean STARTTLS, so
> using fastmail's TLS port 465 doesn't work at all, you need to use
> 587.
>

Try this page.  Some good gmail config info.

http://kernelnewbies.org/FirstKernelPatch

Jeff

```

## Andrey Utkin, 2016-02-08 03:15

Subject: Re: "git send-email" thru Gmail incurs few minutes delay
Message-ID: <CAM_ZknUrVOyCdM32qbxOD_JVfKoqUdeo5Hywyxo3b1KfG=XhEQ@mail.gmail.com>
URL: https://gitlist.dev/e/CAM_ZknUrVOyCdM32qbxOD_JVfKoqUdeo5Hywyxo3b1KfG%3DXhEQ%40mail.gmail.com
In-Reply-To: <CAO6TR8UGwqtsXSoYkxgjMy34rrkHAFJ+ALf0ufSaA8uDrDmxqQ@mail.gmail.com>

```
On Mon, Feb 8, 2016 at 2:42 AM, Jeff Merkey <linux.mdb@gmail.com> wrote:
> Try this page.  Some good gmail config info.
>
> http://kernelnewbies.org/FirstKernelPatch
>
> Jeff

Thanks Jeff, but I believe there's nothing new for me. I have
successfully sent my first kernel patch a long time ago.
Also my gitconfig sendemail section follows exactly the gmail-based
example from git-send-email manpage.

-- 
Bluecherry developer.

```
