[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#793331: RFS: postsrsd/1.2-1 [ITP]



Hi,

On 15-08-15 12:21, Tomasz Buchert wrote:
I've tested the AppArmor profile too, it looks fine, although I'm not
sure if 'm' is needed in the profile for '/usr/sbin/postsrsd', since
it seems to work just fine without it.  I've a rather basic knowledge
about AppArmor, so if you could explain it to me, I'd be grateful.
I'm not sure about it either, I just copied the AppArmor profile from upstream. Judging from the AppArmor docs it's indeed not needed, I'll do some further research tomorrow and remove it if possible.

And the last thing: in the systemd unit, you do:

    -d$${SRS_DOMAIN:-$$(postconf -h mydomain 2>/dev/null)}

Well, first if SRS_DOMAIN is set to something that it's fine, if it's not,
then postconf is used to get the mail server domain. But postconf may not
be present! You probably need to depend on postfix, unless postsrsd can be used
with other mail software.
Technically postsrsd can be used with other mail servers too, though I doubt it will happen in practice. Is it really a problem if postconf is called when it's not present, though? Its output is silenced, and postsrsd fails when the -d argument is empty anyway.

I'd also recommend using EnvironmentFile in your systemd unit [1].
The systemd unit is already loading /etc/default/postsrsd as EnvironmentFile, it's just the defaults that are in the systemd unit. Not sure why I did that though (I believe we usually don't support removing files from /etc/default), so they can be safely removed. I'll push a fix.

I also pushed some minor fixes.
Are you sure? I don't see any new commits in the collab-maint repository.

When this is done, I'll be happy to push your package,
I already use it myself for some time :).
That's great!

Cheers,
Oxan


Reply to: