email configuration for the outreachy documentation
[changed subject to something more meaningful]
Quoted 51 lines · Sumitra Sharma
Quoted 50 lines · Julia Lawall
Quoted 45 lines · Sumitra Sharma
Quoted 37 lines · Julia Lawall
Quoted 35 lines
Actually, the only issue I faced was that the outreachyfirstpatch document does not contain the information of how one can set their inbox in mutt. Due to which I had problems to send and reply mails. This below configuration update will enable the inbox at the client side.
How about this...
Under the section "Configure esmtp":
###
Next, set up the mail client, mutt, with some defaults, by creating a .muttrc file in your homedirectory:Note: The
imap_pass,smtp_passwould be the App password or(quoted diff) +0
-0the mailbox password. set sendmail="/usr/bin/esmtp" set envelope_from=yes set from="Your Name <[email protected]>" set use_from=yes set edit_headers=yes # IMAP settings set imap_user = "[email protected]" set imap_pass = "<mailbox password>" # SMTP settings set smtp_url = "smtps://[email protected]" set smtp_pass = "<mailbox password>" # Remote Gmail folders set folder = "imaps://imap.gmail.com/" set spoolfile = "+INBOX" set postponed = "+[Gmail]/Drafts" set record = "+[Gmail]/Sent Mail" set trash = "+[Gmail]/Trash"Quoted 1 line
###
Quoted 2 lines
Does this have anything to do with esmpt?
In the current version of the outreachy firstpatch document the configuration steps for .esmtp and .muttrc are written under the heading "Configure esmtp" and also to configure esmtp we are creating the muttrc file. So, both are linked in a way.
Quoted 6 lines
Quoted 4 lines
I don't think so. Comfiguring esmtp requires adding some information to the .muttrc, but people who don't want to configure esmtp may also want to add information to the .muttrc.
Then, why dont we rename the section as "Configure MTA"
I don't think that the configuration of IMAP is related to the concept of an MTA.
https://serverfault.com/questions/173116/whats-the-different-between-mail-servers-mta-and-pop3-imap
Quoted 62 lines
then it will go as follows:
Quoted 15 lines
Quoted 6 lines
Quoted 4 lines
Does "<mailbox password>" mean that you have to put your password in plain text?
Yes, but it is always prefered to use the app password for better security.
The existing text about sending mesages with mutt says:
identity "[email protected]"
hostname smtp.gmail.com:587
username "[email protected]"
password "ThisIsNotARealPassWord"
starttls requiredQuoted 9 lines
Why not put "ThisIsNotARealPassWord" in your text as well, if that is what you expect people to do?
That is, when you put something in quotes, the reader doedn't know whether they are supposed to put exactly the thing that you have put in the quotes or something else. I guess that for eg "smtps://[email protected]" they should fill in their real username. But for "<mailbox password>" it is not clear what is expected.
###
Configure MTANote: These instructions assume you're using esmtp, but if you already have another mail transfer agent (MTA) installed, you do not need to install esmtp. Instead, change the .muttrc file "sendmail" line to be the path to your MTA. Mutt uses ssmtp by default, so if your MTA is ssmtp, you can leave that line out entirely.
First, create a .esmtprc file with the right permissions:
touch ~/.esmtprc
chmod g-rwx ~/.esmtprc
chmod o-rwx ~/.esmtprcEdit the .esmtprc in your home directory, and add lines like this:
identity "[email protected]" hostname smtp.gmail.com:587 username "[email protected]" password "ThisIsNotARealPassWord" starttls required
(For Yahoo mail, replace hostname line with:
hostname smtp.mail.yahoo.com:587
Next, set up the mail client, mutt, with some defaults, by creating a .muttrc file in your homedirectory:
Note: Theimap_pass,smtp_passwould be the App password or the mailbox password.set sendmail="/usr/bin/esmtp" set envelope_from=yes
set from="Your Name <[email protected]>" set use_from=yes
set edit_headers=yes
Quoted 3 lines
# IMAP settings
setimap_user= "[email protected]" setimap_pass= "<ThisIsNotARealPassWord>"
Why do you have <> around ThisIsNotARealPassWord. It was not done previously.
Quoted 2 lines
# SMTP settings
setsmtp_url= "smtps://[email protected]"
Is username different than my.email?
julia
Quoted 19 lines
set
smtp_pass= "<ThisIsNotARealPassWord>"# Remote Gmail folders
set folder = "imaps://imap.gmail.com/" set spoolfile = "+INBOX"
set postponed = "+[Gmail]/Drafts" set record = "+[Gmail]/Sent Mail" set trash = "+[Gmail]/Trash"###
Regards,
Sumitra
Quoted 1 line
julia
Quoted 61 lines · Julia Lawall
[changed subject to something more meaningful]
Quoted 56 lines · Sumitra Sharma
Quoted 54 lines · Julia Lawall
Quoted 38 lines · Sumitra Sharma
Quoted 37 lines · Julia Lawall
Quoted 36 lines
Actually, the only issue I faced was that the outreachyfirstpatch document does not contain the information of how one can set their inbox in mutt. Due to which I had problems to send and reply mails. This below configuration update will enable the inbox at the client side.
How about this...
Under the section "Configure esmtp":
###
Next, set up the mail client, mutt, with some defaults, by creating a .muttrc file in your homedirectory:Note: The
imap_pass,smtp_passwould be the App password or(quoted diff) +0
-0the mailbox password. set sendmail="/usr/bin/esmtp" set envelope_from=yes set from="Your Name <[email protected]>" set use_from=yes set edit_headers=yes # IMAP settings set imap_user = "[email protected]" set imap_pass = "<mailbox password>" # SMTP settings set smtp_url = "smtps://[email protected]" set smtp_pass = "<mailbox password>" # Remote Gmail folders set folder = "imaps://imap.gmail.com/" set spoolfile = "+INBOX" set postponed = "+[Gmail]/Drafts" set record = "+[Gmail]/Sent Mail" set trash = "+[Gmail]/Trash"###
Quoted 7 lines
Quoted 2 lines
Does this have anything to do with esmpt?
In the current version of the outreachy firstpatch document the configuration steps for .esmtp and .muttrc are written under the heading "Configure esmtp" and also to configure esmtp we are creating the muttrc file. So, both are linked in a way.
I don't think so. Comfiguring esmtp requires adding some information to the .muttrc, but people who don't want to configure esmtp may also want to add information to the .muttrc.
Quoted 7 lines
Quoted 1 line
Then, why dont we rename the section as "Configure MTA"
I don't think that the configuration of IMAP is related to the concept of an MTA.
https://serverfault.com/questions/173116/whats-the-different-between-mail-servers-mta-and-pop3-imap
Hi julia,
A question What are the alternatives to esmtp?
I am unable to find a solution for this:
"Comfiguring esmtp requires adding some information to
the .muttrc, but people who don't want to configure esmtp may also want to add information to the .muttrc."
So either postfix will we used which will relay through the local machine...I am unable to answer this. What are your views?
PS: I searched a lot but didnt find satisfactory answers.
Quoted 62 lines
Quoted 62 lines
then it will go as follows:
Quoted 15 lines
Quoted 6 lines
Quoted 4 lines
Does "<mailbox password>" mean that you have to put your password in plain text?
Yes, but it is always prefered to use the app password for better security.
The existing text about sending mesages with mutt says:
identity "[email protected]"
hostname smtp.gmail.com:587
username "[email protected]"
password "ThisIsNotARealPassWord"
starttls requiredQuoted 9 lines
Why not put "ThisIsNotARealPassWord" in your text as well, if that is what you expect people to do?
That is, when you put something in quotes, the reader doedn't know whether they are supposed to put exactly the thing that you have put in the quotes or something else. I guess that for eg "smtps://[email protected]" they should fill in their real username. But for "<mailbox password>" it is not clear what is expected.
###
Configure MTANote: These instructions assume you're using esmtp, but if you already have another mail transfer agent (MTA) installed, you do not need to install esmtp. Instead, change the .muttrc file "sendmail" line to be the path to your MTA. Mutt uses ssmtp by default, so if your MTA is ssmtp, you can leave that line out entirely.
First, create a .esmtprc file with the right permissions:
touch ~/.esmtprc
chmod g-rwx ~/.esmtprc
chmod o-rwx ~/.esmtprcEdit the .esmtprc in your home directory, and add lines like this:
identity "[email protected]" hostname smtp.gmail.com:587 username "[email protected]" password "ThisIsNotARealPassWord" starttls required
(For Yahoo mail, replace hostname line with:
hostname smtp.mail.yahoo.com:587
Next, set up the mail client, mutt, with some defaults, by creating a .muttrc file in your homedirectory:
Note: Theimap_pass,smtp_passwould be the App password or the mailbox password.set sendmail="/usr/bin/esmtp" set envelope_from=yes
set from="Your Name <[email protected]>" set use_from=yes
set edit_headers=yes
Quoted 6 lines
Quoted 3 lines
# IMAP settings
setimap_user= "[email protected]" setimap_pass= "<ThisIsNotARealPassWord>"Why do you have <> around ThisIsNotARealPassWord. It was not done previously.
Okay. Will change it.
Quoted 5 lines
Quoted 3 lines
# SMTP settings
setsmtp_url= "smtps://[email protected]"Is username different than my.email?
No. I will change it to "[email protected]"
Regards,
Sumitra
Quoted 11 lines · Sumitra Sharma
A question What are the alternatives to esmtp?
I am unable to find a solution for this:
"Comfiguring esmtp requires adding some information to
the .muttrc, but people who don't want to configure esmtp may also want to add information to the .muttrc."So either postfix will we used which will relay through the local machine...I am unable to answer this. What are your views?
As stated in earlier reply [1], yes - we need to move away from unmaintained cruft like esmtp. See my replies ([2] & [3]) for the configuration I shared to you.
Thanks.
[1]: https://lore.kernel.org/outreachy/[email protected]/
[2]: https://lore.kernel.org/outreachy/[email protected]/
[3]: https://lore.kernel.org/outreachy/ZBQsDwvI67iq%[email protected]/
Signature · 1 line
An old man doll... just what I always wanted! - Clara