Hi!

I am running OpenSMTPD 7.8.0-portable in an Alpine Linux lxc container
(via incus) and use table-sqlite as a backend for virtual, domain and
auth.

I noticed that nearly every time I restart the container, smtpd fails
to start up again cleanly with the following errors in the log:

    mail.info smtpd[752]: info: OpenSMTPD 7.8.0-portable starting
    mail.crit smtpd[762]: lookup: table-proc: getline: Connection reset by peer
    mail.err smtpd[752]: warn: parent -> lka: imsgbuf_read: Connection reset by 
peer
    mail.crit smtpd[752]: smtpd: exiting: Connection reset by peer

Restarting smtpd does not fix the issue. The only workaround I found is
running table-sqlite manually once with the below command, stopping it
with Ctrl+C and then restarting smtpd.

    /usr/lib/opensmtpd/table-sqlite /etc/smtpd/sqlite.conf

Any idea what might be causing this? It does not happen when restarting
the smtpd OpenRC service with "rc-service smtpd restart".

Any help is appreciated!

Best,
Edin

Reply via email to