X-GM-THRID: 6332661608531099648 Date: Thu, 22 Sep 2016 14:32:50 -0700 (PDT) From: gnudevliz@gmail.com To: outreachy-kernel Cc: gnudevliz@gmail.com Message-Id: <430fddd4-6caa-41ce-8632-02cafb80e6da@googlegroups.com> In-Reply-To: References: <0eb31ed4-5370-4980-be9d-559b20044bf5@googlegroups.com> <649173d5-38d8-43e3-af3b-a81aab81311d@googlegroups.com> Subject: Re: [Outreachy kernel] Re: Mutt/Gmail Issue MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_1703_705566557.1474579970151" X-Google-Token: EIKckb8F6fnqKTh6SmI0 X-Google-IP: 2601:644:300:3c2c:4e0f:6eff:fe69:e9ea ------=_Part_1703_705566557.1474579970151 Content-Type: multipart/alternative; boundary="----=_Part_1704_1037854059.1474579970151" ------=_Part_1704_1037854059.1474579970151 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hey Julia, I ended up doing a lot of things in order for it to work and I don't know which ones are totally necessary. My issue is specific to Debian/Gmail/Mutt so this won't apply to everyone. But I have a feeling that the HELO/ELHO error occurred because I did not have a domain configured. I had: $ hostname localhost $ domainname (none) so I ended up changing my /etc/hosts and /etc/hostname file. My /etc/hostname just says hostname1 My /etc/hosts has 2 lines that say: 127.0.0.1 localhost 127.0.1.1 hostname1.localdomain hostname1 Then run $ sudo /etc/init.d/hostname.sh start $ sudo reboot verify changes with $ hostname hostname1 $ hostname -d localdomain I think that suffices for a "FQDN" Fully Qualified Domain Name. $ sudo apt-get update $ sudo apt-get install exim4 After that I followed this tutorial exactly: https://wiki.debian.org/GmailAndExim4 It explains exactly what to put for each menu entry when you run $ sudo dpkg-reconfigure exim4-config After that, mutt will send emails! Since this is such a specific case, maybe it can go on some FAQ or Troubleshooting page?? Sincerely, Liz On Thursday, September 22, 2016 at 1:33:11 PM UTC-7, Julia Lawall wrote: > > > > On Thu, 22 Sep 2016, gnud...@gmail.com wrote: > > > Hey Vaishali, > > Thanks for your reply. I finally figured it out. Hallelujah. > > The Debian installation manual specifically says to use exim4 in order > to > > set up debian to use e-mail: > > https://www.debian.org/releases/jessie/i386/ch08s05.html.en > > > > I had to closely follow this tutorial in order to finally get it to > work: > > https://wiki.debian.org/GmailAndExim4 > > > > I also had to fix my /etc/hosts and /etc/hostname file. > > > > I thought I'd post these in case you're using Debian. > > Do you want me to add anything to the tutorial? > > julia > > > > > > On Wednesday, September 21, 2016 at 9:47:33 PM UTC-7, Vaishali Thakkar > > wrote: > > On Thu, Sep 22, 2016 at 1:18 AM, wrote: > > > Hi everyone, > > > > > > Thanks for your replies. I've tried many .muttrc config > > changes and Gmail > > > setup but I keep getting the same error. > > > I think I'm supposed to set up a FQDN (Fully Qualified Domain > > Name). Mutt > > > keeps telling me there is no HELO/ELHO argument > > > > I am not sure about this error but usually Mutt fails for me if > > I use > > it under firewall, > > proxy settings or vpn. So, I don't use it anymore. Git > > send-email > > works good for me. > > If you can't figure out the solution of this error and want to > > go for > > the git send-email > > then you can check this blog: > > > > > https://burzalodowa.wordpress.com/2013/10/05/how-to-send-patches-with-git-s > > end-email/ > > > > It just requires to set up .gitconfig. I can share my settings > > but I > > think that blog explains > > almost everything in detail. > > > > > On Tuesday, September 20, 2016 at 11:01:18 PM UTC-7, > > gnud...@gmail.com > > > wrote: > > >> > > >> Hello everyone, > > >> > > >> I'm on Debian Jessie and I cannot get mutt to send email. I > > can receive > > >> emails and view my inbox in Mutt but I can't send messages. I > > can send them > > >> to myself though. I can't send them to another email address. > > >> > > >> When I use mutt to send an email I keep getting this > > HELO/ELHO error: > > >> > > >> SMTP session failed: 501 5.5.4 > > https://support.google.com/mail/?p=helo > > >> yg10sm21072351pab.8 - gsmtp > > >> > > >> That brings me to this page: > > >> > > >> > https://support.google.com/mail/answer/6386757?visit_id=1-63610024331271608 > > 0-1894628512&p=helo&rd=1 > > >> > > >> I can't figure out how to resolve this issue. My 2 factor is > > off and I'm > > >> allowing login from unsecure apps. I'm also trying to use > > ssmtp instead of > > >> esmtp but the same thing happens in mutt. > > >> > > >> When i do > > >> $ sudo ssmtp some...@gmail.com > > >> > > >> the email does actually go through though, but it says from > > root. > > >> > > >> If anyone has suggestions I would really appreciate it! > > >> Thanks, > > >> Liz > > > > > > -- > > > 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 outreachy-kern...@googlegroups.com. > > > To post to this group, send email to > > outreach...@googlegroups.com. > > > To view this discussion on the web visit > > > > https://groups.google.com/d/msgid/outreachy-kernel/649173d5-38d8-43e3-af3b- > > a81aab81311d%40googlegroups.com. > > > > > > For more options, visit https://groups.google.com/d/optout. > > > > > > > > -- > > Vaishali > > http://vaishalithakkar.in/ > > > > -- > > 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 outreachy-kern...@googlegroups.com . > > To post to this group, send email to outreach...@googlegroups.com > . > > To view this discussion on the web visithttps:// > groups.google.com/d/msgid/outreachy-kernel/c33bb083-d19f-473c-9f16- > > 92bbd62d4e80%40googlegroups.com. > > For more options, visit https://groups.google.com/d/optout. > > > > ------=_Part_1704_1037854059.1474579970151 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable
Hey Julia,=C2=A0

I ended up doing a lot= of things in order for it to work and I don't know which ones are tota= lly necessary. My issue is specific to Debian/Gmail/Mutt so this won't = apply to everyone. But I have a feeling that the HELO/ELHO error occurred b= ecause I did not have a domain configured. I had:

= $ hostname=C2=A0
localhost=C2=A0
$ domainname=C2=A0
(none)

so I ended up changing my /etc/hosts= and /etc/hostname file.=C2=A0

My /etc/hostname ju= st says hostname1

My /etc/hosts has 2 lines that s= ay:

127.0.0.1 localhost
127.0.1.1 hostna= me1.localdomain hostname1

Then run=C2=A0

$ sudo /etc/init.d/hostname.sh start=C2=A0
$ sudo= reboot

verify changes with=C2=A0
$ host= name
hostname1
$ hostname -d=C2=A0
localdomai= n

I think that suffices for a "FQDN" Ful= ly Qualified Domain Name.=C2=A0

$ sudo apt-get upd= ate
$ sudo apt-get install exim4

After t= hat I followed this tutorial exactly:=C2=A0https://wiki.debian.org/GmailAnd= Exim4

It explains exactly what to put for each menu entry= when you run=C2=A0
$ sudo dpkg-reconfigure exim4-config

After that, mutt will send emails!=C2=A0<= /font>

Since this is such a sp= ecific case, maybe it can go on some FAQ or Troubleshooting page??
=C2=A0
Sincerely,
Liz<= /div>

On Thursday, September 22, 2016 at 1:33:11 PM UTC-7, Julia La= wall wrote:


On Thu, 22 Sep 2016, gnud...@gmail.com wrote:

> Hey Vaishali,=C2=A0
> Thanks for your reply. I finally figured it out. Hallelujah.
> The Debian installation manual specifically says to use exim4 in o= rder to
> set up debian to use e-mail:
> https://www.debian.org/releases= /jessie/i386/ch08s05.html.en
>
> I had to closely follow this tutorial in order to finally get it t= o work:
> https://wiki.debian.org/GmailAndE= xim4
>
> I also had to fix my /etc/hosts and /etc/hostname file.=C2=A0
>
> I thought I'd post these in case you're using Debian.=C2= =A0

Do you want me to add anything to the tutorial?

julia


>
> On Wednesday, September 21, 2016 at 9:47:33 PM UTC-7, Vaishali Tha= kkar
> wrote:
> =C2=A0 =C2=A0 =C2=A0 On Thu, Sep 22, 2016 at 1:18 AM, =C2=A0<gnud...@gmail.com> wrote:
> =C2=A0 =C2=A0 =C2=A0 > Hi everyone,
> =C2=A0 =C2=A0 =C2=A0 >
> =C2=A0 =C2=A0 =C2=A0 > Thanks for your replies. I've tried = many .muttrc config
> =C2=A0 =C2=A0 =C2=A0 changes and Gmail
> =C2=A0 =C2=A0 =C2=A0 > setup but I keep getting the same error.
> =C2=A0 =C2=A0 =C2=A0 > I think I'm supposed to set up a FQD= N (Fully Qualified Domain
> =C2=A0 =C2=A0 =C2=A0 Name). Mutt
> =C2=A0 =C2=A0 =C2=A0 > keeps telling me there is no HELO/ELHO a= rgument
>
> =C2=A0 =C2=A0 =C2=A0 I am not sure about this error but usually Mu= tt fails for me if
> =C2=A0 =C2=A0 =C2=A0 I use
> =C2=A0 =C2=A0 =C2=A0 it under firewall,
> =C2=A0 =C2=A0 =C2=A0 proxy settings or vpn. So, I don't use it= anymore. Git
> =C2=A0 =C2=A0 =C2=A0 send-email
> =C2=A0 =C2=A0 =C2=A0 works good for me.
> =C2=A0 =C2=A0 =C2=A0 If you can't figure out the solution of t= his error and want to
> =C2=A0 =C2=A0 =C2=A0 go for
> =C2=A0 =C2=A0 =C2=A0 the git send-email
> =C2=A0 =C2=A0 =C2=A0 then you can check this blog:
>
> https://burzalodowa.wordpress.com/2013/10/05/how-to-send-<= wbr>patches-with-git-s
> =C2=A0 =C2=A0 =C2=A0 end-email/
>
> =C2=A0 =C2=A0 =C2=A0 It just requires to set up .gitconfig. I can = share my settings
> =C2=A0 =C2=A0 =C2=A0 but I
> =C2=A0 =C2=A0 =C2=A0 think that blog explains
> =C2=A0 =C2=A0 =C2=A0 almost everything in detail.
>
> =C2=A0 =C2=A0 =C2=A0 > On Tuesday, September 20, 2016 at 11:01:= 18 PM UTC-7,
> =C2=A0 =C2=A0 =C2=A0 gnud...@gmail.com
> =C2=A0 =C2=A0 =C2=A0 > wrote:
> =C2=A0 =C2=A0 =C2=A0 >>
> =C2=A0 =C2=A0 =C2=A0 >> Hello everyone,
> =C2=A0 =C2=A0 =C2=A0 >>
> =C2=A0 =C2=A0 =C2=A0 >> I'm on Debian Jessie and I canno= t get mutt to send email. I
> =C2=A0 =C2=A0 =C2=A0 can receive
> =C2=A0 =C2=A0 =C2=A0 >> emails and view my inbox in Mutt but= I can't send messages. I
> =C2=A0 =C2=A0 =C2=A0 can send them
> =C2=A0 =C2=A0 =C2=A0 >> to myself though. I can't send t= hem to another email address.
> =C2=A0 =C2=A0 =C2=A0 >>
> =C2=A0 =C2=A0 =C2=A0 >> When I use mutt to send an email I k= eep getting this
> =C2=A0 =C2=A0 =C2=A0 HELO/ELHO error:
> =C2=A0 =C2=A0 =C2=A0 >>
> =C2=A0 =C2=A0 =C2=A0 >> SMTP session failed: 501 5.5.4
> =C2=A0 =C2=A0 =C2=A0 =C2=A0https://= support.google.com/mail/?p=3Dhelo
> =C2=A0 =C2=A0 =C2=A0 >> yg10sm21072351pab.8 - gsmtp
> =C2=A0 =C2=A0 =C2=A0 >>
> =C2=A0 =C2=A0 =C2=A0 >> That brings me to this page:
> =C2=A0 =C2=A0 =C2=A0 >>
> =C2=A0 =C2=A0 =C2=A0 >>https://support.google.com/mail/answer/6386= 757?visit_id=3D1-63610024331271608
> =C2=A0 =C2=A0 =C2=A0 0-1894628512&p=3Dhelo&rd=3D1
> =C2=A0 =C2=A0 =C2=A0 >>
> =C2=A0 =C2=A0 =C2=A0 >> I can't figure out how to resolv= e this issue. My 2 factor is
> =C2=A0 =C2=A0 =C2=A0 off and I'm
> =C2=A0 =C2=A0 =C2=A0 >> allowing login from unsecure apps. I= 'm also trying to use
> =C2=A0 =C2=A0 =C2=A0 ssmtp instead of
> =C2=A0 =C2=A0 =C2=A0 >> esmtp but the same thing happens in = mutt.
> =C2=A0 =C2=A0 =C2=A0 >>
> =C2=A0 =C2=A0 =C2=A0 >> When i do
> =C2=A0 =C2=A0 =C2=A0 >> $ sudo ssmtp some...@gmail.com

> =C2=A0 =C2=A0 =C2=A0 >>
> =C2=A0 =C2=A0 =C2=A0 >> the email does actually go through t= hough, but it says from
> =C2=A0 =C2=A0 =C2=A0 root.
> =C2=A0 =C2=A0 =C2=A0 >>
> =C2=A0 =C2=A0 =C2=A0 >> If anyone has suggestions I would re= ally appreciate it!
> =C2=A0 =C2=A0 =C2=A0 >> Thanks,
> =C2=A0 =C2=A0 =C2=A0 >> Liz
> =C2=A0 =C2=A0 =C2=A0 >
> =C2=A0 =C2=A0 =C2=A0 > --
> =C2=A0 =C2=A0 =C2=A0 > You received this message because you ar= e subscribed to the
> =C2=A0 =C2=A0 =C2=A0 Google Groups
> =C2=A0 =C2=A0 =C2=A0 > "outreachy-kernel" group.
> =C2=A0 =C2=A0 =C2=A0 > To unsubscribe from this group and stop = receiving emails from
> =C2=A0 =C2=A0 =C2=A0 it, send an
> =C2=A0 =C2=A0 =C2=A0 > email to
outreachy-kern...@googl= egroups.com.
> =C2=A0 =C2=A0 =C2=A0 > To post to this group, send email to
> =C2=A0 =C2=A0 =C2=A0 outreach...@googlegroups.com.
> =C2=A0 =C2=A0 =C2=A0 > To view this discussion on the web visit
> =C2=A0 =C2=A0 =C2=A0 >https://groups.google.com/d/msgid/outr= eachy-kernel/649173d5-38d8-43e3-af3b-
> =C2=A0 =C2=A0 =C2=A0 a81aab81311d%40googlegroups.com.
> =C2=A0 =C2=A0 =C2=A0 >
> =C2=A0 =C2=A0 =C2=A0 > For more options, visit https://groups.google.com/d/optout.
>
>
>
> =C2=A0 =C2=A0 =C2=A0 --
> =C2=A0 =C2=A0 =C2=A0 Vaishali
> =C2=A0 =C2=A0 =C2=A0 http://vaishalithakkar.in/
>
> --
> 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 outreachy-kern...@googlegroups.com.
> To post to this group, send email to outreach...@googlegroups.com<= /a>.
> To view this discussion on the web visithttps://
groups.google.com/= d/msgid/outreachy-kernel/c33bb083-d19f-473c-9f16-
> 92bbd62d4e80%40googlegroups.com.
> For more options, visit https://groups.go= ogle.com/d/optout.
>
>
------=_Part_1704_1037854059.1474579970151-- ------=_Part_1703_705566557.1474579970151--