The exim list bounced back my message because of inline images (in my signature)... Resending without the images:

Hello,

Its really hard to offer help without seeing the relevant parts of your config file, but this is what I have in mine:

remote_smtp:
  driver = smtp
        #dkim_domain = gingergoat.co.za
        dkim_domain = $sender_address_domain
        dkim_selector = x
        #dkim_private_key = /etc/exim/dkim.private.key
dkim_private_key = ${if exists{/etc/virtual/$sender_address_domain/dkim.private.key}{/etc/virtual/$sender_address_domain/dkim.private.key}{0}}
        dkim_canon = relaxed



NOTES:
1) I was testing initially with a specific domain and private key file which are now commented out so I can handle virtual domains. 2) You say that the location of the key file is correct, but you should make sure that it really is, ie that its a full absolute path. It doesn't seem to work with relative paths. According to the spec the key file is required and if it can't find it it simply skips the signing (no error logged).
3) The key file should also have correct permissions for exim.

That's all I have for you... But that code above works for me. Of course you then also need an appropriate dns record. In my test case above that would be:
x._domainkey.gingergoat.co.za.     TXT    {public_key_here}

Regards,
John McMurray





On 31/01/2016 00:12, Andrey Utkin wrote:
Hi All!
Seems I cannot get DKIM signing.
I seek for evidence of DKIM signature being created but find none.

When I do this locally:
echo TEST-TEST | mail -v -s TEST -S smtp=localhost [email protected]

I get this in verbose log of exim:
https://gist.github.com/andrey-utkin/f96395f7327df32ea93f

The reply from gmail is here:
https://gist.github.com/andrey-utkin/182a1bbd55fbe2092609

It's Ubuntu Wily.
"exim4-daemon-heavy" is installed.
"dpkg-reconfigure exim4-config" was done.
/etc/exim4/conf.d/main/00_dkim was created  with this content:
https://gist.github.com/andrey-utkin/04cd6f821315c8475a29
the location of key file is correct.

Wiki page is useless: https://github.com/Exim/exim/wiki/DKIM

I followed this guide:
https://www.debian-administration.org/article/718/DKIM-signing_outgoing_mail_with_exim4

Any clue?

Thanks for any kind reply.





--
John McMurray   SoftSmart.co.za
Server Administrator | Development Manager


        [email protected]

        

        0110 837 085

        

        www.infobahn.co.za <https://www.infobahn.co.za>

PO Box 612, Plettenberg Bay, 6600

--
## List details at https://lists.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/

Reply via email to