Am 09.11.2021 um 22:48 schrieb Brenckle, Nicholas M.:
OpenSMTPd running on an OpenBSD7.0 box. Over the last few days I've had the daemon stop and I had to manually restart it. It always has a message similar to this:

Nov 9 15:57:29 prd-smtp01 smtpd[87213]: crypto: ca_imsg: invalid pkey hash
Nov 9 15:57:29 prd-smtp01 smtpd[10097]: dispatcher: pipe closed

Anyone seen similar behavior, or can suggest a remedy?

I didn't have, until now. Somewhat different message though.

$ tail -f /var/log/mail
...
Nov 21 03:59:51 o3 smtpd[20299]: 70b4bbdacb96ef5a smtp connected address=[fe80::20a:cdff:fe38:c433%re0] host=<unknown> Nov 21 03:59:51 o3 smtpd[20299]: 70b4bbdacb96ef5a smtp tls ciphers=TLSv1.3:AEAD-AES256-GCM-SHA384:256 Nov 21 03:59:52 o3 smtpd[20299]: 70b4bbdacb96ef5a smtp authentication user=e_maschine result=ok
Nov 21 03:59:52 o3 smtpd[3838]: envelope: invalid field "sockaddr"
Nov 21 03:59:52 o3 smtpd[3838]: lookup: failed to retrieve envelope
Nov 21 03:59:52 o3 smtpd[32396]: smtpd: process lka socket closed
^C

$ ps | grep smtp
 3716 p0  S+p      0:00.01 grep smtp

# rcctl restart smtpd
smtpd(ok)

# tail -f /var/log/maillog
...
Nov 21 04:03:11 o3 smtpd[12523]: info: OpenSMTPD 7.0.0 starting
Nov 21 04:08:51 o3 smtpd[22281]: 1f9a09f9c083cf2c smtp connected address=[fe80::20a:cdff:fe38:c433%re0] host=<unknown> Nov 21 04:08:51 o3 smtpd[22281]: 1f9a09f894494d3b smtp connected address=[fe80::20a:cdff:fe38:c433%re0] host=<unknown> Nov 21 04:08:51 o3 smtpd[22281]: 1f9a09f9c083cf2c smtp tls ciphers=TLSv1.3:AEAD-AES256-GCM-SHA384:256 Nov 21 04:08:52 o3 smtpd[22281]: 1f9a09f894494d3b smtp tls ciphers=TLSv1.3:AEAD-AES256-GCM-SHA384:256 Nov 21 04:08:52 o3 smtpd[22281]: 1f9a09f9c083cf2c smtp authentication user=e_maschine result=ok Nov 21 04:08:53 o3 smtpd[22281]: 1f9a09f894494d3b smtp authentication user=e_maschine result=ok
Nov 21 04:08:53 o3 smtpd[68213]: envelope: invalid field "sockaddr"
Nov 21 04:08:53 o3 smtpd[68213]: lookup: failed to retrieve envelope
Nov 21 04:08:53 o3 smtpd[54145]: smtpd: process lka socket closed
^C

# smtpd -dvvvvvv
...
debug: smtp: will accept at most 499 clients
debug: queue: done loading queue into scheduler
debug: smtpd: scanning offline queue...
debug: smtpd: offline scanning done
d082cb71ac2e975d smtp connected address=[fe80::20a:cdff:fe38:c433%re0] host=<unknown>
debug: dispatcher: rsae_priv_enc
d082cb71ac2e975d smtp tls ciphers=TLSv1.3:AEAD-AES256-GCM-SHA384:256
d082cb720e2bd977 smtp connected address=[fe80::20a:cdff:fe38:c433%re0] host=<unknown>
debug: dispatcher: rsae_priv_enc
d082cb73941ea8c6 smtp connected address=91.65.XXX.XXX host=ipZZZZZ.dynamic.kabel-deutschland.de
d082cb720e2bd977 smtp tls ciphers=TLSv1.3:AEAD-AES256-GCM-SHA384:256
debug: dispatcher: rsae_priv_enc
d082cb73941ea8c6 smtp tls ciphers=TLSv1.3:AEAD-AES256-GCM-SHA384:256
debug: lka: authenticating for passwd:e_maschine
d082cb71ac2e975d smtp authentication user=e_maschine result=ok
debug: lka: authenticating for passwd:e_maschine
debug: smtp: SIZE in MAIL FROM command
debug: lka: authenticating for passwd:e_maschine
debug: lka: mailaddrmap legladr:e_maschine
subrcpt: [[email protected]]
d082cb720e2bd977 smtp authentication user=e_maschine result=ok
d082cb73941ea8c6 smtp authentication user=e_maschine result=ok
subrcpt: [[email protected]]
subrcpt: [@vm1.aloof.local]
debug: smtp: SIZE in MAIL FROM command
debug: lka: mailaddrmap legladr:e_maschine
subrcpt: [[email protected]]
subrcpt: [[email protected]]
subrcpt: [@vm1.aloof.local]
debug: smtp: SIZE in MAIL FROM command
envelope: invalid field "sockaddr"
lookup: failed to retrieve envelope
debug: dispatcher -> lookup: pipe closed
debug: dispatcher agent exiting
debug: ca -> dispatcher: pipe closed
debug: ca agent exiting
debug: parent -> lka: pipe closed
smtpd: process lka socket closed
debug: control -> lookup: pipe closed
debug: control agent exiting
debug: scheduler -> control: pipe closed
debug: scheduler agent exiting
debug: queue -> lookup: pipe closed
debug: queue agent exiting


The sender is a newly installed Debian 11.1 machine with postfix 3.5.6. They (OpenBSD-OpenSMTPD-Server and Debian-Postfix-Client) are on the same LAN. It must have something to do with IPv6. If I deactivate it on the sender machine, the queued mails go through.

Reply via email to