Skip to contentSkip to conversation

Not able to send mail to the mailing list

DISCUSSION Neetu Yadav 5 participants 12 messages Sep 7, 2017 – Sep 8, 2017

lore
Share & tools
lore
#0 lore raw

Hello everyone,

I am following the instructions of the outreachy first patch tutorial. But even after setting up everything in the "submit a patch" section , I have not been able to send mails.
Instead of using git send-email or mutt, is there any other way that I could possibly send the mails ? If not, could someone help me out with the configurations for email setup?
Any help would be appreciated.

Thank you,
Neetu

#1 lore raw

Hi Neetu,

Can you tell what error you are facing? We might be able to help you better in that case. Also, if you are on a university network, there's a high chance that the network security stops you from sending mails using mutt/ git send-email. Your best bet in that case will be contacting your network admin or using some other network.

Thanks!
Gargi

Quoted 22 lines · Neetu Yadav

Hello everyone,

I am following the instructions of the outreachy first patch tutorial. But even after setting up everything in the "submit a patch" section , I have not been able to send mails.
Instead of using git send-email or mutt, is there any other way that I could possibly send the mails ? If not, could someone help me out with the configurations for email setup?
Any help would be appreciated.

Thank you,
Neetu

--
You received this message because you are subscribed to the Google Groups "outreachy-kernel" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To post to this group, send email to [email protected]. To view this discussion on the web visit
https://groups.google.com/d/msgid/outreachy-kernel/405d02a3-830c-4edf-94f8-26a22db5d71b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

#2 lore raw

Hi Gargi,

Yes, I am using university network, thank you or pointing that out. so, is there any other way that I coultl send my patches ( i.e without using mutt or git send-email)?
Or using another network is the only solution?

Thanks,
Neetu

#3 lore raw
Quoted 6 lines · Neetu Yadav

Hi Gargi,

Yes, I am using university network, thank you or pointing that out. so, is there any other way that I coultl send my patches ( i.e without using mutt or git send-email)?
Or using another network is the only solution?

What is the exact error you are getting?

Are you sure you are not sending html email? Your emails to the list are in html format, and the kernel mailing lists will block that type of email, for obvious reasons.

And what is wrong with using mutt? It works just fine with gmail, along with git send-email, so the same server you are using to send this email should work just fine with those two tools.

thanks,

greg k-h

#4 lore raw

Hello sir,

In case of git-send email,when I send a mail to myself,it shows "Result :
OK", but I don't get a mail in my inbox.
In case of mutt: it shows:
connecting to smtp.gmail.com...
Could not connect to smtp.gmail.com (Network is unreachable).

I don't know what the issue might be.

Thank you,
Neetu

#5 lore raw

this is my ~/.gitconfig :

[user]
name = Neetu
email = [email protected]
[sendemail]
smtpuser = [email protected]
smtpserver = smtp.gmail.com
smtpencryption = tls
smtpserverport = 587
suppresscc = self

and I get this when sending a mail :

neetu@neetu-Lenovo-G50-70:~/git/kernels/staging$ git send-email 
--smtp-debug=1 --to  [email protected] 
0001-Staging-rtl8192e-dot11d.c-fixed-a-coding-style-issue.patch
0001-Staging-rtl8192e-dot11d.c-fixed-a-coding-style-issue.patch
Net::SMTP>>> Net::SMTP(3.05)
Net::SMTP>>>   Net::Cmd(3.05)
Net::SMTP>>>     Exporter(5.72)
Net::SMTP>>>   IO::Socket::IP(0.37)
Net::SMTP>>>     IO::Socket(1.38)
Net::SMTP>>>       IO::Handle(1.35)
Net::SMTP: Net::Cmd::getline(): unexpected EOF on command channel:  at 
/usr/lib/git-core/git-send-email line 1360.
Unable to initialize SMTP properly. Check config and use --smtp-debug. 
VALUES: server=smtp.gmail.com encryption=tls hello=localhost.localdomain 
port=587 at /usr/lib/git-core/git-send-email line 1383.

any help regarding this?

Thanks

Neetu

#6 lore raw
Quoted 30 lines · Neetu Yadav

this is my ~/.gitconfig :

[user]
name = Neetu
email = [email protected]
[sendemail]
smtpuser = [email protected]
smtpserver = smtp.gmail.com
smtpencryption = tls
smtpserverport = 587
suppresscc = self

and I get this when sending a mail :

neetu@neetu-Lenovo-G50-70:~/git/kernels/staging$ git send-email
--smtp-debug=1 --to  [email protected]
0001-Staging-rtl8192e-dot11d.c-fixed-a-coding-style-issue.patch
0001-Staging-rtl8192e-dot11d.c-fixed-a-coding-style-issue.patch
Net::SMTP>>> Net::SMTP(3.05)
Net::SMTP>>>   Net::Cmd(3.05)
Net::SMTP>>>     Exporter(5.72)
Net::SMTP>>>   IO::Socket::IP(0.37)
Net::SMTP>>>     IO::Socket(1.38)
Net::SMTP>>>       IO::Handle(1.35)
Net::SMTP: Net::Cmd::getline(): unexpected EOF on command channel:  at
/usr/lib/git-core/git-send-email line 1360.
Unable to initialize SMTP properly. Check config and use --smtp-debug.
VALUES: server=smtp.gmail.com encryption=tls hello=localhost.localdomain
port=587 at /usr/lib/git-core/git-send-email line 1383.
Quoted 1 line

any help regarding this?

Well, this is a common issue with gmail I guess. Have you done 'Gmail setup' mentioned in a first patch tutorial?

Check out this stackoverflow link[1] as well. You need to allow gmail for less secure
apps and in the case of 2 factor authentication, generate and use App password.

Also, please use your full name in the gitconfig [unrelatable to the issue you are facing].

[1] https://stackoverflow.com/questions/28038662/unable-to-initialize-smtp-properly-using-git

Quoted 14 lines

Thanks

Neetu

--
You received this message because you are subscribed to the Google Groups "outreachy-kernel" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To post to this group, send email to [email protected]. To view this discussion on the web visit
https://groups.google.com/d/msgid/outreachy-kernel/25af2cbf-7251-40c8-ae97-2c7f7360054f%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Signature · 2 lines
Vaishali
http://vaishalithakkar.in/
#7 lore raw

But I have already enabled gmail for less secure apps and also enabled IMAP. I don't have 2 step authentication.
Also , when I use this as gitconfig:

[user]
name = Neetu Yadav
email = [email protected]

i get this :

neetu@neetu-Lenovo-G50-70:~/git/kernels/staging$ git send-email 
--smtp-debug=1 --to  [email protected] 
0001-Staging-rtl8192e-dot11d.c-fixed-a-coding-style-issue.patch
0001-Staging-rtl8192e-dot11d.c-fixed-a-coding-style-issue.patch
(mbox) Adding cc: Neetu <[email protected]> from line 'From: Neetu 
<[email protected]>'
(body) Adding cc: Neetu <[email protected]> from line 'Signed-off-by: 
Neetu <[email protected]>'

From: Neetu Yadav <[email protected]>
To: [email protected]
Cc: Neetu <[email protected]>
Subject: [PATCH 1/2] Staging: rtl8192e: dot11d.c: fixed a coding style issue
Date: Fri, 8 Sep 2017 14:22:45 +0530
Message-Id: <[email protected]>
X-Mailer: git-send-email 2.7.4

The Cc list above has been expanded by additional addresses found in the patch commit message. By default send-email prompts before sending whenever this occurs. This behavior is controlled by the sendemail.confirm configuration setting.

For additional information, run 'git send-email --help'. To retain the current behavior, but squelch this message, run 'git config --global sendemail.confirm auto'.

Send this email? ([y]es|[n]o|[q]uit|[a]ll): y
OK. Log says:
Sendmail: /usr/sbin/sendmail -i [email protected] [email protected]
From: Neetu Yadav <[email protected]>
To: [email protected]
Cc: Neetu <[email protected]>
Subject: [PATCH 1/2] Staging: rtl8192e: dot11d.c: fixed a coding style issue
Date: Fri, 8 Sep 2017 14:22:45 +0530
Message-Id: <[email protected]>
X-Mailer: git-send-email 2.7.4

Result: OK

It seems like it sends the mail, but when I check the inbox, i don't find any mail.
Please help me. :(

Thanks
Neetu

#8 lore raw
In reply to Greg KH

Hello sir,

Quoted 3 lines · you

Your emails to the list
are in html format, and the kernel mailing lists will block that type of email, for obvious reasons.

Does that mean my mail was received by the list? I don't know how they end up in HTML format.
But I followed your video tutorial on sending the first patch, and did this:

gitconfig :

[user]
name = Neetu Yadav
email = [email protected]

and then I did this:

neetu@neetu-Lenovo-G50-70:~/git/kernels/staging$ git send-email 
--smtp-debug=1 --to  [email protected] 
0001-Staging-rtl8192e-dot11d.c-fixed-a-coding-style-issue.patch
0001-Staging-rtl8192e-dot11d.c-fixed-a-coding-style-issue.patch
(mbox) Adding cc: Neetu <[email protected]> from line 'From: Neetu <
[email protected]>'
(body) Adding cc: Neetu <[email protected]> from line 'Signed-off-by: 
Neetu <[email protected]>'

From: Neetu Yadav <[email protected]>
To: [email protected]
Cc: Neetu <[email protected]>
Subject: [PATCH 1/2] Staging: rtl8192e: dot11d.c: fixed a coding style issue
Date: Fri, 8 Sep 2017 14:38:30 +0530
Message-Id: <[email protected]>
X-Mailer: git-send-email 2.7.4

The Cc list above has been expanded by additional addresses found in the patch commit message. By default send-email prompts before sending whenever this occurs. This behavior is controlled by the sendemail.confirm configuration setting.

For additional information, run 'git send-email --help'. To retain the current behavior, but squelch this message, run 'git config --global sendemail.confirm auto'.

Send this email? ([y]es|[n]o|[q]uit|[a]ll): y
OK. Log says:
Sendmail: /usr/sbin/sendmail -i [email protected] [email protected]
From: Neetu Yadav <[email protected]>
To: [email protected]
Cc: Neetu <[email protected]>
Subject: [PATCH 1/2] Staging: rtl8192e: dot11d.c: fixed a coding style issue
Date: Fri, 8 Sep 2017 14:38:30 +0530
Message-Id: <[email protected]>
X-Mailer: git-send-email 2.7.4

Result: OK

It looked like the mail was sent , but when I checked the inbox, it wasn't there.
Also , I have enabled "access for less secure apps" in Gmail. I have enabled IMAP as well.
Is there anything else I need to do?
Please help me.

Thanks,
Neetu

#9 lore raw
Quoted 59 lines · Neetu Yadav

Hello sir,

Quoted 3 lines · you

Your emails to the list
are in html format, and the kernel mailing lists will block that type of email, for obvious reasons.

Does that mean my mail was received by the list? I don't know how they end up in HTML format.
But I followed your video tutorial on sending the first patch, and did this:

gitconfig :

[user]
��� name = Neetu Yadav
��� email = [email protected]

and then I did this:

neetu@neetu-Lenovo-G50-70:~/git/kernels/staging$ git send-email --smtp-debug=1
--to� [email protected] 0001-Staging-rtl8192e-dot11d.
c-fixed-a-coding-style-issue.patch
0001-Staging-rtl8192e-dot11d.c-fixed-a-coding-style-issue.patch
(mbox) Adding cc: Neetu <[email protected]> from line 'From: Neetu <
[email protected]>'
(body) Adding cc: Neetu <[email protected]> from line 'Signed-off-by: Neetu
<[email protected]>'

From: Neetu Yadav <[email protected]>
To: [email protected]
Cc: Neetu <[email protected]>
Subject: [PATCH 1/2] Staging: rtl8192e: dot11d.c: fixed a coding style issue
Date: Fri,� 8 Sep 2017 14:38:30 +0530
Message-Id: <[email protected]>
X-Mailer: git-send-email 2.7.4

��� The Cc list above has been expanded by additional ��� addresses found in the patch commit message. By default ��� send-email prompts before sending whenever this occurs. ��� This behavior is controlled by the sendemail.confirm ��� configuration setting.

��� For additional information, run 'git send-email --help'. ��� To retain the current behavior, but squelch this message, ��� run 'git config --global sendemail.confirm auto'.

Send this email? ([y]es|[n]o|[q]uit|[a]ll): y
OK. Log says:
Sendmail: /usr/sbin/sendmail -i [email protected] [email protected]
From: Neetu Yadav <[email protected]>
To: [email protected]
Cc: Neetu <[email protected]>
Subject: [PATCH 1/2] Staging: rtl8192e: dot11d.c: fixed a coding style issue
Date: Fri,� 8 Sep 2017 14:38:30 +0530
Message-Id: <[email protected]>
X-Mailer: git-send-email 2.7.4

Quoted 8 lines

Result: OK

It looked like the mail was sent , but when I checked the inbox, it wasn't there.
Also , I have enabled "access for less secure apps" in Gmail. I have enabled IMAP as well.
Is there anything else I need to do?
Please help me.

gmail almost never shows you a message that you sent yourself, through its servers, which is why this is probably not showing up. Try sending it to some other email address you "know" is ok to use for testing, or just try it for real if you think it is now working.

Also, you are still sending email in html format, please change that in your email client settings on gmail. All of the linux kernel developer mailing lists will reject such mail automatically.

good luck!

greg kh-

#10 lore raw
In reply to Neetu Yadav

Hey Neetu,

I faced the same problem and as Gargi already said, if you are on university network then your university might be blocking some ports. Take a data connection on your mobile and use mobile hotspot for sending patches.

Thanks,
Bhumika

Quoted 14 lines · Neetu Yadav

Hello everyone,

I am following the instructions of the outreachy first patch tutorial. But even after setting up everything in the "submit a patch" section , I have not been able to send mails.
Instead of using git send-email or mutt, is there any other way that I could possibly send the mails ? If not, could someone help me out with the configurations for email setup?
Any help would be appreciated.

Thank you,
Neetu

#11 lore raw

Hey Bhumika,

Yes, I am using a university network and thank you for pointing that out. It probably saved me hours of struggling to find a solution. I did not realize that this might be the case.
I will get a data connection and try again.

Thanks again,

Neetu