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

> 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.

-- 
        Viktor.

Reply via email to