1 (edited by sam-the-man 2011-11-04 01:43:06)

Topic: New DKIM key for additional domain?

One question, how do I add another DKIM key for another domain I have added?

I created a new domain and added to iRedMail. dns is working, everything correctly set up. However - I am now wondering how to add new DKIM key for the domain I just added?

I did this: amavisd-new genrsa /var/lib/dkim/mykey.pem

but when I execute: amavisd-new showkeys

I only see one key - the original key that was generated with the domain name I set up iRedMail for. How can I ensure DKIM sees my new key? It's in the right folder. I've tried restarting amavisd-new, but it still was not there.

This is what I see when I run showkeys:

; key#1, domain domain1.com, /var/lib/dkim/domain1.com.pem
dkim._domainkey.domain1.com.    3600 TXT (
  "v=DKIM1; p="
  "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQC4M3+y52SgOxVskiM3bR656StS"
  "7rkMW692o/GoEMLnXnx5TA1zzT4nIMnYLtjQIpleXlvlSuV5OfRedejx5xG8M6Hc"
  "Va7gYvq9Ih1lcRaVNVjFJtsH4ZE5SG3HgetyVnXzkqMIHzFFASae57tjsAsNTQlP"
  "asrG4xxqRsEzN+R8+QIDAQAB")

How can I add second key so it shows up on this list?

2

Re: New DKIM key for additional domain?

Search DKIM in our FAQ page:
http://www.iredmail.org/faq.html

3

Re: New DKIM key for additional domain?

Yessss Zhang, I see this is clear. But I'm unable to find amavis.conf - its not in /etc/amavis. I think has changed with amavisd-new ? New loc of conf file? sad

4

Re: New DKIM key for additional domain?

Which distribution are you running?

- For RHEL/CentOS/Scientific Linux 5.x, it's /etc/amavisd.conf. 6.x is /etc/amavisd/amavisd.conf.
- For Debian/Ubuntu, it's /etc/amavis/conf.d/50-user.
- For openSUSE, it's /etc/amavisd.conf.
- For FreeBSD, it's /usr/local/etc/amavisd.conf.

Please post distribution info, iRedMail version number, and related log in your post, so that you can get quick response.
When you create a new forum topic, there's a template ready for your use.

5

Re: New DKIM key for additional domain?

ZhangHuangbin wrote:

Which distribution are you running?

- For RHEL/CentOS/Scientific Linux 5.x, it's /etc/amavisd.conf. 6.x is /etc/amavisd/amavisd.conf.
- For Debian/Ubuntu, it's /etc/amavis/conf.d/50-user.
- For openSUSE, it's /etc/amavisd.conf.
- For FreeBSD, it's /usr/local/etc/amavisd.conf.

Please post distribution info, iRedMail version number, and related log in your post, so that you can get quick response.
When you create a new forum topic, there's a template ready for your use.

==== Provide basic information to help troubleshoot ====
- iRedMail version: 7 something
- Linux/BSD distribution name and version: debian
- Any related log? Log is helpful for troubleshooting. Yes
====

You are very kind little sweet asian man ty for help.

Itsssssss yyyiiiinnnnnnnnnnnnn