valeriangalliat / nixos-mailz

Self-hosted email solution using NixOS.
3 stars 1 forks source link

Doesn't work with nixos 16.09 #1

Open yorickvP opened 8 years ago

yorickvP commented 8 years ago
smtpd[3953]: info: OpenSMTPD 5.9.2p1 starting
smtpd[3953]: fatal: filter-regex: bogus argument(s)
smtpd[3953]: filter-spamassassin: invalid option -- 'd'
smtpd[3953]: filter-pause: invalid option -- 'd'
smtpd[3953]: warn: pony -> filter-regex: imsg_read: Connection reset by peer
smtpd[3953]: fatal: exiting: Connection reset by peer
smtpd[3953]: warn: lost child: pony express exited abnormally
smtpd[3953]: info: queue handler exiting
smtpd[3953]: info: scheduler handler exiting
smtpd[3953]: info: control process exiting
smtpd[3953]: info: ca agent exiting
smtpd[3953]: info: lookup agent exiting
systemd[1]: opensmtpd.service: Main process exited, code=exited, status=1/FAILURE
smtpd[3953]: warn: parent terminating
systemd[1]: opensmtpd.service: Unit entered failed state.
valeriangalliat commented 8 years ago

Hmm I didn't upgrade to 16.09 yet but I saw this bug before, if I remember, it's a bug in OpenSMTPD that adds filter arguments to all filters instead of just one (like here https://github.com/valeriangalliat/nixos-mailz/blob/d863391fc38feb12ed700264309c503afd7b116d/default.nix#L178) and result in unknown arguments for other filters, I'm not sure how I fixed this though.

Or maybe that was when I stopped using unstable channel thinking this bug would not make it to stable. :(

You can try forcing OpenSMTPD in 5.7.3p2, that's the one I'm using for now.

valeriangalliat commented 8 years ago

Or might be worth trying with OpenSMTPD 6.0.0 that was just released, if you do tell me if either the downgrade or the 6.0.0 version worked. :smile:

yorickvP commented 8 years ago

I switched it out for postfix+rmilter+rspamd. My config's not perfect yet (no actual spam checking and no dkim because of some FS permission quirks) but I'll share it sometime this week.

yorickvP commented 8 years ago

https://github.com/yorickvP/yori-nix/blob/master/modules/mailz.nix I fixed dkim, I think, still not sure how to do spam checking. Maybe it'll be useful for you.

valeriangalliat commented 8 years ago

Upgraded to NixOS 16.09, got the same filter arguments bug with OpenSMTPd 6.0.0p1.

As a temporary solution I just disabled all filters, but I'll try to look at OpenSMTPd source code to find out about this bug with filter options...