[exim] dkim example request

Pàgina inicial
Delete this message
Reply to this message
Autor: Костырев Александр Алексеевич
Data:  
A: exim-users
Assumpte: [exim] dkim example request
hello!

Can somebody share working example of DKIM checks.

I've googled a lot of these but they seemed to be broken:
all that I got is "temporarily rejected after DATA: cannot test dkim_signers condition in DATA ACL" message (when I send mail from gmail to myself for example).

for example,  config that gives me such error is:
        warn    add_header      = X-DKIM-Status: $dkim_verify_status [($dkim_cur_signer) - $sender_host_address]
                sender_domains  = $sender_address_domain:$dkim_signers
                dkim_signers    = $sender_address_domain:$dkim_signers
                dkim_status     = invalid
                condition       = ${if eq {${lc:$dkim_verify_status}{invalid}{true}{false}}}
                set acl_c_spamscore = ${eval:$acl_c_spamscore+20}
                set acl_c_bouncemessage = $acl_c_bouncemessage DKIM is invalid;


        warn    add_header      = X-DKIM-Status: $dkim_verify_status [($dkim_cur_signer) - $sender_host_address]
                sender_domains  = $sender_address_domain:$dkim_signers
                dkim_signers    = $sender_address_domain:$dkim_signers
                dkim_status     = fail
                condition       = ${if eq {${lc:$dkim_verify_status}{fail}{true}{false}}}
                set acl_c_spamscore = ${eval:$acl_c_spamscore+20}
                set acl_c_bouncemessage = $acl_c_bouncemessage DKIM check failed;


        warn    add_header      = X-DKIM-Status: $dkim_verify_status [($dkim_cur_signer) - $sender_host_address]
                sender_domains  = $sender_address_domain:$dkim_signers
                dkim_signers    = $sender_address_domain:$dkim_signers
                dkim_status     = none
                condition       = ${if eq {${lc:$dkim_verify_status}{none}{true}{false}}}
                set acl_c_spamscore = ${eval:$acl_c_spamscore+20}
                set acl_c_bouncemessage = $acl_c_bouncemessage No DKIM;


        warn    add_header      = X-DKIM-Status: $dkim_verify_status [($dkim_cur_signer) - $sender_host_address]
                sender_domains  = $sender_address_domain:$dkim_signers
                dkim_signers    = $sender_address_domain:$dkim_signers
                dkim_status     = pass
                condition       = ${if eq {${lc:$dkim_verify_status}{pass}{true}{false}}}



what I want to achive is to add some points when dkim is absent or invalid or failed.