root@mail:~# /opt/admin_scripts/make_dkim_keys.bash illegal number of parameters /opt/admin_scripts/make_dkim_keys.bash root@mail:~# /opt/admin_scripts/make_dkim_keys.bash alocean.com Generating RSA private key, 1024 bit long modulus ................................................................................++++++ ................++++++ e is 65537 (0x10001) writing RSA key ================================================================================ -> New DNS DKIM for alocean.com. Selector is : 201511301053 PRIVATE key path : /etc/dkim/dkim_private_201511301053._domainkey.alocean.com.pem.key /etc/dkim/alocean.com.201511301053.key PUBLIC key path : /etc/dkim/dkim_public_201511301053._domainkey.alocean.com.pem.key -> DNS entries to add: DKIM : 201511301053._domainkey IN 1800 TXT "v=DKIM1; k=rsa; p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDe9mpx9bG904HdYt1s74jV/kqGKp5XP3PhX2cB+so89SHCgFw9Wu1mJBBIdDB2mi46DCgrK4MCwZtHYhbegJgdq1X6H1ifZHBjOtprEb8T+vY4ZDPotFkzHtk8TENVhWbbpHY/fsyY/YgFAyQO69NaCKmfrOOCLOpW8aTv/CkMGQIDAQAB" SPF : alocean.com 1800 IN SPF "v=spf1 mx ?all" : alocean.com 1800 IN TXT "v=spf1 mx ?all" DMARC LIGHT : _dmarc 1800 IN TXT "v=DMARC1; p=none; rua=mailto:postmaster@alocean.com; ruf=mailto:postmaster@alocean.com; fo=1; adkim=r; aspf=r; rf=afrf; ri=1800" DMARC REJECT : _dmarc 1800 IN TXT "v=DMARC1; p=reject; rua=mailto:postmaster@alocean.com; ruf=mailto:postmaster@alocean.com; fo=1; adkim=r; aspf=r; rf=afrf; ri=1800" -> rmilter.conf : domain { key = /etc/dkim/alocean.com.201511301053.key; domain = "liberasys.com"; selector = "201511301053"; }; ================================================================================ chown -R _rmilter:_rmilter /etc/dkim chmod 550 /etc/dkim chmod 640 /etc/dkim/* service rmilter stop && sleep 2 && service rmilter start