uakfdotb / gpg-mailgate

No longer maintained, please use https://github.com/TheGreatGooo/gpg-mailgate
GNU General Public License v3.0
17 stars 7 forks source link

Problems with database #10

Open ownbay opened 10 years ago

ownbay commented 10 years ago

today I configured gpg-mailgate. No mail is encrypted. I think gpg-mailgate has problems to read the database settings from the gpg-mailgate.conf.

uakfdotb commented 10 years ago

gpg-mailgate.py doesn't bother with the database, it simply reads keys from the keyhome. Keys from the database are added to GPG via the gpg-mailgate-web/cron.py file. Try running cron.py and see if it throws errors regarding the database.

If cron.py works, use this command to see if public keys were added successfully:

sudo -u gpgmap /usr/bin/gpg --list-public-keys --homedir=/var/gpg/.gnupg
ownbay commented 10 years ago

Yes, key is imported. In mail.log I see: relay=gpg-mailgate, delay=0.41, delays=0.15/0.01/0/0.25, dsn=2.0.0, status=sent (delivered via gpg-mailgate service)

In the mail header:

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

uakfdotb commented 10 years ago

Does the email address on the public key exactly match the target (delivered-to or something) email address of the email?

ownbay commented 10 years ago

okay, I changed the following:

pg-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}

Now the mails are encrytped

header: X-GPG-Mailgate: Encrypted by GPG Mailgate

But I can't see any messagetext

uakfdotb commented 10 years ago

View the email source (view source in thunderbird, show original in gmail) and see if there are issues. Make sure your email client is configured to view the plaintext.

ownbay commented 10 years ago

I found no issues in the mail source. but there is no message text.

uakfdotb commented 10 years ago

So even in mail source there is no message text?

ownbay commented 10 years ago

no message text in the source