From: Richard Akintola <princerichard17a@gmail.com>
To: outreachy@lists.linux.dev
Cc: julia.lawall@inria.fr, princerichard17a@gmail.com
Subject: Setup for sending mail via Mutt
Date: Tue, 1 Apr 2025 14:11:31 +0100 [thread overview]
Message-ID: <67ebe607.050a0220.396ffc.2dd5@mx.google.com> (raw)
The following assumes that you have installed Esmtp or Exim4 (default on Debian)
and you have generated password using App Password (for Gmail)
Configure Esmtp
1. Added the following to ~/.esmtp file
identity "my.email@gmail.com"
hostname smtp.gmail.com:587
username "my.email@gmail.com"
password "passwordGeneratedByAppPassword"
starttls required
2. Make sendmail point to esmtp using the command
sudo update-alternatives --install /usr/sbin/sendmail sendmail /usr/bin/esmtp 50
3. Test if esmtp can send mails
echo "Testing email via esmtp" | /usr/sbin/sendmail -v recipient@gmail.com
4. Add the following to ~/.muttrc file
set sendmail="/usr/bin/esmtp"
set envelope_from=yes
set from="My Name <my.email@gmail.com>"
set use_from=yes
set edit_headers=yes
5. Setup Done
Configure Exim4 (default mail transfer agent - MTA on Debian)
1. Make sendmail point to exim4 using the command
sudo update-alternatives --install /usr/sbin/sendmail sendmail /usr/sbin/exim4 100
2. Run the command below to add gmail and password to exim4 in the format below
sudo vi /etc/exim4/passwd.client
smtp.gmail.com:my.email@gmail.com:passwordGeneratedByAppPassword
3. Add the following configuration to update-exim4.conf.conf via sudo
e.g sudo vi /etc/exim4/update-exim4.conf.conf
dc_eximconfig_configtype='smarthost'
dc_other_hostnames=''
dc_local_interfaces='127.0.0.1; ::1'
dc_readhost=''
dc_relay_domains=''
dc_minimaldns='false'
dc_relay_nets=''
dc_smarthost='smtp.gmail.com::587'
CFILEMODE='644'
dc_use_split_config='false'
dc_hide_mailname='true'
dc_mailname_in_oh='true'
dc_localdelivery='mail_spool'
3. Test if Exim4 can send mails
echo "Testing email via Exim4" | /usr/sbin/sendmail -v recipient@gmail.com
4. Add the following to ~/.muttrc
set sendmail="/usr/sbin/exim4"
set use_from=yes
set realname="Your Name"
set from="my.email@gmail.com"
set envelope_from=yes
5. Setup Done.
next reply other threads:[~2025-04-01 13:11 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-04-01 13:11 Richard Akintola [this message]
2025-04-01 14:38 ` Setup for sending mail via Mutt Samuel Abraham
2025-04-01 14:47 ` Julia Lawall
[not found] ` <CAMyr_b+jCO2k+VbAB=Ahv9=Xi8adSUF3SM7UrO8FLa5JSfro6A@mail.gmail.com>
2025-04-01 16:16 ` Samuel Abraham
2025-04-15 9:00 ` Richard Akintola
2025-04-15 9:04 ` Julia Lawall
2025-04-15 9:47 ` Richard Akintola
2025-04-15 9:11 ` Richard Akintola
2025-04-15 9:17 ` Julia Lawall
2025-04-15 10:24 ` Richard Akintola
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=67ebe607.050a0220.396ffc.2dd5@mx.google.com \
--to=princerichard17a@gmail.com \
--cc=julia.lawall@inria.fr \
--cc=outreachy@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.