Bug 1849596
| Summary: | Spamassassin 3.4.4+ crashes when demonised with spamd | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Gerard Earley <gerard.earley> |
| Component: | spamassassin | Assignee: | Kevin Fenzi <kevin> |
| Status: | CLOSED NOTABUG | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | high | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 31 | CC: | jskarvad, kevin, nb, olysonek |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2020-07-01 09:26:32 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Gerard Earley
2020-06-22 11:06:43 UTC
Thanks for the report. It looks like it's a relatively old problem - I was able to reproduce it with spamassassin-3.4.1-25.fc29 too. (In reply to Ondřej Lysoněk from comment #1) > Thanks for the report. It looks like it's a relatively old problem - I was > able to reproduce it with spamassassin-3.4.1-25.fc29 too. NP, it's my first report after many happy years use, I'm glad I wasn't beeing a noob 😁 The last version I found that worked without this issue was spamassassin-3.4.2-2.fc29, which has left me unable to upgrade past fc29. If a patch or workaround exists allowing me to upgrade past fc29 I'd appreciate someone more experience than me letting me know. Thanks. (In reply to Gerard Earley from comment #2) > NP, it's my first report after many happy years use, I'm glad I wasn't > beeing a noob 😁 You did just fine :). But if I may suggest something, always fill out the "Version of the affected component" field, even if it seems unnecessary. > If a patch or workaround exists allowing me to upgrade past fc29 I'd > appreciate someone more experience than me letting me know. Do you really need spamd to daemonize? If not, you could simply drop the '-d' option from sysconfig. If you do need it, then you also need to tell systemd that spamassassin is a forking service. To do that, you would put something like the following to the spamassassin service file (note that this needs to go to /etc, otherwise it'll get overwritten on update): Type=forking PIDFile=/var/run/spamassassin.pid and pass a '--pidfile /var/run/spamassassin.pid' option to spamd, e.g. through the sysconfig file. Does that solve the problem for you? (I don't know how I didn't realize this before, but this is not really a bug, just misconfiguration.) Works perfectly, thanks 👍 And for future reference my /usr/lib/systemd/system/spamassassin.service now is [Unit] Description=Spamassassin daemon After=syslog.target network.target Wants=sa-update.timer [Service] Type=forking PIDFile=/var/run/spamassassin.pid EnvironmentFile=-/etc/sysconfig/spamassassin ExecStart=/usr/bin/spamd $SPAMDOPTIONS StandardOutput=null StandardError=null Restart=always [Install] WantedBy=multi-user.target and my /etc/sysconfig/spamassassin is # Options to spamd SPAMDOPTIONS="-q -x -d -c -m1 -H -u spamd --razor-home-dir='/var/lib/razor/' --razor-log-file='sys-syslog' -s /var/log/maillog --pidfile /var/run/spamassassin.pid" I'm now purring along on FC32 and everything is five by five. Thanks again. That's great to hear, thanks. One more thing I realized now: you may want to use /run/spamassassin.pid instead of /var/run/spamassassin.pid, because systemd has recently started complaining in the journal about uses of /var/run. |