.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.42) .\" .\" Standard preamble: .\" ======================================================================== .de Sp \" Vertical space (when we can't use .PP) .if t .sp .5v .if n .sp .. .de Vb \" Begin verbatim text .ft CW .nf .ne \\$1 .. .de Ve \" End verbatim text .ft R .fi .. .\" Set up some character translations and predefined strings. \*(-- will .\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left .\" double quote, and \*(R" will give a right double quote. \*(C+ will .\" give a nicer C++. Capital omega is used to do unbreakable dashes and .\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff, .\" nothing in troff, for use with C<>. .tr \(*W- .ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p' .ie n \{\ . ds -- \(*W- . ds PI pi . if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch . if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch . ds L" "" . ds R" "" . ds C` "" . ds C' "" 'br\} .el\{\ . ds -- \|\(em\| . ds PI \(*p . ds L" `` . ds R" '' . ds C` . ds C' 'br\} .\" .\" Escape single quotes in literal strings from groff's Unicode transform. .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" .\" If the F register is >0, we'll generate index entries on stderr for .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index .\" entries marked with X<> in POD. Of course, you'll have to process the .\" output yourself in some meaningful fashion. .\" .\" Avoid warning from groff about undefined register 'F'. .de IX .. .nr rF 0 .if \n(.g .if rF .nr rF 1 .if (\n(rF:(\n(.g==0)) \{\ . if \nF \{\ . de IX . tm Index:\\$1\t\\n%\t"\\$2" .. . if !\nF==2 \{\ . nr % 0 . nr F 2 . \} . \} .\} .rr rF .\" .\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2). .\" Fear. Run. Save yourself. No user-serviceable parts. . \" fudge factors for nroff and troff .if n \{\ . ds #H 0 . ds #V .8m . ds #F .3m . ds #[ \f1 . ds #] \fP .\} .if t \{\ . ds #H ((1u-(\\\\n(.fu%2u))*.13m) . ds #V .6m . ds #F 0 . ds #[ \& . ds #] \& .\} . \" simple accents for nroff and troff .if n \{\ . ds ' \& . ds ` \& . ds ^ \& . ds , \& . ds ~ ~ . ds / .\} .if t \{\ . ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u" . ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u' . ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u' . ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u' . ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u' . ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u' .\} . \" troff and (daisy-wheel) nroff accents .ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V' .ds 8 \h'\*(#H'\(*b\h'-\*(#H' .ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#] .ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H' .ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u' .ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#] .ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#] .ds ae a\h'-(\w'a'u*4/10)'e .ds Ae A\h'-(\w'A'u*4/10)'E . \" corrections for vroff .if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u' .if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u' . \" for low resolution devices (crt and lpr) .if \n(.H>23 .if \n(.V>19 \ \{\ . ds : e . ds 8 ss . ds o a . ds d- d\h'-1'\(ga . ds D- D\h'-1'\(hy . ds th \o'bp' . ds Th \o'LP' . ds ae ae . ds Ae AE .\} .rm #[ #] #H #V #F C .\" ======================================================================== .\" .IX Title "KUVERT 1" .TH KUVERT 1 "2022-02-16" "Mail" "User Commands" .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l .nh .SH "NAME" kuvert \- Automatically sign and/or encrypt emails based on the recipients .SH "SYNOPSIS" .IX Header "SYNOPSIS" kuvert [\-d] [\-o] [\-r|\-k] [\-c configfile] .SH "DESCRIPTION" .IX Header "DESCRIPTION" Kuvert is a tool to protect the integrity and secrecy of your outgoing email independent of your mail client and with minimal user interaction. .PP It reads mails from its queue (or accepts \s-1SMTP\s0 submissions), analyzes the recipients and decides to whom it should encrypt and/or sign the mail. The resulting mail is coerced into the PGP-MIME framework defined in \s-1RFC3156\s0 and finally sent to your outbound mail server. Kuvert uses GnuPG for all cryptographic tasks and is designed to interface cleanly with external secret caching tools. .SH "GETTING STARTED" .IX Header "GETTING STARTED" If no configuration file (~/.kuvert) exists or if that is empty, then kuvert will hand all emails directly on to sendmail, without any modifications whatsoever. .PP To let kuvert perform encryption/signing operations, at a minimum you need to set the \*(L"defaultaction\*(R" option (to a value other than its default, \*(L"none\*(R"). .SH "OPTIONS" .IX Header "OPTIONS" After startup kuvert periodically scans its queue directory and processes mails from there; depending on your GnuPG passphrase setup kuvert may daemonize itself. In either case, kuvert runs forever until actively terminated. .PP Kuvert's behaviour is configured primarily using a configuration file, with exception of the following commandline options: .IP "\-d" 4 .IX Item "-d" Enables debugging mode: extra debugging information is written to \s-1STDERR.\s0 (This is independent of normal logging.) .IP "\-o" 4 .IX Item "-o" Enables one-shot mode: kuvert does not loop forever but processes only the current queue contents and then exits. Kuvert does also not start an \s-1SMTP\s0 listener in this mode. .IP "\-r" 4 .IX Item "-r" Tells a running kuvert daemon to reload the configuration file and the gpg keyring. This is equivalent to sending a \s-1SIGUSR1\s0 to the respective process. .IP "\-k" 4 .IX Item "-k" Tells a running kuvert daemon to terminate cleanly. This is equivalent to sending a \s-1SIGTERM\s0 to the respective process. .IP "\-c " 4 .IX Item "-c " Tells kuvert to use the given config file instead of ~/.kuvert. .SH "OPERATION" .IX Header "OPERATION" At startup kuvert reads its configuration file and your gnugp keyring and remembers the association of email addresses to keys. .PP Kuvert then works as a wrapper around your mail transfer agent (\s-1MTA\s0): you author your emails like always but instead of sending them out directly you submit them to kuvert. .PP Periodically kuvert scans its queue and processes any email therein. If your keyring contains a key for a recipient, kuvert will encrypt and sign the email to that recipient. If no key is available, kuvert will only (clear/detached\-)sign the email. Subsequently, the email is sent onwards using your \s-1MTA\s0 program or \s-1SMTP.\s0 .PP Emails to be processed can have any valid \s-1MIME\s0 structure; kuvert unpacks the \&\s-1MIME\s0 structure losslessly and repacks the (encrypted/signed) mail into a \s-1PGP/MIME\s0 object as described in \s-1RFC3156.\s0 The mail's structure is preserved. Signature and encryption cover all of the mail content with the exception of the top-level headers: for example the \*(L"Subject\*(R" header will be passed in clear, whereas any body or attached \s-1MIME\s0 object will be signed/encrypted. .PP The encrypt-or-sign decision can be overridden on a per-address basis using the configuration file or, even more fine-grainedly, by using directives in the actual email. Kuvert can also be told not to modify an email at all. .SS "Submitting Emails to Kuvert" .IX Subsection "Submitting Emails to Kuvert" Kuvert primarily relies on mails being dumped into its queue directory. Kuvert operates on files with numeric file names only. Anything that you store in its queue directory with such a filename will be treated as containing a single RFC2822\-formatted email. .PP However, no mainstream \s-1MUA\s0 supports such a drop-your-files-somewhere scheme, and therefore kuvert comes with a helper program called kuvert_submit (see \fBkuvert_submit\fR\|(1)) which mimics sendmail's mail submission behaviour but feeds to the kuvert queue. If your \s-1MUA\s0 can be instructed to run a program for mail submission, kuvert_submit can be used. .PP Alternatively, you can send your email to kuvert via \s-1SMTP.\s0 Kuvert comes with a built-in receive-only mail server, which feeds to the queue directory. As allowing others to submit emails for your signature would be silly and dangerous, kuvert's mail server only listens on the localhost \s-1IP\s0 address and requires that your \s-1MUA\s0 uses \s-1SMTP\s0 Authentication to ensure that only your submissions are accepted. If your \s-1MUA\s0 supports \s-1SMTP AUTH PLAIN\s0 or \s-1LOGIN\s0 and can be told to use localhost and a specific port for outbound email, then you can use this mechanism. .SS "Transporting Emails Onwards" .IX Subsection "Transporting Emails Onwards" Kuvert can send outbound emails either by running a local \s-1MTA\s0 program or by speaking \s-1SMTP\s0 to some (fixed) outbound mail server of your choice. .SS "Recipients, Identities and the \s-1SMTP\s0 Envelope" .IX Subsection "Recipients, Identities and the SMTP Envelope" In general kuvert identifies recipients using the To, Cc, Bcc and Resent-To headers of the queued email. If the mechanism you used to submit the mail to kuvert did explicitely set recipients, then these \fBoverride\fR the headers within the email. .PP This is the case if kuvert_submit is called with a list of recipients and no \-t option and for \s-1SMTP\s0 submission. .PP If kuvert enqueues email via inbound \s-1SMTP,\s0 the \s-1SMTP\s0 envelope \&\fBoverrides\fR the email headers: recipients that are present in the envelope but not the headers are treated as Bcc'd, and recipients listed in the headers but not the envelope are \fBignored\fR. Any Resent-To header is ignored for SMTP-submitted email. .PP Only if no overriding recipients are given, kuvert checks the mail for a Resent-To header. If present, the email is sent out immediately to the Resent-To addresses \fIwithout further processing\fR. (This is the standard \*(L"bounce\*(R" behaviour for MUAs that don't pass recipients on to an \s-1MSP/MTA\s0 directly.) .PP When sending outbound email, kuvert usually uses the From header from the queued email as identity. If the email was queued via \s-1SMTP,\s0 the envelope again \fBoverrides\fR the mail headers. .PP Note that kuvert sets the envelope sender using \*(L"\-f\*(R" if sending email via a local \s-1MTA\s0 program; if you are not sufficiently trusted by your \s-1MTA\s0 to do such, your mail may get an X\-Authentication-Warning header tacked on that indicates your username and the fact that the envelope was set explicitely. .SS "Passphrase Handling" .IX Subsection "Passphrase Handling" Kuvert does not handle your precious keys' passphrases. You can either elect to use gpg-agent as an (on-demand or caching) passphrase store, or you can tell kuvert what program it should run to query for a passphrase when required. Such a query program will be run in a pipeline to GnuPG, and kuvert will not access, store or cache the passphrases themselves: there are better options available for secret caching, for example the Linux in-kernel keystorage (\fBkeyctl\fR\|(1)). .SS "How Kuvert Decides What (Not) To Do" .IX Subsection "How Kuvert Decides What (Not) To Do" For each recipient, kuvert can be told to apply one of five different action overrides: .IP "none" 4 .IX Item "none" The email is sent as-is (except for configuration directive removal). .IP "signonly" 4 .IX Item "signonly" The email is (clear/detached\-) signed. .IP "fallback" 4 .IX Item "fallback" The email is encrypted and signed if there is a key available for this recipient or only signed if not. .IP "fallback-all" 4 .IX Item "fallback-all" The email is encrypted and signed if keys are available for \fBall\fR recipients, or only signed otherwise. Recipients whose action is set to \*(L"none\*(R" and Bcc'd recipients are not affected by this action. .Sp The fallback-all action is an \*(L"all-or-nothing\*(R" action as far as encryption is concerned and ensures that no mix of encrypted or unencrypted versions of this email are sent out: if we can we use encryption for everybody, or otherwise everybody gets it signed (or even unsigned). (Bcc'd recipients are the exception.) .IP "mustencrypt" 4 .IX Item "mustencrypt" The mustencrypt action is an \*(L"all-or-nothing\*(R" action and ensures that any emails involving such addresses are only sent out if the email can be encrypted for every recipient. .Sp The email is rejected and \fBnot sent to anybody at all\fR, if any addresses are present that have the mustencrypt directive set but where no key is known. Bcc'd recipients \fIare\fR included in this decision. .Sp This action overrides fallback-all. .SS "Specifying Actions" .IX Subsection "Specifying Actions" Kuvert uses four sources for action specifications: directives in the individual email addresses, action directives in the configuration file, an X\-Kuvert header in your email, and finally the default action given in the configuration file. .IP "1." 4 First kuvert looks for action directives in your configuration file. Such directives are given as action plus regular expression to be matched against an address, and the first matching directive is used. .IP "2." 4 If no matching directive is found, the default action given in the configuration file is applied. .IP "3." 4 Kuvert now checks for the presence of an X\-Kuvert header: its content must be an action keyword, which is applied to all recipients of this email except the ones whose action at this stage is \*(L"none\*(R". (In other words: if you specify \*(L"no encryption and no signing\*(R" for some addresses, then this cannot be overridden in a blanket fashion.) .IP "4." 4 Kuvert then analyzes each recipient email address. If an address has the format Some Text \*(L"action=someaction\*(R" ", kuvert strips the quoted part and overrides the addressee's action with someaction. .IP "5." 4 If any \*(L"mustencrypt\*(R" recipient action is present, but no key is known (or given in an override, see section \*(L"Key Selection\*(R"), then the whole mail is rejected and not sent to anybody. .IP "6." 4 Finally kuvert checks if any recipient has action \*(L"fallback-all\*(R". If so, kuvert .RS 4 .IP "a)" 4 .IX Item "a)" checks if any recipients (except Bcc'd) have action \*(L"signonly\*(R" or \&\*(L"none\*(R". If this is the case, all \*(L"fallback\*(R" and \*(L"fallback-all\*(R" actions are downgraded to \&\*(L"signonly\*(R". .IP "b)" 4 .IX Item "b)" checks if keys for all recipients (except Bcc'd) are available. If not, all \*(L"fallback\*(R" and \*(L"fallback-all\*(R" actions are downgraded to \*(L"signonly\*(R". .RE .RS 4 .RE .IP "7." 4 Recipients which are given in a Bcc: header are always treated independently and separately from all others (except for mustencrypt): any \*(L"fallback-all\*(R" action is downgraded to \*(L"fallback\*(R" for Bcc'd addresses, and if encryption is used, the email is encrypted separately so that no record of the Bcc'd recipient is visible in the email as sent out to the \*(L"normal\*(R" recipients. Also, any Bcc: header is removed before sending an email onwards. .SS "Key Selection" .IX Subsection "Key Selection" Kuvert depends on the order of keys in your keyring to determine which key (of potentially many) with a given address should be used for encryption. By default kuvert uses the \fBlast\fR key that it encounters for a given address. For people who have multiple keys for a single address this can cause problems, and therefore kuvert has override mechanisms for encryption key selection: You can specify a key to encrypt to for an address in the configuration file (see below), or you can override the key selection for and within a single mail: .PP If the recipient address is given in the format .PP .Vb 1 \& Some Name "key=keyid" .Ve .PP Kuvert will strip the double-quoted part and use this particular key for this recipient and for this single email. The keyid must be given as the hex key identifier. This mechanism overrides whatever associations your keyring contains and should be used with caution. Note that both key and action overrides can be given concurrently as a single comma-separated entry like this: .PP .Vb 1 \& Some Name "action=fallback,key=0x12345" .Ve .PP The signing key can be overridden in a similar fashion: if the From address contains a "key=\fBkeyid\fR" stanza, kuvert will use this key for signing this single email. .SH "CONFIGURATION" .IX Header "CONFIGURATION" The kuvert configuration file is plain text, blank lines and lines that start with \*(L"#\*(R" are ignored. .PP The configuration has of two categories: options and address/action specifications. .SS "Address and Action" .IX Subsection "Address and Action" Address+action specifications are given one per line. Such lines must start with some whitespace, followed by an address regexp, followed by some whitespace and the action keyword. For actions \*(L"fallback\*(R" and \*(L"fallback-all\*(R" kuvert also allows you to specify a single key identifier like this: \*(L"fallback,0x42BD645D\*(R". The remainder of the line is ignored. .PP The address regexp is a full Perl regular expression and will be applied to the raw \s-1SMTP\s0 address (i.e. not to the comment or name in the email address), case-insensitively. The regular expression may need to be anchored with ^ and $; kuvert does not do that for you. You must give just the core of the regexp (no m// or //), like in this example: .PP .Vb 2 \& # don\*(Aqt confuse mailing list robots \& ^.*\-request@.*$ none .Ve .PP The action keyword must be one of \*(L"none\*(R", \*(L"signonly\*(R", \*(L"fallback\*(R", \*(L"fallback-all\*(R" or \*(L"mustencrypt\*(R"; see section \*(L"How Kuvert Decides What (Not) To Do\*(R" for semantics. Order of action specifications in the config file is significant: the search terminates on first match. .SS "Options" .IX Subsection "Options" Options are given one per line, and option lines must start with the option name followed by some whitespace. All options are case-sensitive. Depending on the option content, some or all of the remainder of the option line will be assigned as option value. Inline comments are not supported. .PP In the following list of options angle brackets denote required arguments like this: .PP .Vb 1 \& defaultkey .Ve .PP Options that have boolean arguments recognize \*(L"1\*(R", \*(L"on\*(R" and \*(L"t\*(R" as true and \*(L"0\*(R", \*(L"off\*(R", \*(L"f\*(R" as false (plus their upper-case versions). Other options have more restricted argument types; kuvert generally sanity-checks options at startup. .SS "Known Options" .IX Subsection "Known Options" .IP "syslog " 4 .IX Item "syslog " Whether kuvert should use syslog for logging, and if so, what facility to use. Default: nothing. This is independent of the logfile option below. kuvert uses your locale's encoding for all messages sent to syslog. .IP "logfile " 4 .IX Item "logfile " Whether kuvert should write log messages to a file, appending to it. Default: not set. This is independent of the syslog option above. kuvert uses your locale's encoding for saving data to the logfile. .IP "mail-on-error " 4 .IX Item "mail-on-error " If kuvert encounters serious or fatal errors, an email is sent back to this address if set. Default: undef. This email is sent in addition to the normal logging via syslog or logfile. .IP "queuedir " 4 .IX Item "queuedir " Where kuvert and its helper programs store mails to be processed. Default: ~/.kuvert_queue. The directory is created if necessary. The directory must be owned by the user running kuvert and have mode 0700. .IP "tempdir " 4 .IX Item "tempdir " Where kuvert stores temporary files. Default: a directory called kuvert. in \f(CW$TMPDIR\fR or /tmp. The directory is created if necessary, and must be owned by the user running kuvert and have mode 0700. This directory is completely emptied after processing an email. .IP "identify " 4 .IX Item "identify " Whether kuvert should add an X\-Mailer header to outbound emails. Default: false. The X\-Mailer header consists of the program name and version. .IP "preamble " 4 .IX Item "preamble " Whether kuvert should include an explanatory preamble in the generated \&\s-1MIME\s0 mail. Default: true .IP "interval " 4 .IX Item "interval " This sets the queue checking interval in seconds. Default: 60 seconds. .IP "msserver " 4 .IX Item "msserver " Mail Submission Server for outbound email. Default: unset. If this is set, kuvert will use \s-1SMTP\s0 to send outbound emails. If not set, kuvert uses the mail submission program on the local machine. See msp below. .IP "msport " 4 .IX Item "msport " The \s-1TCP\s0 port on which the Mail Submission Server listens. Default: 587. Ignored if msserver is not set. .IP "ssl " 4 .IX Item "ssl " Whether \s-1SSL\s0 or \s-1STARTTLS\s0 are to be used for outbound \s-1SMTP\s0 submission. The value must be either \*(L"starttls\*(R" to use \s-1STARTTLS\s0 or \*(L"ssl\*(R" for raw \s-1SSL. SSL\s0 encryption is not used if this option is unset. .IP "ssl-cert " 4 .IX Item "ssl-cert " .PD 0 .IP "ssl-key " 4 .IX Item "ssl-key " .IP "ssl-ca " 4 .IX Item "ssl-ca " .PD If an \s-1SSL\s0 client certificate is to be presented to the \s-1SMTP\s0 server, set both ssl-cert and ssl-key. If your system-wide \s-1CA\s0 certificate setup doesn't include the certificate your \s-1SMTP\s0 server uses, set ssl-ca to point to a \&\s-1PEM\s0 file containing all the relevant \s-1CA\s0 certificates. All these are ignored if the ssl option isn't set. .IP "msuser " 4 .IX Item "msuser " The username to use for \s-1SMTP\s0 authentication at the Mail Submission Server. \&\s-1SMTP\s0 Auth is not attempted if msuser isn't set. Ignored if msserver is not set. .IP "mspass " 4 .IX Item "mspass " The password for \s-1SMTP\s0 authentication. Ignored if msserver or msuser are not set. .IP "mspass-from-query-secret " 4 .IX Item "mspass-from-query-secret " Whether the mspass should be retrieved using the query-secret program instead of giving the mspass in the config file. Ignored if msserver or msuser are not set. If this option is set, the query-secret program will be used to ask for the \*(L"smtp-password\*(R" when the first mail is processed. The password will be cached if authentication succeeds or you will be asked again, until authentication succeeds. .IP "msp " 4 .IX Item "msp " Defines the program kuvert should use to deliver email. Default: \*(L"/usr/sbin/sendmail \-om \-oi \-oem\*(R". This is ignored if msserver is set. The argument must include the full path to the program, and the program must accept the common mail transfer agent arguments as defined in the Linux Standards Base (see ). .IP "gpg " 4 .IX Item "gpg " Defines which custom GnuPG executable kuvert should use. If this option is given the argument must be a full path to an executable. Default: \*(L"gpg\*(R", i.e. anywhere in the path. .IP "can-detach " 4 .IX Item "can-detach " Indicates to kuvert that it can background itself on startup, detaching from the terminal. Default: false. .Sp Detaching works only if your chosen mechanism for passphrase entry doesn't require interaction via the original terminal. This is the case if you delegate passphrase handling to gpg-agent and configure it for X11 pinentry, or if your secret-query program is an X11 program with its own window. .IP "maport " 4 .IX Item "maport " Kuvert can accept email for processing via \s-1SMTP.\s0 This option sets the \s-1TCP\s0 port kuvert listens on (localhost only). Default: 2587. Ignored if ma-user and ma-pass are not both set. If you want to use this mechanism, tell your mail program to use localhost or 127.0.0.1 as outgoing mail server and enable \s-1SMTP\s0 Authentication (see below). .IP "ma-user " 4 .IX Item "ma-user " This option sets the required \s-1SMTP\s0 authentication username for accepting mails via \s-1SMTP.\s0 Default: undef. Kuvert does not listen for \s-1SMTP\s0 submissions unless both ma-user and ma-pass are set. Kuvert does not accept emails for processing via \s-1SMTP\s0 unless you prove your identity with \s-1SMTP\s0 Authentication (or anybody on your local machine could use kuvert to send emails signed by you!). Kuvert currently supports only \&\s-1AUTH PLAIN\s0 and \s-1LOGIN\s0 (which is not a major problem as we listen on the loopback interface only). This option sets the username kuvert recognizes as yours. This can be anything and doesn't have to be a real account name. .IP "ma-pass " 4 .IX Item "ma-pass " This option sets the password your mail user agent must use for \&\s-1SMTP\s0 Authentication if submitting mails via \s-1SMTP.\s0 Default: unset. Kuvert does not listen for \s-1SMTP\s0 submissions unless both ma-user and ma-pass are set. This password does not have to be (actually shouldn't be) your real account's password. Note that using \s-1SMTP\s0 submission requires that you protect your kuvert configuration file with strict permissions (0600 is suggested). .IP "defaultkey " 4 .IX Item "defaultkey " Specifies a default key to use as signing key. Default: unset, which means GnuPG gets to choose (usually the first available secret key). Can be overridden in the From: address, see section \*(L"Key Selection\*(R". .IP "defaultaction " 4 .IX Item "defaultaction " Which action is to be taken if no overrides are found for a recipient. Default: none. See section \*(L"How Kuvert Decides What (Not) To Do\*(R" for recognized actions. .IP "alwaystrust " 4 .IX Item "alwaystrust " Whether gpg should be told to trust all keys for encryption or not. Default: false. .IP "use-agent " 4 .IX Item "use-agent " Whether kuvert should delegate all passphrase handling to the gpg-agent and call gpg with appropriate options. Default: false. If not set, kuvert will ask the user (or some nominated passphrase store) for passphrases on demand. .ie n .IP "query-secret " 4 .el .IP "query-secret " 4 .IX Item "query-secret " Tells kuvert which program to use for passphrase retrieval. Default: \*(L"/bin/sh \-c 'stty \-echo; read \-p \e\*(R"Passphrase \f(CW%s:\fR \e\*(L" X; \e stty echo; echo \f(CW$X\fR'\*(R" Ignored if use-agent is set. Kuvert does not store passphrases internally but rather runs the indicated program in a pipeline with gpg when signing. If you use a passphrase store (like the Linux-kernel keyutils or secret-agent or the like), enter your retrieval program here. The program is run with kuvert's environment, the first \f(CW%s\fR in the argument spec is replaced with the hex keyid and the passphrase is expected on stdout. The exit code is ignored. If can-detach is not set, the program has access to kuvert's terminal. Note that the default query program prohibits kuvert from backgrounding itself. .ie n .IP "flush-secret " 4 .el .IP "flush-secret " 4 .IX Item "flush-secret " This program is called to invalidate an external passphrase cache if kuvert is notified by gpg of the passphrase being invalid. Default: undef. Ignored if use-agent is set. The program is run with kuvert's environment and with the first \f(CW%s\fR of its argument spec being replaced by the hex keyid in question. Its exit code is ignored. If can-detach is not set, the program has access to kuvert's terminal. .SH "DIAGNOSTICS" .IX Header "DIAGNOSTICS" Kuvert usually logs informational messages to syslog and/or its own logfile, both of which can be disabled and adjusted. .PP If kuvert detects a fault that makes successful processing of a particular email impossible, kuvert will report that on \s-1STDERR\s0 (if not detached) and also email an error report if the option mail-on-error is enabled. Such partially or completely unprocessed mails are left in the queue but are renamed (the name is prefixed with \*(L"failed.\*(R"); it is up to you to either remove such leftovers or rename them to something all-numeric once the problem has been resolved. .PP The behaviour is similar if fatal problems are encountered; after alerting kuvert will terminate with exit code 1. .SH "ENVIRONMENT AND SIGNALS" .IX Header "ENVIRONMENT AND SIGNALS" Kuvert itself uses only on environment variable: \f(CW$TMPDIR\fR provides the fallback location for kuvert's temporary directory. .PP Kuvert passes its complete environment to child processes, namely gpg and any passphrase-query programs. .PP On reception of \s-1SIGUSR1,\s0 kuvert reloads its configuration file and keyring. Any one of \s-1SIGHUP, SIGINT, SIGQUIT\s0 and \s-1SIGTERM\s0 causes kuvert to terminate cleanly, invalidating the passphrases if a query program is used. All other signals are ignored. .SH "FILES" .IX Header "FILES" .IP "~/.kuvert" 4 .IX Item "~/.kuvert" The configuration file read by kuvert and kuvert_submit. .IP "~/.kuvert_queue" 4 .IX Item "~/.kuvert_queue" The default queue directory. .IP "/tmp/kuvert.pid." 4 .IX Item "/tmp/kuvert.pid." holds the pid of a running kuvert daemon. .SH "SEE ALSO" .IX Header "SEE ALSO" \&\fBgpg\fR\|(1), \fBkuvert_submit\fR\|(1), \s-1RFC3156, RFC4880, RFC2015\s0 .SH "AUTHOR" .IX Header "AUTHOR" Alexander Zangerl .SH "COPYRIGHT AND LICENCE" .IX Header "COPYRIGHT AND LICENCE" copyright 1999\-2014 Alexander Zangerl .PP This program is free software; you can redistribute it and/or modify it under the terms of the \s-1GNU\s0 General Public License version 2 as published by the Free Software Foundation.