{
    "content": [
        {
            "type": "text",
            "text": "# gpgmailtunl (man)\n\n## NAME\n\ngpgmailtunl - Encrypts an email message into the body of another email.\n\n## SYNOPSIS\n\ngpgmailtunl [options] --encrypt | --decrypt\n\n## DESCRIPTION\n\ngpgmailtunl is a filter program that either encrypts an email message using the Gnu Privacy\nGuard and sends it to another recipient or decrypt an email message and forwards unencrypted\nto another destination.\n\n## Sections\n\n- **NAME**\n- **SYNOPSIS**\n- **DESCRIPTION**\n- **TYPICAL USAGE**\n- **ENCRYPTION**\n- **DECRYPTION**\n- **AUTHOR**\n- **COPYRIGHT**\n- **SEE ALSO**\n\nUse structuredContent.sections for detailed options, examples, and full documentation.\n"
        }
    ],
    "structuredContent": {
        "command": "gpgmailtunl",
        "section": "",
        "mode": "man",
        "summary": "gpgmailtunl - Encrypts an email message into the body of another email.",
        "synopsis": "gpgmailtunl [options] --encrypt | --decrypt",
        "tldr_summary": null,
        "tldr_examples": [],
        "tldr_source": null,
        "flags": [],
        "examples": [],
        "see_also": [
            {
                "name": "gpg",
                "section": "1",
                "url": "https://www.chedong.com/phpMan.php/man/gpg/1/json"
            },
            {
                "name": "GnuPG",
                "section": "3",
                "url": "https://www.chedong.com/phpMan.php/man/GnuPG/3/json"
            }
        ],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 6,
                "subsections": []
            },
            {
                "name": "TYPICAL USAGE",
                "lines": 4,
                "subsections": []
            },
            {
                "name": "ENCRYPTION",
                "lines": 35,
                "subsections": []
            },
            {
                "name": "DECRYPTION",
                "lines": 13,
                "subsections": []
            },
            {
                "name": "AUTHOR",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "COPYRIGHT",
                "lines": 6,
                "subsections": []
            },
            {
                "name": "SEE ALSO",
                "lines": 3,
                "subsections": []
            }
        ],
        "sections": {
            "NAME": {
                "content": "gpgmailtunl - Encrypts an email message into the body of another email.\n",
                "subsections": []
            },
            "SYNOPSIS": {
                "content": "gpgmailtunl [options] --encrypt | --decrypt\n",
                "subsections": []
            },
            "DESCRIPTION": {
                "content": "gpgmailtunl is a filter program that either encrypts an email message using the Gnu Privacy\nGuard and sends it to another recipient or decrypt an email message and forwards unencrypted\nto another destination.\n\nIt can be used to exchange emails across an open network between two trusted systems.\n",
                "subsections": []
            },
            "TYPICAL USAGE": {
                "content": "This program is intended to run from program like procmail or sendmail to create an email\ntunnel between two systems.  Of course this is not as secure as using gpg as an end user\nprogram, it may be convenient in certain case.\n",
                "subsections": []
            },
            "ENCRYPTION": {
                "content": "To encapsulates an email within another you pipe the message to gpgmailtunl.\n\nOPTIONS\nGetOptions( \\%opt, \"encrypt\", \"decrypt\", \"sign\", \"secret-file=s\",          \"from=s\", \"to=s\",\n\"subject=s\", \"homedir=s\", \"local-user=s\",          \"recipient=s\",        )\nor usage;\n\nto  This  is  the  address  to  which  the  encrypted  message will be sent. This is the only\nrequired fields.\n\nrecipient\nThis sets the keyid that will be  used  to  encrypt  the  outgoing  message.   If  unset,\ngpgmailtunl will try to find a key matching the to option.\n\nsubject\nSets the subject of the outgoing message. This defaults to \"Encrypted mail\".\n\nfrom\nSets  the From header line of the outgoing message which will contains the encrypted one.\nsendmail will provides a default one if this is not set.\n\nsign\nIf this option is used, the outgoing message will be signed.  In  this  case  you  should\nprobably use to local-user and secret-file options.\n\nsecret-file\nFile from which the secret to unlock the private used to sign the message can be read.\n\nlocal-user\nThe  keyid  of  the  user that should sign the outgoing message. The default user will be\nused if not specified.\n\nhomedir\nSets an alternate gpg home directory. (This is where the keyrings are stored.)\n",
                "subsections": []
            },
            "DECRYPTION": {
                "content": "To extract an email to be forwarded to the  final  user  you  pipe  the  encrypted  email  to\ngpgmailtunl using the decrypt switch.\n\nOnce decrypted, the encapsulated email message will be sent to the original destinator of the\nmessage.\n\nOPTIONS\nhomedir\nSets an alternate gpg home directory. (This is where the keyrings are stored.)\n\nsecret-file\nFile from which the secret to unlock the private used to decrypt the message can be read.\n",
                "subsections": []
            },
            "AUTHOR": {
                "content": "Francis J. Lacoste <francis.lacoste@iNsu.COM>\n",
                "subsections": []
            },
            "COPYRIGHT": {
                "content": "Copyright (c) 1999, 2000 iNsu Innovations Inc.\n\nThis  program  is  free software; you can redistribute it and/or modify it under the terms of\nthe GNU General Public License as published by the Free Software Foundation; either version 2\nof the License, or (at your option) any later version.\n",
                "subsections": []
            },
            "SEE ALSO": {
                "content": "gpg(1) gpgmailtunl(1) GnuPG(3)\n\nperl v5.36.0                                 2022-10-13                              GPGMAILTUNL(1p)",
                "subsections": []
            }
        }
    }
}