Re: Setup for sending mail via Mutt

Richard Akintola <[email protected]> Tue, 15 Apr 2025 10:11:53 +0100
Newsgroups dev.linux.lists.outreachy
Message-ID <CAMyr_b+C3qH2_ob7H2TQ=NTukc8_dpWf4ns1OYDNG95Zo+1P8A@mail.gmail.com>
On Tue, Apr 1, 2025 at 2:11=E2=80=AFPM Richard Akintola
<[email protected]> wrote:
>
> 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 "[email protected]"
> hostname smtp.gmail.com:587
> username "[email protected]"
> password "passwordGeneratedByAppPassword"
> starttls required
>
> 2. Make sendmail point to esmtp using the command
> sudo update-alternatives --install /usr/sbin/sendmail sendmail /usr/bin/e=
smtp 50
>
> 3. Test if esmtp can send mails
> echo "Testing email via esmtp" | /usr/sbin/sendmail -v [email protected]=
m
>
> 4. Add the following to ~/.muttrc file
> set sendmail=3D"/usr/bin/esmtp"
> set envelope_from=3Dyes
> set from=3D"My Name <[email protected]>"
> set use_from=3Dyes
> set edit_headers=3Dyes
>
> 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:[email protected]: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=3D'smarthost'
> dc_other_hostnames=3D''
> dc_local_interfaces=3D'127.0.0.1; ::1'
> dc_readhost=3D''
> dc_relay_domains=3D''
> dc_minimaldns=3D'false'
> dc_relay_nets=3D''
> dc_smarthost=3D'smtp.gmail.com::587'
> CFILEMODE=3D'644'
> dc_use_split_config=3D'false'
> dc_hide_mailname=3D'true'
> dc_mailname_in_oh=3D'true'
> dc_localdelivery=3D'mail_spool'
>
> 3. Test if Exim4 can send mails
> echo "Testing email via Exim4" | /usr/sbin/sendmail -v [email protected]=
m
>
> 4. Add the following to ~/.muttrc
> set sendmail=3D"/usr/sbin/exim4"
> set use_from=3Dyes
> set realname=3D"Your Name"
> set from=3D"[email protected]"
> set envelope_from=3Dyes
>
> 5. Setup Done.

Building Linux Kernel on Debian

The command "make bindeb-pkg" is a Debian-specific command and is used
to build Debian (.deb) kernel packages from the Linux kernel source,
these packages are created in the parent directory of the directory
where the make command was used.

Installation
After running "make bindeb-pkg or make -jN bindeb-pkg", you can install the
kernel with:
cd ..
sudo apt install ./*.deb

And if needed, remove it safely using:
sudo apt remove linux-image-<version> linux-headers-<version>

Richard Akintola