Mail - jasper-zanjani/dotfiles GitHub Wiki

Mail

MDA MTA MUA

mail

Mail User Agent (MUA) which accepts interactive input using the & prompt Check email of $USER

mail -u $USER

Send email to $USER

mail $USER

Send email from the command-line Send email interactively

mail $ADDRESS

Send message via pipe

echo 'message' | mail -s 'subject' [email protected]

Send an email attachment from the command-line

mail -a /path/to/attachment

Send message via pipe

echo 'message' | mail -s 'subject' -a /path/to/attachment

mailmerge

Mailmerge is a command-line Python program that provides a powerful way to send many customized emails by using Jinja2 templating. It is available from Fedora's repositories through dnf and is also available from PyPI. [ref]

Configuration file Description
$HOME/mailmerge_server.conf SMTP host configuration details
$HOME/mailmerge_database.csv custom data for each email, including email addresses of recipients. The email address to be used as test recipient (i.e. the user) is the first entry by convention.
$HOME/mailmerge_template.txt email's text with placeholder fields that will be replaced using data from mailmerge_database.csv

Review message to be sent to first recipient This will display the message addressed to the first address specified in the recipient database in the terminal

mailmerge

Review every message to be sent

mailmerge --no-limit

Send test message to first recipient

mailmerge --no-dry-run

Send all emails

mailmerge --no-dry-run --no-limit

mailq

Display the current mail queue on a Postfix server

mailstats

Gather and display statistics about mail processed on a server running sendmail

msmtp

vitux.com

~/.msmtprc

newaliases

Refresh the mail system after a change to the /etc/aliases file; Must be run after making a change to email aliases on a server running postfix

postqueue

Cause mail queue to be processed on a Postfix server

postqueue -f

postsuper

Delete all of the messages from the queue on a postfix server

postsuper -d

postfix

Designed to replace Sendmail.

  • multiple processes with no particular parent/child relationship Receives mail by two methods:
  1. Local mail (sendmail)
  2. Internet mail (SMTP) Before mail is queued for delivery, it goes through a cleanup daemon, which can be configured to do header and body inspection using regex Qmgr is the heart of postfix mail delivery; it maintains an active queue, which attempts delivery. It delivers mail using three methods:
  3. Local inboxes
  4. Internet (SMTP)
  5. Piped to programs

qmail

Mail Transfer Agent (MTA) designed as a drop-in replacement for Sendmail, notable for being the first to be "security-aware". Its various modular subcomponents run independently and are mutually untrustful. It uses SMTP to exchange messages with other MTAs. It was written by Dan Bernstein, a professor of mathematics famous for litigating against the US government with regard to export controls on encryption algorithms. Deprecated and removed from Arch repos in 2005. [27]

sendmail

Mail daemon once the de facto standard for accepting and redirecting mail on Linux distributions, long ago fallen into disuse. It was infamous for its difficulty to set up, with roots in ARPANET itself. [ref][Eckert]

ssmtp

Installable client program [25]

Configuration file Description
/etc/ssmtp/ssmtp.conf Configuration file

Send {msg} to {recipient} from {user} at {host} using password {pw}

ssmtp -au recipient -ap pw user@host < msg

pine

"Program for Internet news and email", a popular MUA during the 1990s which has since been superceded by Alpine.

⚠️ **GitHub.com Fallback** ⚠️