gpg-mailgate icon indicating copy to clipboard operation
gpg-mailgate copied to clipboard

Problems with database

Open ownbay opened this issue 10 years ago • 8 comments

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.

ownbay avatar Jun 19 '14 17:06 ownbay

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

uakfdotb avatar Jun 19 '14 17:06 uakfdotb

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

ownbay avatar Jun 19 '14 17:06 ownbay

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

uakfdotb avatar Jun 19 '14 17:06 uakfdotb

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

ownbay avatar Jun 19 '14 17:06 ownbay

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.

uakfdotb avatar Jun 19 '14 17:06 uakfdotb

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

ownbay avatar Jun 19 '14 18:06 ownbay

So even in mail source there is no message text?

uakfdotb avatar Jun 19 '14 18:06 uakfdotb

no message text in the source

ownbay avatar Jun 19 '14 18:06 ownbay