Code Monkey home page Code Monkey logo

Comments (7)

uakfdotb avatar uakfdotb commented on August 9, 2024

This indicates that the call to gpg is not working properly. You should verify that the keyhome for gpg-mailgate has been set up properly (with read permission), and try running GnuPG.GPGEncryptor manually in Python, e.g.

import GnuPG
gpg = GnuPG.GPGEncryptor('/path/to/keyhome/', '[email protected]', 'UTF-8')
gpg.update("encryption test")
print gpg.encrypt()

from gpg-mailgate.

randogoth avatar randogoth commented on August 9, 2024

it's not working indeed...your script creates no result.

sudo -u gpgmap /usr/bin/gpg --list-keys --homedir=/var/gpg/.gnupg

correctly shows me the keyring with imported keys

from gpg-mailgate.

uakfdotb avatar uakfdotb commented on August 9, 2024

Why does this fail on your machine?

echo 'message' | sudo -u gpgmap /usr/bin/gpg --trust-model always --homedir /var/gpg/.gnupg --batch --yes --pgp7 --no-secmem-warning -a -e -r '[email protected]'

Or, if it works, then that indicates that gpg-mailgate is not able to load /etc/gpg-mailgate.conf.

from gpg-mailgate.

randogoth avatar randogoth commented on August 9, 2024

that works!

-----BEGIN PGP MESSAGE-----
Version: GnuPG v1.4.12 (GNU/Linux)

hQEMA1KT6bwO2LQ8AQf+KAyi9COIp/ya0dxqYaL1y/VJsL/yVCMWKlDjwCXFINS6
JkpM7QDkwtZQnjNPknhlM9+e37eTe0rJziyYd/yqCAr/r3AsaIh7H3tr5iSZOGsq
bbf0ZhbOmc6ZzxmuzFJELlJsPZSTh1pou8VFYkkqB7JF5zgec00rZcfSJkWrPtoH
Dj5Y8bdhHzdUSL9JSDi9JLZ4Da2CmPrbndROttMQ7mZ3qBejl9DcAsxZ4/6HFxhA
eNUWanjHWC7XBhnxwMylWlaZ8hNn+ZymVZ2EmWvZsR1peLopSOmTpySGa32BUsPh
c8J3VruMY98iJr0iBdSlLKNLinkwENMHacX8YxFST9I9AaIm/osXlW10rJbgCfQW
omUJuEFfSGkzsrKbUrH/fTcVr2XdKZ3Qg6ndJ77OlOH7vwnoTHnimT23HsHojQ==
=0kBu
-----END PGP MESSAGE-----

gpg-mailgate also opens the .conf correctly. right now i am only using one address in the keymap section for testing and i only get the error for this one. the others have

X-GPG-Mailgate: Not encrypted, public key not found

in their header like they should

from gpg-mailgate.

uakfdotb avatar uakfdotb commented on August 9, 2024

The installation instructions are missing a step. You need to change this in master.cf:

gpg-mailgate    unix    -   n   n   -   -   pipe
        flags= user=nobody argv=/usr/local/bin/gpg-mailgate.py ${recipient}

to

gpg-mailgate    unix    -       n       n       -       -       pipe
        flags= user=gpgmap argv=/usr/local/bin/gpg-mailgate.py ${recipient}

from gpg-mailgate.

randogoth avatar randogoth commented on August 9, 2024

that was it! thanks a lot for the help!

from gpg-mailgate.

dejj avatar dejj commented on August 9, 2024

I had the same problem. I had my [keymap] entries wrong in gpg-mailgate.conf.
wrong: [email protected] = 1024D/AAAAAAAAAAAAAAAA
correct: [email protected] = AAAAAAAAAAAAAAAA

from gpg-mailgate.

Related Issues (10)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.