myOS email (Aqeel)
myOS /etc/skel
for email.
Software
This repository has configuration for the following:
Task | Software |
Receiving | msmtp |
Sending | isync a.k.a mbsync |
Organising | notmuch |
Utilized by
The following utilizes the above and is setup independently.
Task | Software |
Viewing / Composing | emacs |
Encryption / Signing | gpg |
Installation
- Clone this repository somewhere
- Edit files in
Mail/config
- Rename Mail folder
mv Mail/aqeel.akber@gmail.com Mail/myemail@example.com
- Copy contents into
/etc/skel
or directly into$HOME
Usage
Download email:
mbsync -Va
Tag emails:
notmuch new
Enqueue email for sending:
$HOME/.local/bin/msmtp-enqueue.sh <just_like_sendmail>
The above sends emails immediately if it can ping Google’s DNS server:
8.8.8.8
.
Check outbox queue:
$HOME/.local/bin/msmtp-listqueue.sh
Try send mail now:
$HOME/.local/bin/msmtp-runqueue.sh
Structure
. ├── .local │ └── bin │ ├── msmtp-enqueue.sh -> ../../Mail/config/bin/msmtp-enqueue.sh │ ├── msmtp-listqueue.sh -> ../../Mail/config/bin/msmtp-listqueue.sh │ └── msmtp-runqueue.sh -> ../../Mail/config/bin/msmtp-runqueue.sh ├── Mail │ ├── aqeel.akber@gmail.com │ ├── config │ │ ├── bin │ │ │ ├── msmtp-enqueue.sh │ │ │ ├── msmtp-listqueue.sh │ │ │ └── msmtp-runqueue.sh │ │ ├── credentials.gpg │ │ ├── mbsyncrc │ │ ├── msmtprc │ │ └── notmuch-config │ ├── .msmtpqueue │ └── .notmuch ├── .mbsyncrc -> Mail/config/mbsyncrc ├── .msmtprc -> Mail/config/msmtprc ├── .notmuch-config -> Mail/config/notmuch-config
Acknowledgments / Contributions
msmtpqueue
scripts are from the msmtp project