Created
January 18, 2016 07:11
-
-
Save mturquette/2ae76bbdb4b41b34257f to your computer and use it in GitHub Desktop.
Out-going mail queue for msmtp and alot
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[accounts] | |
[[baylibre]] | |
... | |
sendmail_command = msmtpq -a baylibre -t |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## ====================================================================================== | |
## !!! 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