I am unable to setup and send mail via mutt Here I am sharing my all muttrc and everything

rujra <[email protected]> Sun, 30 Mar 2025 18:28:01 +0530
Newsgroups dev.linux.lists.outreachy
Message-ID <CAG+54Da-77BH_+fEUscGoPXdDPgV00zuGC6OaLDE20V2t3eZYA@mail.gmail.com>
============ ~/.muttrc ================
set sendmail="/usr/bin/esmtp"
  2 set envelope_from=yes
  3 set from="Rujra Bhatt <[email protected]>"
  4 set use_from=yes
  5 set edit_headers=yes
  6
  7 set imap_user = '[email protected]'
  8 set imap_pass = 'mfpdcwklatrzlhbu'   #application password 16-digit.
  9
 10
 11 set folder="imaps://imap.gmail.com"
 12 set spoolfile="imaps://imap.gmail.com/INBOX"
 13 set record="imaps://imap.gmail.com/[Gmail]/Sent Mail"
 14 set postponed="imaps://imap.gmail.com/[Gmail]/Drafts"
 15
 16 set header_cache = "~/.mutt/cache/headers"
 17 set message_cachedir = "~/.mutt/cache/bodies"
 18 set certificate_file = "~/.mutt/certificates"
 19
 20 set from = '[email protected]'
 21 set realname = 'rujra bhatt'
 22
 23 #set smtp_url = 'smtp://[email protected]:587/'
 24 #set smtp_pass='aplication'
 25
 26 set move = no
 27 set imap_keepalive = 900
 28
 29 # Gmail-style keyboard shortcuts
 30 macro index,pager ga "<change-folder>=[Gmail]/All<tab><enter>" "Go
to all mail"
 31 macro index,pager gi "<change-folder>=INBOX<enter>" "Go to inbox"
 32 macro index,pager gs "<change-folder>=[Gmail]/Starred<enter>" "Go
to starred messages"
 33 macro index,pager gd "<change-folder>=[Gmail]/Drafts<enter>" "Go to drafts"
 34 macro index,pager e "<enter-command>unset trash\n
<delete-message>" "Gmail archive message    " # different from Gmail,
but wanted to keep "y" to show folders.


=========================================================
Also I am attaching debug report here


Reply-To:
.muttdebug0 (text/plain, 13.3 KB)
[2025-03-30 17:27:49] Mutt/2.2.12 (2023-09-09) debugging at level 2
[2025-03-30 17:27:49] In mutt_reflow_windows
[2025-03-30 17:27:49] In mutt_reflow_windows
[2025-03-30 17:27:49] In mutt_reflow_windows
[2025-03-30 17:27:49] In mutt_reflow_windows
[2025-03-30 17:27:49] Reading configuration file '/etc/Muttrc'.
[2025-03-30 17:27:49] Reading configuration file '/usr/lib/mutt/source-muttrc.d|'.
[2025-03-30 17:27:49] Reading configuration file '/etc/Muttrc.d/charset.rc'.
[2025-03-30 17:27:49] Reading configuration file '/etc/Muttrc.d/colors.rc'.
[2025-03-30 17:27:49] Reading configuration file '/etc/Muttrc.d/compressed-folders.rc'.
[2025-03-30 17:27:49] Reading configuration file '/etc/Muttrc.d/gpg.rc'.
[2025-03-30 17:27:49] Reading configuration file '/etc/Muttrc.d/smime.rc'.
[2025-03-30 17:27:49] Reading configuration file '/home/brak3r/.muttrc'.
[2025-03-30 17:27:49] Setting $hostname
[2025-03-30 17:27:49] $hostname set to "brak3rDesk"
[2025-03-30 17:27:49] Reading imaps://imap.gmail.com/INBOX...
[2025-03-30 17:27:49] Looking up imap.gmail.com...
[2025-03-30 17:27:49] Connecting to imap.gmail.com...
[2025-03-30 17:27:49] SSL/TLS connection using TLS1.3 (ECDHE-RSA/AES-256-GCM/AEAD)
[2025-03-30 17:27:50] Connected to imap.gmail.com:993 on fd=4
[2025-03-30 17:27:50] 4< * OK Gimap ready for requests from 115.96.217.201 bl13mb74413344ivb
[2025-03-30 17:27:50] 4> a0000 CAPABILITY
[2025-03-30 17:27:50] 4< * CAPABILITY IMAP4rev1 UNSELECT IDLE NAMESPACE QUOTA ID XLIST CHILDREN X-GM-EXT-1 XYZZY SASL-IR AUTH=XOAUTH2 AUTH=PLAIN AUTH=PLAIN-CLIENTTOKEN AUTH=OAUTHBEARER
[2025-03-30 17:27:50] 4< a0000 OK Thats all she wrote! bl13mb74413344ivb
[2025-03-30 17:27:50] imap_authenticate: Using any available method.
[2025-03-30 17:27:50] imap_auth_gsasl: using mech PLAIN
[2025-03-30 17:27:50] Authenticating (PLAIN)...
[2025-03-30 17:27:50] 4> a0001 AUTHENTICATE PLAIN YnJha2VyLm5vb2Iua2VybmVsQGdtYWlsLmNvbQBicmFrZXIubm9vYi5rZXJuZWxAZ21haWwuY29tAG1mcGRjd2tsYXRyemxoYnU=
[2025-03-30 17:27:51] 4< * CAPABILITY IMAP4rev1 UNSELECT IDLE NAMESPACE QUOTA ID XLIST CHILDREN X-GM-EXT-1 UIDPLUS COMPRESS=DEFLATE ENABLE MOVE CONDSTORE ESEARCH UTF8=ACCEPT LIST-EXTENDED LIST-STATUS LITERAL- SPECIAL-USE APPENDLIMIT=35651584
[2025-03-30 17:27:51] 4< a0001 OK [email protected] authenticated (Success)
[2025-03-30 17:27:51] Communication encrypted at 256 bits
[2025-03-30 17:27:51] 4> a0002 CAPABILITY
[2025-03-30 17:27:51] 4< * CAPABILITY IMAP4rev1 UNSELECT IDLE NAMESPACE QUOTA ID XLIST CHILDREN X-GM-EXT-1 UIDPLUS COMPRESS=DEFLATE ENABLE MOVE CONDSTORE ESEARCH UTF8=ACCEPT LIST-EXTENDED LIST-STATUS LITERAL- SPECIAL-USE APPENDLIMIT=35651584
[2025-03-30 17:27:51] 4< a0002 OK Success
[2025-03-30 17:27:51] 4> a0003 ENABLE UTF8=ACCEPT
a0004 LIST "" ""
[2025-03-30 17:27:52] 4< * ENABLED UTF8=ACCEPT
[2025-03-30 17:27:52] Handling ENABLED
[2025-03-30 17:27:52] 4< a0003 OK Success
[2025-03-30 17:27:52] 4< * LIST (\Noselect) "/" "/"
[2025-03-30 17:27:52] 4< a0004 OK Success
[2025-03-30 17:27:52] Selecting INBOX...
[2025-03-30 17:27:52] 4> a0005 STATUS "[Gmail]/Drafts" (MESSAGES)
a0006 SELECT "INBOX"
[2025-03-30 17:27:52] 4< * STATUS "[Gmail]/Drafts" (MESSAGES 1)
[2025-03-30 17:27:52] 4< a0005 OK Success
[2025-03-30 17:27:52] 4< * FLAGS (\Answered \Flagged \Draft \Deleted \Seen $NotPhishing $Phishing Old)
[2025-03-30 17:27:52] 4< * OK [PERMANENTFLAGS (\Answered \Flagged \Draft \Deleted \Seen $NotPhishing $Phishing Old \*)] Flags permitted.
[2025-03-30 17:27:52] 4< * OK [UIDVALIDITY 1] UIDs valid.
[2025-03-30 17:27:52] 4< * 10 EXISTS
[2025-03-30 17:27:52] Handling EXISTS
[2025-03-30 17:27:52] cmd_handle_untagged: New mail in INBOX - 10 messages total.
[2025-03-30 17:27:52] 4< * 0 RECENT
[2025-03-30 17:27:52] 4< * OK [UIDNEXT 11] Predicted next UID.
[2025-03-30 17:27:52] 4< * OK [HIGHESTMODSEQ 2952]
[2025-03-30 17:27:52] 4< a0006 OK [READ-WRITE] INBOX selected. (Success)
[2025-03-30 17:27:52] Evaluating cache... 0/10 (0%)
[2025-03-30 17:27:52] 4> a0007 UID FETCH 1:10 (UID FLAGS)
[2025-03-30 17:27:52] 4< * 1 FETCH (UID 1 FLAGS (\Seen))
[2025-03-30 17:27:52] 4< * 2 FETCH (UID 2 FLAGS (\Seen))
[2025-03-30 17:27:52] 4< * 3 FETCH (UID 3 FLAGS (\Seen))
[2025-03-30 17:27:52] 4< * 4 FETCH (UID 4 FLAGS (\Seen))
[2025-03-30 17:27:52] 4< * 5 FETCH (UID 5 FLAGS (\Seen))
[2025-03-30 17:27:52] 4< * 6 FETCH (UID 6 FLAGS (\Seen))
[2025-03-30 17:27:52] 4< * 7 FETCH (UID 7 FLAGS (\Seen))
[2025-03-30 17:27:52] 4< * 8 FETCH (UID 8 FLAGS (\Seen))
[2025-03-30 17:27:52] 4< * 9 FETCH (UID 9 FLAGS (Old))
[2025-03-30 17:27:52] Evaluating cache... 10/10 (100%)
[2025-03-30 17:27:52] 4< * 10 FETCH (UID 10 FLAGS (\Seen))
[2025-03-30 17:27:52] 4< a0007 OK Success
[2025-03-30 17:27:52] Fetching message headers... 0/10 (0%)
[2025-03-30 17:27:52] imap_open_mailbox: msgcount is 10
[2025-03-30 17:27:52] Sorting mailbox...
[2025-03-30 17:27:52] In mutt_reflow_windows
[2025-03-30 17:27:56] 4> a0008 STATUS "[Gmail]/Drafts" (MESSAGES)
[2025-03-30 17:27:57] 4< * STATUS "[Gmail]/Drafts" (MESSAGES 1)
[2025-03-30 17:27:57] 4< a0008 OK Success
[2025-03-30 17:27:58] Reading imaps://imap.gmail.com/[Gmail]/Drafts...
[2025-03-30 17:27:58] Looking up imap.gmail.com...
[2025-03-30 17:27:58] Connecting to imap.gmail.com...
[2025-03-30 17:27:58] SSL/TLS connection using TLS1.3 (ECDHE-RSA/AES-256-GCM/AEAD)
[2025-03-30 17:27:59] Connected to imap.gmail.com:993 on fd=5
[2025-03-30 17:27:59] 5< * OK Gimap ready for requests from 115.96.217.201 c20mb98242650jab
[2025-03-30 17:27:59] 5> a0000 CAPABILITY
[2025-03-30 17:27:59] 5< * CAPABILITY IMAP4rev1 UNSELECT IDLE NAMESPACE QUOTA ID XLIST CHILDREN X-GM-EXT-1 XYZZY SASL-IR AUTH=XOAUTH2 AUTH=PLAIN AUTH=PLAIN-CLIENTTOKEN AUTH=OAUTHBEARER
[2025-03-30 17:27:59] 5< a0000 OK Thats all she wrote! c20mb98242650jab
[2025-03-30 17:27:59] imap_authenticate: Using any available method.
[2025-03-30 17:27:59] imap_auth_gsasl: using mech PLAIN
[2025-03-30 17:27:59] Authenticating (PLAIN)...
[2025-03-30 17:27:59] 5> a0001 AUTHENTICATE PLAIN YnJha2VyLm5vb2Iua2VybmVsQGdtYWlsLmNvbQBicmFrZXIubm9vYi5rZXJuZWxAZ21haWwuY29tAG1mcGRjd2tsYXRyemxoYnU=
[2025-03-30 17:28:00] 5< * CAPABILITY IMAP4rev1 UNSELECT IDLE NAMESPACE QUOTA ID XLIST CHILDREN X-GM-EXT-1 UIDPLUS COMPRESS=DEFLATE ENABLE MOVE CONDSTORE ESEARCH UTF8=ACCEPT LIST-EXTENDED LIST-STATUS LITERAL- SPECIAL-USE APPENDLIMIT=35651584
[2025-03-30 17:28:00] 5< a0001 OK [email protected] authenticated (Success)
[2025-03-30 17:28:00] Communication encrypted at 256 bits
[2025-03-30 17:28:00] 5> a0002 CAPABILITY
[2025-03-30 17:28:00] 5< * CAPABILITY IMAP4rev1 UNSELECT IDLE NAMESPACE QUOTA ID XLIST CHILDREN X-GM-EXT-1 UIDPLUS COMPRESS=DEFLATE ENABLE MOVE CONDSTORE ESEARCH UTF8=ACCEPT LIST-EXTENDED LIST-STATUS LITERAL- SPECIAL-USE APPENDLIMIT=35651584
[2025-03-30 17:28:00] 5< a0002 OK Success
[2025-03-30 17:28:00] 5> a0003 ENABLE UTF8=ACCEPT
a0004 LIST "" ""
[2025-03-30 17:28:01] 5< * ENABLED UTF8=ACCEPT
[2025-03-30 17:28:01] Handling ENABLED
[2025-03-30 17:28:01] 5< a0003 OK Success
[2025-03-30 17:28:01] 5< * LIST (\Noselect) "/" "/"
[2025-03-30 17:28:01] 5< a0004 OK Success
[2025-03-30 17:28:01] Selecting [Gmail]/Drafts...
[2025-03-30 17:28:01] 5> a0005 SELECT "[Gmail]/Drafts"
[2025-03-30 17:28:01] 5< * FLAGS (\Answered \Flagged \Draft \Deleted \Seen $NotPhishing $Phishing Old)
[2025-03-30 17:28:01] 5< * OK [PERMANENTFLAGS (\Answered \Flagged \Draft \Deleted \Seen $NotPhishing $Phishing Old \*)] Flags permitted.
[2025-03-30 17:28:01] 5< * OK [UIDVALIDITY 6] UIDs valid.
[2025-03-30 17:28:01] 5< * 1 EXISTS
[2025-03-30 17:28:01] Handling EXISTS
[2025-03-30 17:28:01] cmd_handle_untagged: New mail in [Gmail]/Drafts - 1 messages total.
[2025-03-30 17:28:01] 5< * 0 RECENT
[2025-03-30 17:28:01] 5< * OK [UIDNEXT 5] Predicted next UID.
[2025-03-30 17:28:01] 5< * OK [HIGHESTMODSEQ 2952]
[2025-03-30 17:28:01] 5< a0005 OK [READ-WRITE] [Gmail]/Drafts selected. (Success)
[2025-03-30 17:28:01] Evaluating cache... 0/1 (0%)
[2025-03-30 17:28:01] 5> a0006 UID FETCH 1:3 (UID FLAGS)
[2025-03-30 17:28:02] 5< a0006 OK Success
[2025-03-30 17:28:02] Fetching message headers... 0/1 (0%)
[2025-03-30 17:28:02] 5> a0007 FETCH 1 (UID FLAGS INTERNALDATE RFC822.SIZE BODY.PEEK[HEADER.FIELDS (DATE FROM SENDER SUBJECT TO CC MESSAGE-ID REFERENCES CONTENT-TYPE CONTENT-DESCRIPTION IN-REPLY-TO REPLY-TO LINES LIST-POST X-LABEL)])
[2025-03-30 17:28:02] 5< * 1 FETCH (UID 4 RFC822.SIZE 415 INTERNALDATE "30-Mar-2025 11:38:03 +0000" FLAGS (\Draft) BODY[HEADER.FIELDS (DATE FROM SENDER SUBJECT TO CC MESSAGE-ID REFERENCES CONTENT-TYPE CONTENT-DESCRIPTION IN-REPLY-TO REPLY-TO LINES LIST-POST X-LABEL)] {335}
[2025-03-30 17:28:02] imap_read_literal: reading 335 bytes
[2025-03-30 17:28:02] 5< )
[2025-03-30 17:28:02] parse_parameters: `charset=us-ascii'
[2025-03-30 17:28:02] parse_parameter: `charset' = `us-ascii'
[2025-03-30 17:28:02] 5< a0007 OK Success
[2025-03-30 17:28:02] imap_open_mailbox: msgcount is 1
[2025-03-30 17:28:02] Fetching message...
[2025-03-30 17:28:02] 5> a0008 UID FETCH 4 BODY.PEEK[]
[2025-03-30 17:28:03] 5< * 1 FETCH (UID 4 BODY[] {415}
[2025-03-30 17:28:03] Fetching message... 0K/0.4K (0%)
[2025-03-30 17:28:03] imap_read_literal: reading 415 bytes
[2025-03-30 17:28:03] Fetching message... 0K/0.4K (0%)
[2025-03-30 17:28:03] 5< )
[2025-03-30 17:28:03] 5< a0008 OK Success
[2025-03-30 17:28:03] parse_parameters: `charset=us-ascii'
[2025-03-30 17:28:03] parse_parameter: `charset' = `us-ascii'
[2025-03-30 17:28:03] parse_parameters: `charset=us-ascii'
[2025-03-30 17:28:03] parse_parameter: `charset' = `us-ascii'
[2025-03-30 17:28:03] Marking 1 messages deleted...
[2025-03-30 17:28:03] 5> a0009 UID STORE 4 +FLAGS.SILENT (\Deleted)
[2025-03-30 17:28:03] 5< * 1 FETCH (UID 4 FLAGS (\Deleted \Draft))
[2025-03-30 17:28:03] 5< a0009 OK Success
[2025-03-30 17:28:03] 5> a0010 CLOSE
[2025-03-30 17:28:03] 5< a0010 OK Returned to authenticated state. (Success)
[2025-03-30 17:28:03] 0 kept, 1 deleted.
[2025-03-30 17:28:09] ci_edit_headers(): temp file was not modified.
[2025-03-30 17:28:09] In mutt_reflow_windows
[2025-03-30 17:28:16] Sending message...
[2025-03-30 17:28:18] Error sending message, child exited 70 (Internal error.).
[2025-03-30 17:28:24] 5> a0011 APPEND "[Gmail]/Drafts" (\Draft) "30-Mar-2025 17:28:24 +0530" {415}
[2025-03-30 17:28:25] 5< + go ahead
[2025-03-30 17:28:25] 5> Date: Sun, 30 Mar 2025 17:28:24 +0530
From: rujra bhatt <[email protected]>
To: [email protected]
Subject: here is my new mail i am here to change the kernel level programming
 this is my new start. want to send it now
Message-ID: <Z-acVk5bar_t4Ns7@brak3rDesk>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
X-Mutt-Fcc: =[Gmail]/Sent Mail

[2025-03-30 17:28:25] 5> 
[2025-03-30 17:28:25] 5< a0011 OK [APPENDUID 6 5] (Success)
[2025-03-30 17:28:25] mx_close_message (): unlinking /var/tmp/mutt-brak3rDesk-1000-13008-13080103564770775734
[2025-03-30 17:28:25] Message postponed.
[2025-03-30 17:28:25] mutt_free_body: unlinking /var/tmp/mutt-brak3rDesk-1000-13008-978984040411005381.
[2025-03-30 17:28:25] 5> a0012 STATUS "[Gmail]/Drafts" (MESSAGES)
[2025-03-30 17:28:26] 5< * STATUS "[Gmail]/Drafts" (MESSAGES 1)
[2025-03-30 17:28:26] 5< a0012 OK Success
[2025-03-30 17:28:26] Fetching message...
[2025-03-30 17:28:26] 4> a0009 UID FETCH 9 BODY.PEEK[]
[2025-03-30 17:28:26] 4< * 9 FETCH (UID 9 BODY[] {4333}
[2025-03-30 17:28:26] Fetching message... 0K/4.2K (0%)
[2025-03-30 17:28:26] imap_read_literal: reading 4333 bytes
[2025-03-30 17:28:26] Fetching message... 0K/4.2K (0%)
[2025-03-30 17:28:26] 4< )
[2025-03-30 17:28:26] 4< a0009 OK Success
[2025-03-30 17:28:26] parse_parameters: `charset=UTF-8'
[2025-03-30 17:28:26] parse_parameter: `charset' = `UTF-8'
[2025-03-30 17:28:26] WEED is Set
[2025-03-30 17:28:26] Reorder: date matches Date: Sun, 30 Mar 2025 04:09:35 -0700

[2025-03-30 17:28:26] Reorder: x = 0; hdr_count = 6
[2025-03-30 17:28:26] Reorder: from matches From: GitHub <[email protected]>

[2025-03-30 17:28:26] Reorder: x = 1; hdr_count = 6
[2025-03-30 17:28:26] Reorder: to matches To: rujra bhatt <[email protected]>

[2025-03-30 17:28:26] Reorder: x = 2; hdr_count = 6
[2025-03-30 17:28:26] Reorder: subject matches Subject: [GitHub] A third-party OAuth application has been added to your

[2025-03-30 17:28:26] Reorder: x = 4; hdr_count = 6
[2025-03-30 17:28:26] Reorder: x = 4; hdr_count = 6
[2025-03-30 17:28:29] 4> a0010 UID STORE 9 +FLAGS.SILENT (\Seen)
[2025-03-30 17:28:30] 4< * 9 FETCH (UID 9 FLAGS (Old \Seen))
[2025-03-30 17:28:30] Message UID 9 updated
[2025-03-30 17:28:30] imap_set_flags: parsing FLAGS
[2025-03-30 17:28:30] 4< a0010 OK Success
[2025-03-30 17:28:30] 4> a0011 CLOSE
[2025-03-30 17:28:30] 4< a0011 OK Returned to authenticated state. (Success)
[2025-03-30 17:28:30] 10 kept, 0 deleted.
[2025-03-30 17:28:30] Closing connection to imap.gmail.com...
[2025-03-30 17:28:30] 5> a0013 LOGOUT
[2025-03-30 17:28:31] 5< * BYE LOGOUT Requested
[2025-03-30 17:28:31] Handling BYE
[2025-03-30 17:28:31] 5< a0013 OK 73 good day (Success)
[2025-03-30 17:28:31] Closing connection to imap.gmail.com...
[2025-03-30 17:28:31] 4> a0012 LOGOUT
[2025-03-30 17:28:31] 4< * BYE LOGOUT Requested
[2025-03-30 17:28:31] Handling BYE
[2025-03-30 17:28:31] 4< a0012 OK 73 good day (Success)
[2025-03-30 17:28:31] mutt_buffer_pool_free: 15 of 15 returned to pool
.esmtprc (text/plain, 151 B)
identity "[email protected]"
hostname smtp.gmail.com:587
username "[email protected]"
password "password"
starttls required
.msmtprc (text/plain, 353 B)
account default              
host smtp.gmail.com          
port 587                     
from "[email protected]"   
tls on                       
tls_starttls on              
tls_trust_file /etc/ssl/certs/ca-certificates.crt
auth on                     
user "rujra bhatt"       
password "password"       
logfile ~/.msmtp.log