Hi Adam, Adam Zimmerman <a...@digitalpirate.ca> writes:
> Hi all, > > I'm running a mail server that I recently migrated to GuixSD, and I > found this issue when trying to get opensmtpd set up. > > When using authentication from a table, opensmtpd would crash whenever I > tried to authenticate. I found this patch which fixes the issue. It's > already been merged into the opensmtpd master branch[1], and will be > fixed in the next release which apparently will be around > October/November this year. > > [1] https://github.com/OpenSMTPD/OpenSMTPD/pull/835 > > I also noticed another issue which I'm not 100% sure how to solve > properly. When rebooting the server, opensmtpd fails to start. I think > the reason is that the shepherd service only has '(loopback) listed in > its requirements, and I think it might be trying to start the server > before the network comes up. When I ssh into the server and start it > manually, it works fine. > > My first thought was to change the requirements to '(networking), but > could that cause issues for people who only use opensmtpd as a local > delivery server? I run OpenSMTPD 6.0.3p1 on GuixSD, I use authentication from a table, and none of the issues you described happened to me. Here is its configuration: --8<---------------cut here---------------start------------->8--- pki mail.lassieur.org certificate "/etc/smtpd/certs/fullchain.pem" pki mail.lassieur.org key "/etc/smtpd/certs/privkey.pem" table passwd file:/etc/mail/passwd listen on 0.0.0.0 port 25 tls pki mail.lassieur.org listen on 0.0.0.0 port 587 tls-require pki mail.lassieur.org auth <passwd> limit mta for domain gmail.com inet4 accept from local for any relay reject sender "@lassieur.org" for any accept from any for any relay via smtp://mail2.lassieur.org --8<---------------cut here---------------end--------------->8--- I don't understand why your setup would behave differently. Could you share a bit more of your configuration? Clément