Probably OT here, but sometimes I get this error (Debian Buster,
original packages):

mail.info: Apr 12 18:01:16 opendkim[13977]: 828FE7F581: s=202103
d=example.com SSL error:0407008A:rsa
routines:RSA_padding_check_PKCS1_type_1:invalid padding; error:
04067072:rsa routines:rsa_ossl_public_decrypt:padding check failed

I noticed that sometimes the DKIM was ok and sometimes it ended up
in the above mentioned error. After some testing I created a loop to
send 2000 mails each second:

for i in $(seq 1 2000) ; do echo -e "this is a test" | \
  mail -s "test ${i}" u...@example.com; sleep 1 ; done

minute 1: the DKIM is OK
minute 2: errors,
minute 3: the DKIM is OK
minute 4: errors,
minute 5: the DKIM is OK
minute 6: errors,
minute 7: the DKIM is OK
minute 8: errors,
etc etc

I have really no idea where to start searching. It is perhaps a opendkim
or an openssl issue. Or maybe some cache somewhere? DNS is ok, TTL of
DKIM record is 3600. Haystack, needle, but I need to find the haystack
first.

Anyone a hint?

R. 

-- 
richard lucassen
http://contact.xaq.nl/

Reply via email to