1

Topic: Install fails on gpg key

==== Required information ====
- iRedMail version 0.9.5-1:
-Ubuntu 16.04 server :
- MariaDB:
- Nginx):
- Manage mail accounts with iRedAdmin-Pro?
- Related log if you're reporting an issue:
====
During install
< Question > Continue? [y|N]y
[ INFO ] Add official apt repo for SOGo in /etc/apt/sources.list
[ INFO ] Add SOGo GPG public key into apt keyring.
Executing: /tmp/tmp.u6LCG0Un0F/gpg.1.sh --keyserver
keys.gnupg.net
--recv-key
0x810273C4
gpg: requesting key 810273C4 from hkp server keys.gnupg.net

Server times out then install fails
I can ping the server and reach it via browser.

Tried saving the key to key.txt and import
gpg --import key.txt
gpg: no valid OpenPGP data found.

Is there an alternative approach?

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: Install fails on gpg key

HKP uses 11371 which is probably not allowed out from your network. When I did my install I captured the command and changed keys.gnupg.net to keys.gnupg.net:80 and was able to successfully import the key. With this done I restarted the install script and everything finished properly.

Might not be a bad idea in the future version of iredmail to change the fetching of keys to use port 80 instead of the default port for HKP.

Hope this helps.
-Ron

3

Re: Install fails on gpg key

Do you mean this?

# apt-key adv --keyserver keys.gnupg.net:80 --recv-key 0x810273C4

But i got error:

Executing: /tmp/tmp.erAfZdBZGx/gpg.1.sh --keyserver
keys.gnupg.net:80
--recv-key
0x810273C4
gpg: requesting key 810273C4 from keys.gnupg.net:80
gpgkeys: no keyserver host provided
gpg: keyserver internal error
gpg: keyserver receive failed: keyserver error

4

Re: Install fails on gpg key

Just checked my notes and my previous post was incorrect. Below is the correct line:

apt-key adv --keyserver hkp://keys.gnupg.net:80 --recv-key 0x810273C4

-Ron

5

Re: Install fails on gpg key

rrosson wrote:

Just checked my notes and my previous post was incorrect. Below is the correct line:

apt-key adv --keyserver hkp://keys.gnupg.net:80 --recv-key 0x810273C4

-Ron

After I ran this command before running the main install script, it succeeded.  The install script continued to fail trying to do the same thing, but the iRedMail install succeeded afterwards as the key was in the keyring.

Thanks for this help.

6

Re: Install fails on gpg key

rrosson wrote:

Just checked my notes and my previous post was incorrect. Below is the correct line:
apt-key adv --keyserver hkp://keys.gnupg.net:80 --recv-key 0x810273C4

Updated iRedMail to use hkp://keys.gnupg.net:80 as server. Thanks for the feedback. smile