* Viktor Dukhovni <postfix-users@postfix.org>: > On Thu, Sep 24, 2015 at 08:52:45AM +0200, Patrick Ben Koetter wrote: > > > Yesterday I ran into a situation where I tried to create a new postfix > > instance, but the *.proto files where missing (i.e. they were there, but in > > the wrong place): > > Distribution packaging problem? With Postfix 3.0 and later: > > $ grep proto conf/postfix-files > $meta_directory/main.cf.proto:f:root:-:644 > $meta_directory/master.cf.proto:f:root:-:644
ACK. My guess is it is a packaging problem and I ran into it because I happen to use multiple instances. > > Nevertheless the directories were created: > > > > # ls -ld /etc/postfix-test/ /var/lib/postfix-test/ /var/spool/postfix-test/ > > drwxr-xr-x 3 root root 4096 24. Sep 08:39 /etc/postfix-test/ > > drwx------ 2 root root 4096 24. Sep 08:39 /var/lib/postfix-test/ > > drwxr-xr-x 2 root root 4096 24. Sep 08:39 /var/spool/postfix-test/ > > > > But when I tried to remove them, postmulti claimed there wasn't an instance > > named postfix-test: > > > > # postmulti -i postfix-test -e destroy > > postmulti: fatal: No instance named postfix-test > > > > This left me in a kind of deadlock and I had to remove the directories > > manually. > > That can happen. We could test more pre-conditions, but ultimately, > the administrator may need to recover from situations where automated > deletion is risky. Agreed. I wouldn't reach out to test any thinkable situation. The problem I ran into seemed worth to test - at least to me. p@rick -- [*] sys4 AG https://sys4.de, +49 (89) 30 90 46 64 Franziskanerstraße 15, 81669 München Sitz der Gesellschaft: München, Amtsgericht München: HRB 199263 Vorstand: Patrick Ben Koetter, Marc Schiffbauer Aufsichtsratsvorsitzender: Florian Kirstein