Summary: | mail-mta/postfix-3.1.2-r2 uses ReadWritePaths, which is introduced in systemd >= 231 only | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Christian Holpert <christian> |
Component: | Current packages | Assignee: | Eray Aslan <eras> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | candrews, christian, net-mail+disabled, pastas4, plevine457, williamh |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Christian Holpert
2017-03-16 11:37:07 UTC
I can confirm this. But all this does is give a non-fatal "fatal" error in the logs at the moment. However, why run newaliases on each run to begin with? Aliases don't normally change that often and it's standard practice to run newaliases manually once you change the aliases file, no? You're right about newaliases. My aliases file has not changed since 2011. But running newaliases automatically at postfix start will prevent you from forgetting to run it after changing the aliases file. I would vote for the automatic run. Having to run some command manually to make your changes work after editing files in /etc is at least not intuitive linux behaviour. With 'ExecStartPre=-/usr/bin/newaliases' in the systemd unit it is automated and that way intuitive in my eyes. After all the systemd unit brings in the newaliases-line which is not compatible with systemd <231 in conjunction with ReadWritePaths and Protectsystem=full. The problem as it appears on my end is that ReadWritePaths expects /etc/mail/aliases.db to exist. Depending on the database used, the name of this file may be different. From the ebuild: > ... > # do not assume berkdb > if [[ ! -e /etc/mail/aliases.db \ > && ! -e /etc/mail/aliases.cdb \ > && ! -e /etc/mail/aliases.lmdb ]] ; then > ... If the line in the service file > ReadWritePaths=-/etc/mail/aliases.db is changed to > ReadWritePaths=-/etc/mail/aliases.db -/etc/mail/aliases.cdb -/etc/mail/aliases.lmdb then the issue appears resolved. (In reply to Peter Levine from comment #3) > > ReadWritePaths=-/etc/mail/aliases.db -/etc/mail/aliases.cdb -/etc/mail/aliases.lmdb Thanks for the reminder. Should be fixed with 17d3ba5e. Closing as newaliases is run via the unit file. |