Skip to content

Instantly share code, notes, and snippets.

@mturquette
Created January 18, 2016 07:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mturquette/2ae76bbdb4b41b34257f to your computer and use it in GitHub Desktop.
Save mturquette/2ae76bbdb4b41b34257f to your computer and use it in GitHub Desktop.
Out-going mail queue for msmtp and alot
[accounts]
[[baylibre]]
...
sendmail_command = msmtpq -a baylibre -t
## ======================================================================================
## !!! please define or confirm the following three vars !!!
## !!! before using the msmtpq or msmtp-queue scripts !!!
## ======================================================================================
##
## only if necessary (in unusual circumstances - e.g. embedded systems),
## enter the location of the msmtp executable (no quotes !!)
## e.g. ( MSMTP=/path/to/msmtp )
MSMTP=msmtp
#[ -x "$MSMTP" ] || \
# log -e 1 "msmtpq : can't find the msmtp executable [ $MSMTP ]" # if not found - complain ; quit
##
## set the queue var to the location of the msmtp queue directory
## if the queue dir doesn't yet exist, better to create it (0700)
## before using this routine
## e.g. ( mkdir msmtp.queue )
## ( chmod 0700 msmtp.queue )
##
## the queue dir - modify this to reflect where you'd like it to be (no quotes !!)
Q=~/mail/baylibre/drafts/cur
[ -d "$Q" ] || \
err '' "msmtpq : can't find msmtp queue directory [ $Q ]" '' # if not present - complain ; quit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment