Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Allows you to use msmtp
offline by queuing email until you have an internet
connection.
msmtp
in your mutt config.offlinemsmtp
will send it immediately.Using PyPi:
pip install --user offlinemsmtp
On Arch Linux, you can install the offlinemsmtp
package from the
AUR. For example, if you use
yay
:
yay -S offlinemsmtp
Create a file called ~/.config/systemd/user/offlinemsmtp.service
with the
following content (if you installed via the AUR package, a service file was
already created for you in /usr/lib/systemd/user
so you only need to do this
step if you want to customize the parameters passed to the daemon):
[Unit]
Description=offlinemsmtp
[Service]
ExecStart=/usr/bin/offlinemsmtp --daemon
[Install]
WantedBy=default.target
Then, enable and start offlinemsmtp
using systemd:
systemctl --user daemon-reload
systemctl --user enable --now offlinemsmtp
offlinemsmtp
has two components: a daemon for listening to the outbox folder
and sending the mail when the network is available and a enqueuer for adding
mail to the send queue.
To run the daemon in the current command line (this is useful for testing), run this command::
offlinemsmtp --daemon
To enqueue emails, use the offlinemsmtp
executable without --daemon
. All
parameters (with a few caveats described below in Command Line
Arguments) are forwarded on to msmtp
. Anything
passed in via standard in will be forwarded over standard in to msmtp
when the
mail is sent.
To use offlinemsmtp with mutt, just replace msmtp
in your mutt configuration
file with offlinemsmtp
. Here is an example:
set sendmail = "offlinemsmtp -a personal"
offlinemsmtp accepts a number of command line arguments:
-h
, --help
- shows a help message and exits.-o DIR
, --outbox-directory DIR
- set the directory to use as the outbox.
Defaults to ~/.offlinemsmtp-outbox
.-d
, --daemon
- run the offlinemsmtp daemon.-s
, --silent
- set to disable all logging and notifications.-i INTERVAL
, --interval INTERVAL
- set the interval (in seconds) at which
to attempt to flush the send queue. Defaults to 60.-C FILE
, --file FILE
- the msmtp configuration file to use.--send-mail-file FILE
- only send mail if this file exists (defaults to
None
meaning that no file is required for mail sending to be enabled)msmtp
. The -C
argument is
automatically passed to msmtp
.--
argument will be passed to msmtp
. This allows
you to pass arguments that may conflict with offlinemsmtp
arguments to
msmtp
.See the CONTRIBUTING.md document for details on how to contribute to the project.
msmtp
, but doesn't have all of the features that I want.FAQs
msmtp wrapper allowing for offline use
We found that offlinemsmtp demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.