.TH "gpg\-remailer" "1" "2006\-2022" "gpg\-remailer\&.3\&.04\&.07" "gpg\-remailer \- reencrypt PGP/GPG maill" .PP .SH "NAME" gpg\-remailer \- forward re\-encrypted/signed PGP/GPG encrypted/signed mail to a group .PP .SH "SYNOPSIS" \fBgpg\-remailer\fP [OPTIONS] .PP .SH "DESCRIPTION" .PP Gpg\-remailer decrypts received PGP/GPG messages, verifies the received signature, and re\-encrypts the e\-mail for a well defined group of recipients\&. Gpg\-remailer can also be configured so as to process clear\-text e\-mail\&. .PP Using gpg\-remailer the list of members of a group of people who want to exchange encrypted and authenticated e\-mails (and maybe also clear\-text messages) can be maintained at one location, allowing the members of the group to specify just one e\-mail address to send PGP/GPG signed and encrypted (or optionally clear\-text) e\-mail to\&. .PP Gpg\-remailer reads incoming e\-mail from its standard input stream\&. .PP If the incoming e\-mail is clear\-text, it resends the e\-mail to one or more configurable e\-mail addresses\&. .PP If the incoming e\-mail is PGP/GPG encrypted (and optionally signed) it re\-encrypts the received information for every member of a configurable group, and send the re\-encrypted information to one or more configurable e\-mail addresses\&. .PP By itself, gpg\-remailer is not a mailing list\&. However, the configured recipient address could be, e\&.g\&., a mailing list address, for further distribution of the processed e\-mail\&. Gpg\-remailer is a \fIremailer\fP: it uses the message\(cq\&s data, but not its headers\&. Having received an e\-mail it resends, rather than forwards, the received e\-mail\&. The e\-mail that is received via gpg\-remailer therefore contains a completely new set of e\-mail headers\&. .PP A configuration file as well as command line options can be used to fine\-tune gpg\-remailer\(cq\&s behavior\&. .PP .SH "RETURN VALUE" .PP Gpg\-remailer always returns 0 to the operating system to prevent \fIunknown mailer error\fP messages in the MTA\(cq\&s logs\&. However, when gpg\-remailer ends prematurely an error message is written to the standard error stream\&. .PP .SH "REQUIREMENTS" .PP In order to use gpg\-remailer the following requirements must be met (all commands should be issued by the \fIroot\fP user): .PP .IP o Since multiple groups may use gpg\-remailer it is advised to define functional accounts handling e\-mail to be processed by gpg\-remailer\&. A functional account \fIsecmail\fP can be defined using a command like this: .nf adduser \-\-home /var/lib/secmail \-\-disabled\-password secmail .fi .IP .IP o All locations used by the gpg\-remailer must be given highly restrictive permissions\&. E\&.g\&., the functional accounts should set \fIumask 077\fP\&. It is the responsibility of the user to make sure that the access rights are correctly configured\&. .IP .IP o Consider making all functional gpg\-remailer accounts members of a special group (e\&.g\&., \fIgpg\-remailer\fP) and allow execution of \fI/usr/sbin/gpg\-remailer\fP only my members of that group: .nf addgroup gpg\-remailer adduser secmail gpg\-remailer chown root\&.gpg\-remailer /usr/sbin/gpg\-remailer chmod o\-rx /usr/bin/gpg\-remailer .fi .IP .IP o To allow the functional account to handle incoming e\-mail \fBsudo\fP(1) can be used\&. In the file \fI/etc/sudoers\fP the following lines can be entered (\fIREMAILERS\fP can be given a comma separated list of functional account names, \fImailhost\&.org\fP should be replaced by the name of the host handling incoming e\-mail): .nf Runas_Alias REMAILERS = secmail mail mailhost\&.org=(REMAILERS) NOPASSWD: /usr/sbin/gpg\-remailer .fi E\&.g\&., if gpg\-remailer runs on a computer named \fIremailer\&.mydomain\&.nl\fP which may receive incoming e\-mails, then specify \fIremailer\&.mydomain\&.nl\fP for \fImailhost\&.org\fP\&. .IP .IP o An e\-mail address must be defined to where the mail to reencrypt must be sent to\&. This e\-mail address must be known by the members of the group who want to use the gpg\-remailer\&. Such an account could be, e\&.g\&., \fIsecmail@mailhost\&.org\fP, appearing as a defined mail address in, e\&.g\&., \fI/etc/mail/aliases\fP\&. The address for this example would be entered in the \fI/etc/mail/aliases\fP file (some installations use \fI/etc/aliases\fP) in this way: .nf secmail: \(dq\&|sudo \-u secmail /usr/sbin/gpg\-remailer\(dq\& .fi .PP .SH "THE PSEUDO USER\(cq\&S PGP KEY RINGS" .PP .IP o The functional account must be provided with a GPG/PGP keypair\&. Its public key must be distributed over the people who are allowed to send mail to the gpg\-remailer (which may be the world if the public key is published at a PGP key server)\&. Since the gpg\-remailer must be able to act on its own, the secret key must not require a passphrase\&. The key can be created as follows (after the initial command, which is specified by \fIroot\fP, the remaining commands through the final \fIexit\fP command at the end of this section are executed by the pseudo\-user \fIsecmail\fP): .nf su \- secmail gpg \-\-gen\-key .fi At the \fIgpg \-\-gen\-key\fP command the \fIgpg\fP program asks for some details\&. Accept the defaults unless you have reason not to, but make sure you do not require a pass\-phrase: press \fIEnter\fP twice when asked for one\&. .PP \fBSome additional suggestions:\fP .PP .IP o Details for defining a PGP key without password: .IP define default RSA key, size 2048, never to expire .br real name: secmail gpg\-remailer functional account .br email address: secmail@mailhost\&.org .br No passphrase required: press Enter twice\&. .br .IP .IP o Specify the key\-id of the just created gpg\-key as the default key in the file \fI~/\&.gnupg/gpg\&.conf\fP (or \fI~/\&.gnupg/options\fP, whichever is used)\&. E\&.g\&., .nf default\-key 1234ABCD .fi .IP .IP o Also add a line containing .nf force\-mdc .fi to \fI~/\&.gnupg/gpg\&.conf\fP\&. This prevents the warning .nf WARNING: message was not integrity protected .fi .IP .IP o If you want to allow non\-group members to send e\-mail to the gpg\-remailer consider adding a key server specification to \fI~/\&.gnupg/gpg\&.conf\fP as well, to allow the automatic retrieval of missing public keys\&. E\&.g\&., add a line like .nf keyserver keys\&.gnupg\&.net .fi to \fI~/\&.gnupg/gpg\&.conf\fP\&. .IP .IP o Next use \fIgpg \-\-search\-keys\fP, \fIgpg \-\-recv\-keys\fP or \fIgpg \-\-import\fP (see the \fBgpg\fP(1) man\-page for the required formats of these commands) to already add the public keys of all the members of the group who will be using gpg\-remailer to the pseudo user\(cq\&s public key ring\&. .IP .IP o If a group member exists who has signed the GPG/PGP keys of all other members, then consider to trust this member fully, to prevent warnings resulting from using untrusted keys\&. .IP .IP o Once the gpg\-remailer\(cq\&s GPG key pair has been created, provide the remailer\(cq\&s public key to the members of the group\&. These members should import the public key and they should be advised to sign the remailer\(cq\&s public key to prevent warnings about using an unverified public key\&. The remailer\(cq\&s public key can be be exported to file using .nf gpg \-\-armor \-\-export secmail > secmail\&.pub .fi and the members of the group can import the remailer\(cq\&s public key using: .nf gpg \-\-import secmail\&.pub .fi .IP .IP o When a new member is added to the group he/she should add the remailer\(cq\&s public key to his/her public key ring and provide his/her public key for import into the functional account\(cq\&s public key ring\&. .IP .IP o Gpg\-remailer requires the existence of a configuration file and of a directory to store its temporary files in\&. See the section \fBCONFIGURATION FILE\fP below\&. .IP .IP o Having prepared the pseudo user\(cq\&s PGP key rings, the command \fIexit\fP takes you back to the \fIroot\fP user\(cq\&s session\&. .PP .SH "OPTIONS" .PP If available, single letter options are listed between parentheses following their associated long\-option variants\&. Single letter options require arguments if their associated long options require arguments as well\&. .IP .IP o \fB\-\-debug\fP (\fB\-d\fP) .br When specified, debug messages are logged to the log\-file (see below)\&. When this option is specified the files written by gpg\-remailer are not removed after gpg\-remailer has processed an incoming e\-mail\&. .IP .IP o \fB\-\-help\fP (\fB\-h\fP) .br A short summary of the usage is displayed to the standard output after which gpg\-remailer terminates\&. .IP .IP o \fB\-\-logfile\fP=\fIfilename\fP (\fB\-l\fP) .br Specifies the file on which gpg\-remailer\(cq\&s log messages are written (by default \fI~/etc/gpg\-remailer\&.log\fP)\&. .IP .IP o \fB\-\-loglevel\fP=\fIlevel\fP (\fB\-L\fP) .br LogLevel 0 provides extensive debug output as well as all other logmessages; .br LogLevel 1 logs the executed commands and the default messages; .br LogLevel 2 logs the default messages (characteristics of incoming and outgoing e\-mail) (default); .br Higher levels will suppress logging\&. .IP .IP o \fB\-\-member\fP=\fIPGP e\-mail address\fP (\fB\-m\fP) .br The PGP\-key e\-mail address to re\-encrypt the message for\&. Overrides the member(s) listed in the configuration file\&. This option may be specified multiple times when multiple members must be specified on the command line\&. With each \fI\-\-member\fP option only provide one e\-mail address (e\&.g\&., \fImember@domain\&.iso\fP\&. This format is not checked by \fBgpg\-remailer\fP, but a failure to comply may result in \fBgpg\-remailer\fP being unable to re\-encrypt or e\-mail messages\&. The \fI\-\-member\fP specifications can also be used to specify a set of e\-mail envelope addresses from where clear\-text e\-mail is accepted, using the \fIenvelope: members\fP and \fIclear\-text: envelope\fP configuration file specifications\&. .IP .IP o \fB\-\-noMail\fP .br When specified no mail is sent\&. .IP .IP o \fB\-\-nr\fP=\fIfile\-number\fP (\fB\-n\fP) .br Files created by the gpg\-remailer while processing incoming e\-mails are kept, and receive suffix \fIfile\-number\fP, which should be a number\&. .IP .IP o \fB\-\-recipient\fP=\fIe\-mail address\fP (\fB\-r\fP) .br The recipient address(es) of the (re\-encrypted or plain) resent e\-mail\&. Overrides the recipient(s) listed in the configuration file\&. As with the \fI\-\-members\fP option, multiple recipients may be specified by providing multiple \fI\-\-recipient\fP options\&. These addresses may or may not be unique\&. If multiple identical addresses are specified gpg\-remailer will send e\-mail to each of these multiply specified addresses\&. .IP Each \fI\-\-recipient\fP option should normally only define one plain e\-mail address (e\&.g\&., \fIrecipient@domain\&.iso\fP, but multiple \fI\-\-recipient\fP options are also accepted\&. The format of the e\-mail addresses is not checked by \fBgpg\-remailer\fP, but providing any information in addition to or differing from a plain e\-mail address may result in \fBgpg\-remailer\fP being unable to re\-encrypt or resend e\-mail messages\&. .IP In addition to plain e\-mail addresses, the specification \fI\-\-recipient members\fP can be used to indicate that the re\-encrypted mail must be sent to all e\-mail addresses specified using \fImember\fP specifications\&. .IP .IP o \fB\-\-step\fP=\fIname\fP .br Perform the indicated step of the remailing process\&. Step names are: .br .IP \fIhdrs\fP (write the mail headers), .br \fIorg\fP (write the mail data), .br \fIdec\fP (only for PGP encrypted e\-mail: write the decrypted info), .br \fIdoc\fP (only for PGP encrypted e\-mail: create the info to send), .br \fIenc\fP (only for PGP encrypted e\-mail: encrypt the info to send), .br \fIclearmail\fP (send clear\-text mail), .br \fIclearmail:address\fP (send mail only to the provided address, ignore recipient(s) specified otherwise)\&. \fIpgpmail\fP (send pgp\-encrypted mail), .br \fIpgpmail:address\fP (send pgp\-encrypted mail only to the provided address, ignore recipient(s) specified otherwise)\&. .br .IP Step \fIhdrs\fP is completely optional\&. Later steps depend on earlier steps\&. E\&.g\&., \fI\-\-step doc\fP can only be requested after having specified \fI\-\-step dec\fP in a previous run\&. .IP With clear\-text e\-mail steps \fIdec, doc, enc\fP and \fIpgpmail\fP should not be provided\&. .IP With PGP encrypted mail step \fIclearmail\fP should not be provided\&. .IP .IP o \fB\-\-tmp\fP=\fIpath\fP (\fB\-t\fP) .br The path of the directory where the temporary files are written (by default: \fI$HOME/tmp\fP)\&. This should be an absolute path\&. .IP .IP o \fB\-\-umask\fP=\fIoctalValue\fP .br By default, gpg\-remailer uses umask 077 for all files it creates: only the pseudo\-user has read and write permissions\&. In normal circumstances there should be no reason for changing this umask value, but if necessary the \fI\-\-umask\fP option can be used, providing an octal value, to specify an alternative umask value\&. .IP .IP o \fB\-\-version\fP (\fB\-v\fP) .br Gpg\-remailer\(cq\&s version number is is written to the standard output stream after which gpg\-remailer terminates\&. .IP .IP o \fB\-\-x\-headers\fP (\fB\-x\fP) .br Add `X\-GPG\-remailer\-from\(cq\& and `X\-GPG\-remailer\-From\(cq\& headers containing, respectively, the original sender\(cq\&s From and From: headers, as well as (in `X\-GPG\-remailer\-envelope\(cq\& headers) all headers containing `envelope\(cq\& to the distributed e\-mail\&. ) .IP .SH "CONFGURATION FILE" .IP The default configuration file is \fI~/etc/gpg\-remailer\&.rc\fP under the pseudo user\(cq\&s home directory\&. Its path may be altered using a program option\&. .IP Empty lines are ignored\&. Information at and beyond \fI#\fP\-characters is interpreted as comment and is ignored as well\&. .IP All directives in the configuration file obey the pattern .nf directive: value .fi .IP A line may at most contain one directive, but white space (including comment at the end of the line) is OK\&. Several directives may be specified multiple times; otherwise the first occurrence of a directive is used\&. All directives are interpreted \fIcase insensitively\fP, but their values are used as specified\&. E\&.g\&., \fIDeBUG: true\fP is as good as \fIdebug: true\fP, but \fIdebug: TRUE\fP is not recognized\&. Non\-empty lines not starting with a recognized directive are silently ignored\&. .IP The following directives are supported (default values are shown between parentheses; when none is specified there is no default)\&. When equivalent command line options are used then they overrule the configuration file specifications\&. .IP .IP o \fBdebug:\fP \fIlogic\fP (false) .br When \fIlogic\fP is specified as \fItrue\fP debug messages will be logged to the log\-file (see below)\&. Command line options: \fI\-\-debug, \-d\fP\&. When this option is specified the files written by gpg\-remailer will not be removed when gpg\-remailer terminates\&. .IP .IP o \fBclear\-text:\fP \fIspecification\fP (rejected) .br By default, the gpg\-remailer does not accept clear\-text e\-mail\&. This can explicitly be indicated in the configuration file using the .IP \fIclear\-text: rejected\fP .IP specification\&. If clear\-text e\-mail should be allowed specify .IP \fIclear\-text: accepted\fP .IP It is also possible to specify the envelope addresses that are accepted for received clear\-text e\-mail\&. If this is required, specify .IP \fIclear\-text: envelope\fP .IP and define the accepted envelope e\-mail addresses using the \fIenvelope:\fP configuration option\&. .IP .IP o \fBenvelope:\fP \fIe\-mail address\fP .br The \fIenvelope\fP specifications are only interpreted when \fIclear\-text: envelope\fP has been specified\&. When \fIclear\-text: envelope\fP was specified only clear\-text e\-mail using one of the configured \fIenvelope\fP addresses will be re\-mailed to the configured recipients\&. The special envelope specification .IP \fIenvelope: members\fP .IP may be used to indicate that envelope addresses which are equal to the addresses specified using \fImember\fP specifications are all accepted\&. .IP All envelope addresses are interpreted case\-insensitively\&. By default (if no \fIenvelope\fP specification has been provided) all envelope addresses are accepted, in which case the specification \fIclear\-text: envelope\fP reduces to \fIclear\-text: accepted\fP\&. .IP .IP o \fBkeepFiles:\fP \fInr\fP .br When a number is specified all files written by gpg\-remailer use the specified number and are not removed when gpg\-remailer terminates\&. When this option is not specified the files receive a random numeric extension resulting in the creation of new, as yet non\-existing \fI*\&.\fP files\&. .IP .IP o \fBlogfile:\fP \fIfilename\fP (etc/gpg\-remailer\&.log) .br The file on which gpg\-remailer\(cq\&s log messages are written\&. .IP .IP o \fBloglevel:\fP \fIvalue\fP (2) .br LogLevel 0 provides extensive debug output as well as all other logmessages; .br LogLevel 1 logs the executed commands and the default messages; .br LogLevel 2 logs the default messages (characteristics of incoming and outgoing e\-mail); .br With higher levels logging is suppressed\&. .IP .IP o \fBmember:\fP \fIaddress\fP .br Multiple members may be specified\&. Each \fImember\fP specification specifies a PGP\-key e\-mail address to re\-encrypt the message for\&. The addresses should be plain e\-mail addresses (e\&.g\&., \fImember@domain\&.iso\fP), and should not contain other elements (like the name of the person using the address)\&. This format is not checked by \fBgpg\-remailer\fP, but a failure to comply may result in \fBgpg\-remailer\fP being unable to re\-encrypt or e\-mail messages\&. The \fImember\fP specifications can also be used to specify a set of e\-mail envelope addresses from where clear\-text e\-mail is accepted, using the \fIenvelope: members\fP and \fIclear\-text: envelope\fP specifications\&. .IP .IP o \fBnoMail:\fP \fIlogic\fP (false) .br When specified as \fItrue\fP no mail is sent\&. .IP .IP o \fBrecipient:\fP \fIe\-mail address\fP .br The recipient address(es) of the (re\-encrypted or plain) resent e\-mail\&. Multiple recipients may be specified\&. These addresses may or may not be unique\&. If multiple identical addresses are specified gpg\-remailer will send e\-mail to each of these multiply specified addresses\&. Recipients should be specified using plain e\-mail addresses (e\&.g\&., \fIdestination@some\&.host\&.org\fP)\&. The re\-encrypted mail is sent to each recipient in turn\&. The specification .IP \fIrecipient: members\fP .IP can be used to indicate that the re\-encrypted mail must be sent to all e\-mail addresses specified using \fImember\fP specifications\&. .IP .IP o \fBreplyTo:\fP \fIfull address\fP .br The reply to address may be any e\-mail reply\-to address\&. The reply\-to becomes the default reply address for the recipient receiving gpg\-remailer\(cq\&s e\-mail message\&. Quotes and double quotes are removed from the reply to address\&. A reply\-to specification could be, e\&.g\&., .nf SECMAIL signed AND encrypted .fi This specification should be according to the requirements defined in RFC 822: \fIStandard for ARPA Internet Text Messages\fP\&. Failing to comply with RFC 822 may result in the e\-mail sending program rejecting the e\-mail that is submitted by the gpg\-remailer\&. .IP .IP o \fBsignature:\fP \fIrequirement\fP (required) .br This option is used to control signature checking\&. Recognized values are: .br \fInone\fP (or not specified): no signature checking is performed; .br \fIrequired\fP: a PGP signature must have been provided; .br \fIgood\fP: the PGP signature must be recognized as a a `good signature\(cq\&\&. .IP .IP o \fBtmp\fP \fIdirectory\fP (tmp/) .br The directory into which gpg\-remailer writes its temporary files\&. ) .IP .SH "FORMATS" .IP Although using PGP/GPG in e\-mail is established technology, various formats of the e\-mail are possible\&. Currently gpg\-remailer recognizes the following formats: .IP o Simple encrypted messages, consisting of an encrypted e\-mail body; .IP o Multi\-part encrypted messages; .IP o Encrypted messages containing detached signatures\&. .IP Below a description is given of the actual contents of PGP encrypted en decrypted files\&. .IP All PGP encrypted e\-mail shows the following headers (the boundary values will differ over different e\-mail messages): .nf Content\-Type: multipart/encrypted; protocol=\(dq\&application/pgp\-encrypted\(dq\&; boundary=\(dq\&+QahgC5+KEYLbs62\(dq\& Content\-Disposition: inline .fi All PGP encrypted e\-mail shows the following organization (the lines are used to separate the e\-mail organization from the text of this man\-page and are not actually present in the e\-mail or in the decrypted information; empty lines, where shown, are required): .nf \-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\- mail headers \-\-+QahgC5+KEYLbs62 Content\-Type: application/pgp\-encrypted Content\-Disposition: attachment Version: 1 \-\-+QahgC5+KEYLbs62 Content\-Type: application/octet\-stream Content\-Disposition: inline; filename=\(dq\&msg\&.asc\(dq\& \-\-\-\-\-BEGIN PGP MESSAGE\-\-\-\-\- \&.\&.\&. \-\-\-\-\-END PGP MESSAGE\-\-\-\-\- \-\-+QahgC5+KEYLbs62\-\- \-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\- .fi Note that boundaries consist of .IP o a new line character .IP o two dashes followed by the boundary text .IP o the last boundary is followed by two dashes .IP o a new line character .IP The various PGP encrypted e\-mail formats differ in the way they organize the decrypted information\&. .IP \fBSimple Encrypted Messages\&.\fP .IP During decryption the signature is verified, and the result of the verification is written to the standard error stream\&. The decrypted message itself contains but one message, organized as follows: .nf \-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\- Content\-Type: text/plain; charset=us\-ascii Content\-Disposition: inline Content\-Transfer\-Encoding: quoted\-printable decrypted text of the message \-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\- .fi .IP \fBMulti\-part Encrypted Messages\&.\fP .IP During decryption the signature is verified, and the result of the verification is written to the standard error stream\&. The decrypted message itself contains multiple messages, organized as follows: .nf \-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\- Content\-Type: multipart/mixed; boundary=\(dq\&f+W+jCU1fRNres8c\(dq\& Content\-Disposition: inline \-\-f+W+jCU1fRNres8c Content\-Type: text/plain; charset=us\-ascii Content\-Disposition: inline Content\-Transfer\-Encoding: quoted\-printable Text of the first attachment \-\-f+W+jCU1fRNres8c Content\-Type: application/pdf Content\-Disposition: attachment; filename=\(dq\&attachment\&.pdf\(dq\& Content\-Transfer\-Encoding: base64 text of the attachment\&.pdf in base64 encoding \-\-f+W+jCU1fRNres8c\-\- \-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\- .fi Multiple attachments might follow in the same way\&. .IP \fBEncrypted Messages Containing Detached Signatures\&.\fP .IP During decryption the signature is \fInot\fP verified (but the recipient(s) is (are) shown) and the decrypted file is organized as follows: .nf \-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\- Content\-Type: multipart/signed; micalg=pgp\-sha1; protocol=\(dq\&application/pgp\-signature\(dq\&; boundary=\(dq\&=\-TNwuMvq+TfajHhvqBuO7\(dq\& \-\-=\-TNwuMvq+TfajHhvqBuO7 Content\-Type: text/plain Content\-Transfer\-Encoding: quoted\-printable Text of the message \-\-=\-TNwuMvq+TfajHhvqBuO7 Content\-Type: application/pgp\-signature; name=signature\&.asc Content\-Description: This is a digitally signed message part \-\-\-\-\-BEGIN PGP SIGNATURE\-\-\-\-\- \&.\&.\&. signature text \-\-\-\-\-END PGP SIGNATURE\-\-\-\-\- \-\-=\-TNwuMvq+TfajHhvqBuO7\-\- \-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\- .fi The last part represents the detached signature, The contents section must be separated from the decrypted file (named, e\&.g\&., \fIdecrypted\fP) (creating, e\&.g\&., the file \fIcontents\fP)\&. That latter file\(cq\&s signature may then be verified using the command .nf gpg \-\-verify decrypted contents .fi resulting in the signature verification written to the standard error (as usual)\&. The contents start immediately following the first boundary, and continues up to, but not including, the new line just before the next boundary\&. .PP .SH "FILES" Default locations are shown\&. Configuration options may change these locations\&. .IP o \fI/etc/mail/aliases\fP: defines the mail accounts used by gpg\-remailer\&. .IP o \fIetc/gpg\-remailer\&.rc\fP: gpg\-remailer\(cq\&s configuration file\&. .IP o \fI/etc/sudoers\fP: defines actions executed by the MTA\&. .IP .IP o \fItmp/decrypted\&.\fP: the decrypted original text\&. .IP o \fItmp/err\&.\fP: a file containing errors generated when processing the original text\&. The \fItmp/signature\&.\fP may contain gog\-decryption errors\&. .IP o \fItmp/hdrs\&.\fP: the headers of the received e\-mail\&. .IP o \fItmp/mail\&.\fP: the mail sent to the recipient(s)\&. .IP o \fItmp/org\&.\fP: a copy of the received e\-mail\&. When random file numbers are used a \fIorg\&.\fP file will not overwrite an existing \fIorg\&.*\fP file\&. .IP o \fItmp/reencrypt\&.\fP: the (as yet unencrypted) file to return to the the recipient(s)\&. .IP o \fItmp/reencrypted\&.\fP: the reencrypted file to return to the the recipient(s)\&. .IP o \fItmp/signature\&.\fP: the signature found in the original text\&. .PP .SH "SEE ALSO" .PP \fBaddgroup\fP(1), \fBadduser\fP(1), \fBchmod\fP(1), \fBchown\fP(1), \fBgpg\fP(1), \fBsudo\fP(1), \fBumask\fP(1), .PP .SH "BUGS" .PP None reported .PP .SH "AUTHOR" .PP Frank B\&. Brokken (f\&.b\&.brokken@rug\&.nl)\&.