1

Topic: invalid (public key: missing p= tag)

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release):
- Deployed with iRedMail Easy or the downloadable installer?
- Linux/BSD distribution name and version:
- Store mail accounts in which backend (LDAP/MySQL/PGSQL):
- Web server (Apache or Nginx):
- Manage mail accounts with iRedAdmin-Pro?
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====
I am running Ubuntu 18.04.2 LTS, iRedMail 0.9.8 MARIADB edition and BIND 9.11.3. Web server is Nginx.

When I do "amavisd-new testkeys" I get "TESTING#1 odysseytours.nz: dkim._domainkey.odysseytours.nz => invalid (public key: missing p= tag)".

The entry in the zone file is:

dkim._domainkey.odysseytours.nz.    IN   TXT    v=DKIM1; p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDGA3y4i13qBKqPKOOxf7pVVdpocAat5krniyXqD/Z5MgJZaxyxuK4QdqY2PsU0pK5BWRlJSUMRYQVbEyPBCFy6ZmnimseQkiYM4u5U3IFaEd4lz/A2nsXKY+yawYEvgOhw5M0rQXPqJXWMTt7AuCUhx5AG6gBKKVnygUOZ0tsxEQIDAQAB

except its all on the same line.

Any help with this would be much appreciated.

----

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

2

Re: invalid (public key: missing p= tag)

Do you have a whitespace after "v=DKIM1;"?

3

Re: invalid (public key: missing p= tag)

I have tried it both with and with out a space after "v=DKIM1;", no change?

4

Re: invalid (public key: missing p= tag)

You may need to check BIND config format/syntax.

5 (edited by Jedi 2019-07-09 15:18:44)

Re: invalid (public key: missing p= tag)

Below is the entire file. named-checkzone says its ok.

$TTL    604800
@               IN              SOA     mail.odysseytours.nz.   info.odysseytours.nz. (
                  12           ; Serial
                  604800 ; Refresh
                  86400 ; Retry
                  2419200 ; Expire
                  604800 ; Negative Cache TTL
        );
@                                         IN            NS           mail.odysseytours.nz.
mail.odysseytours.nz.          IN            A             210.54.90.13
www                                     IN            A             210.54.90.13
odysseytours.nz.                  IN           MX    10   mail.odysseytours.nz.
dkim._domainkey.odysseytours.nz.    IN   TXT    v=DKIM1; p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDGA3y4i13qBKqPKOOxf7pVVdpocAat5krniyXqD/Z5MgJZaxyxuK4QdqY2PsU0pK5BWRlJSUMRYQVbEyPBCFy6ZmnimseQkiYM4u5U3IFaEd4lz/A2nsXKY+yawYEvgOhw5M0rQXPqJXWMTt7AuCUhx5AG6gBKKVnygUOZ0tsxEQIDAQAB

6

Re: invalid (public key: missing p= tag)

A description of the problem and the solution is here.

https://kb.isc.org/docs/aa-00356

7

Re: invalid (public key: missing p= tag)

Thanks for sharing.