Topic: DKIM error on missing config
==== 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.
====
Hello,
INFO:
iRedMail 1.2.1
iRedAdmin-Pro 4.3 (MySQL)
CentOS Linux release 7.8.2003 (Core)
mysql Ver 15.1 Distrib 5.5.65-MariaDB, for Linux (x86_64) using readline 5.1
PROBLEM:
Getting error on DKIM for missing amavisd.conf -- error line 2216
Example:
amavisd testkeys
Config file "/etc/amavisd.conf" does not exist, at /sbin/amavisd line 2216.
So using:
amavisd -c /etc/amavisd/amavisd.conf testkeys
TESTING#1 domain_name.tld: dkim._domainkey.domain_name.tld => invalid (public key: not available)
Similar to these:
https://forum.iredmail.org/topic16265-a … found.html
https://forum.iredmail.org/topic2570-ir … wkeys.html
https://forum.iredmail.org/topic15391-a … tkeys.html
Reference these:
https://docs.iredmail.org/setup.dns.html#dkim
https://www.amavis.org/amavisd-new-docs.html#dkim
Have not tried creating a sym link as of yet.
What is the causing the test to fail (e.g. invalid public key)?
I'm under the impression that the DKIM key hostname does NOT have to be the FQDN but one does have to add the DNS entry into the correct domain. Can you confirm that the DKIM key creating during install does NOT have to match the FQDN?
Checking the command rpm -ql amavisd-new below.
Seeing more than one amavisd.conf and amavisd-new.conf.
How would one know which config file is being used?
How would one know which repository was used for amavisd-new?
This install is from the Bash installer downloaded with the EPEL repository enabled on a Digital Ocean VPS.
Thank you.
Results from: rpm -ql amavisd-new
/etc/amavisd
/etc/amavisd/amavisd.conf
/etc/clamd.d
/etc/clamd.d/amavisd.conf
/usr/bin/amavisd-agent
/usr/bin/amavisd-nanny
/usr/bin/amavisd-release
/usr/bin/amavisd-signer
/usr/bin/amavisd-submit
/usr/lib/systemd/system/amavisd-clean-quarantine.service
/usr/lib/systemd/system/amavisd-clean-quarantine.timer
/usr/lib/systemd/system/amavisd-clean-tmp.service
/usr/lib/systemd/system/amavisd-clean-tmp.timer
/usr/lib/systemd/system/amavisd.service
/usr/lib/tmpfiles.d/amavisd-new.conf
/usr/sbin/amavisd
/usr/share/doc/amavisd-new-2.11.1
/usr/share/doc/amavisd-new-2.11.1/AAAREADME.first
/usr/share/doc/amavisd-new-2.11.1/INSTALL
/usr/share/doc/amavisd-new-2.11.1/LDAP.ldif
/usr/share/doc/amavisd-new-2.11.1/LDAP.schema
/usr/share/doc/amavisd-new-2.11.1/README_FILES
/usr/share/doc/amavisd-new-2.11.1/README_FILES/README.banned
/usr/share/doc/amavisd-new-2.11.1/README_FILES/README.chroot
/usr/share/doc/amavisd-new-2.11.1/README_FILES/README.contributed
/usr/share/doc/amavisd-new-2.11.1/README_FILES/README.courier
/usr/share/doc/amavisd-new-2.11.1/README_FILES/README.courier-old
/usr/share/doc/amavisd-new-2.11.1/README_FILES/README.customize
/usr/share/doc/amavisd-new-2.11.1/README_FILES/README.exim_v3
/usr/share/doc/amavisd-new-2.11.1/README_FILES/README.exim_v3_app
/usr/share/doc/amavisd-new-2.11.1/README_FILES/README.exim_v4
/usr/share/doc/amavisd-new-2.11.1/README_FILES/README.exim_v4_app
/usr/share/doc/amavisd-new-2.11.1/README_FILES/README.exim_v4_app2
/usr/share/doc/amavisd-new-2.11.1/README_FILES/README.fedora
/usr/share/doc/amavisd-new-2.11.1/README_FILES/README.ldap
/usr/share/doc/amavisd-new-2.11.1/README_FILES/README.lookups
/usr/share/doc/amavisd-new-2.11.1/README_FILES/README.milter
/usr/share/doc/amavisd-new-2.11.1/README_FILES/README.old.scanners
/usr/share/doc/amavisd-new-2.11.1/README_FILES/README.performance
/usr/share/doc/amavisd-new-2.11.1/README_FILES/README.policy-on-notifications
/usr/share/doc/amavisd-new-2.11.1/README_FILES/README.postfix
/usr/share/doc/amavisd-new-2.11.1/README_FILES/README.postfix.html
/usr/share/doc/amavisd-new-2.11.1/README_FILES/README.protocol
/usr/share/doc/amavisd-new-2.11.1/README_FILES/README.quarantine
/usr/share/doc/amavisd-new-2.11.1/README_FILES/README.sendmail
/usr/share/doc/amavisd-new-2.11.1/README_FILES/README.sendmail-dual
/usr/share/doc/amavisd-new-2.11.1/README_FILES/README.sendmail-dual.old
/usr/share/doc/amavisd-new-2.11.1/README_FILES/README.sql
/usr/share/doc/amavisd-new-2.11.1/README_FILES/README.sql-mysql
/usr/share/doc/amavisd-new-2.11.1/README_FILES/README.sql-pg
/usr/share/doc/amavisd-new-2.11.1/README_FILES/amavisd-new-docs.html
/usr/share/doc/amavisd-new-2.11.1/README_FILES/images
/usr/share/doc/amavisd-new-2.11.1/README_FILES/images/blank.png
/usr/share/doc/amavisd-new-2.11.1/README_FILES/images/callouts
/usr/share/doc/amavisd-new-2.11.1/README_FILES/images/callouts/1.png
/usr/share/doc/amavisd-new-2.11.1/README_FILES/images/callouts/10.png
/usr/share/doc/amavisd-new-2.11.1/README_FILES/images/callouts/11.png
/usr/share/doc/amavisd-new-2.11.1/README_FILES/images/callouts/12.png
/usr/share/doc/amavisd-new-2.11.1/README_FILES/images/callouts/13.png
/usr/share/doc/amavisd-new-2.11.1/README_FILES/images/callouts/14.png
/usr/share/doc/amavisd-new-2.11.1/README_FILES/images/callouts/15.png
/usr/share/doc/amavisd-new-2.11.1/README_FILES/images/callouts/2.png
/usr/share/doc/amavisd-new-2.11.1/README_FILES/images/callouts/3.png
/usr/share/doc/amavisd-new-2.11.1/README_FILES/images/callouts/4.png
/usr/share/doc/amavisd-new-2.11.1/README_FILES/images/callouts/5.png
/usr/share/doc/amavisd-new-2.11.1/README_FILES/images/callouts/6.png
/usr/share/doc/amavisd-new-2.11.1/README_FILES/images/callouts/7.png
/usr/share/doc/amavisd-new-2.11.1/README_FILES/images/callouts/8.png
/usr/share/doc/amavisd-new-2.11.1/README_FILES/images/callouts/9.png
/usr/share/doc/amavisd-new-2.11.1/README_FILES/images/caution.png
/usr/share/doc/amavisd-new-2.11.1/README_FILES/images/draft.png
/usr/share/doc/amavisd-new-2.11.1/README_FILES/images/home.png
/usr/share/doc/amavisd-new-2.11.1/README_FILES/images/important.png
/usr/share/doc/amavisd-new-2.11.1/README_FILES/images/next.png
/usr/share/doc/amavisd-new-2.11.1/README_FILES/images/note.png
/usr/share/doc/amavisd-new-2.11.1/README_FILES/images/prev.png
/usr/share/doc/amavisd-new-2.11.1/README_FILES/images/tip.png
/usr/share/doc/amavisd-new-2.11.1/README_FILES/images/toc-blank.png
/usr/share/doc/amavisd-new-2.11.1/README_FILES/images/toc-minus.png
/usr/share/doc/amavisd-new-2.11.1/README_FILES/images/toc-plus.png
/usr/share/doc/amavisd-new-2.11.1/README_FILES/images/up.png
/usr/share/doc/amavisd-new-2.11.1/README_FILES/images/warning.png
/usr/share/doc/amavisd-new-2.11.1/README_FILES/screen.css
/usr/share/doc/amavisd-new-2.11.1/RELEASE_NOTES
/usr/share/doc/amavisd-new-2.11.1/TODO
/usr/share/doc/amavisd-new-2.11.1/amavisd-custom.conf
/usr/share/doc/amavisd-new-2.11.1/amavisd.conf-default
/usr/share/doc/amavisd-new-2.11.1/test-messages
/usr/share/doc/amavisd-new-2.11.1/test-messages/README
/usr/share/doc/amavisd-new-2.11.1/test-messages/sample.tar.gz.compl
/usr/share/licenses/amavisd-new-2.11.1
/usr/share/licenses/amavisd-new-2.11.1/LICENSE
/var/run/amavisd
/var/run/clamd.amavisd
/var/spool/amavisd
/var/spool/amavisd/db
/var/spool/amavisd/quarantine
/var/spool/amavisd/tmp
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.