I have situation in which OpenSMTPD crashes. I don't know if this is due to
misconfiguration or something else.

I really think we need some more configuration samples on how to integrate
with other known MDA's used on the Internet.

Before integrating stuff with Dovecot I wanted to make things work with
some users have a local account and other users not having a local account,
but having their password in the "vusers-passwd" file. This file I intend
to share with Dovecot.

I am running snapshot.

Please excuse any misconfiguration on my part as I felt the need to locate
bits and pieces on the Internet as to how to get this working.

I have this in smtpd.conf:

<SNIP>
table vdoms             "/etc/smtpd/vdoms"
table vusers             "/etc/smtpd/vusers"
table vuserspasswd  "/etc/smtpd/vusers-passwd"

pki serv1.example.com certificate "/etc/ssl/serv1.example.com.crt"
pki serv1.example.com key "/etc/ssl/private/serv1.example.com.key"

listen on re0 tls-require pki serv1.example.com auth <vuserspasswd>

accept from any for domain <vdoms> virtual <vusers> deliver to maildir
"%{user.directory}/Mail/%{rcpt.domain}/%{rcpt.user}/"
accept from any for any relay
</SNIP>

In /etc/smtpd/vusers-passwd I tried using "smtpctl encrypt" and I have
tried "doveadm pw -s CRAM-MD5 -u foo".

In this case where OpenSMTPD crashes I am using the doveadm example.

<SNIP>
foo:5a84de92f28aa45aff3b78cc27348a71c3500a3677ec94695fac89d44393dd69
</SNIP>

The mail client is claws-mail and it connects using SMARTLS and "Automatic"
on authentication method.

Debugging:

<SNIP>
# smtpd -vdf /etc/smtpd.conf
debug: init ssl-tree
info: loading pki information for serv1.example.com
info: OpenSMTPD 5.4.3 starting
debug: bounce warning after 4h
debug: using "fs" queue backend
debug: using "ramqueue" scheduler backend
debug: using "ram" stat backend
info: startup [debug mode]
debug: queue: done loading queue into scheduler
debug: parent_send_config_ruleset: reloading
debug: parent_send_config: configuring pony process
debug: smtp: listen on IPv6:fe80::223:8bff:fe2b:7b8f%re0 port 25 flags 0x49
pki "serv1.example.com"
debug: smtp: listen on 192.168.60.20 port 25 flags 0x49 pki "
serv1.example.com"
debug: smtp: will accept at most 502 clients
debug: smtpd: scanning offline queue...
debug: smtpd: offline scanning done
debug: smtp: new client on listener: 0x7d0bb000
smtp-in: New session c4bbeb34c522e072 from host 192.168.60.8 [192.168.60.8]
debug: lka: looking up pki "serv1.example.com"
debug: session_start_ssl: switching to SSL
smtp-in: Started TLS on session c4bbeb34c522e072: version=TLSv1/SSLv3,
cipher=DHE-RSA-AES128-SHA, bits=128
debug: lka: authenticating for vuserspasswd:foo
smtpd: session_imsg: unexpected IMSG_LKA_AUTHENTICATE imsg
warn: lka -> pony: pipe closed
warn: parent -> pony: pipe closed
warn: control -> pony: pipe closed
warn: scheduler -> control: pipe closed
bash-4.3# warn: queue -> pony: pipe closed
</SNIP>

And OpenSMTPD is crashed.

Is this a bug or have I messed up the configuration?

Kind regards.

Reply via email to