Package: postfix
Version: 2.9.1-5

Setting the postfix/protocols question in preseed has no effect on the final 
postfix config after installation - it is ignored. The problem is that the 
postinst script checks to see if the "changed" flag is set on this question, 
and nothing is setting this flag.

For example, preseeding:
postfix postfix/protocols select  ipv4

results in a main.cf file with no inet_protocols parameter, which means the 
default - all - is used in postfix operation.

Looking at the postinst script, I think the fix is pretty trivial - setting the 
changed flag for postfix/protocols in fset_all_changed(). I'm attaching a patch 
that should take care of this.

For what it's worth, there's an open Ubuntu bug #583216 
(<https://bugs.launchpad.net/bugs/583216>) regarding this issue. It looks like 
this issue has existed for quite a long time - I looked back on my systems and 
can see it at least as far back as 2.2.10.

Attachment: postfix_protocols_preseed.patch
Description: Binary data


Reply via email to