OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
Re: [patch] "post-install" has forgotten to read data_directory value.

From: Wietse Venema (wietseporcupine.org)
Date: Thu Jan 31 2008 - 17:11:29 CST


Peter H. Coffin:
> > You MUST NOT invoke the post-install script directly.
>
> I've a similar problem. I just pulled down postfix-2.6-20080127, gave it
> my usual make makefiles, built it, and ran make upgrade only. Since this
> was overlaying postfix-2.5-20070614, I checked the data_directory
> creation.
>
> -----------------
> # ls -l /var/lib/
> total 8
> drwxr-x--- 2 root daemon 512 Jan 26 14:16 dovecot
> drwx------ 2 _postfix daemon 512 Jan 31 15:18 postfix
> -----------------
>
> I set main.cf to
>
> -----------------
> ...[rest of main.cf]...
>
> data_directory = /var/lib/postfix
> -----------------
>
> Save it and try to start postfix
> -----------------
> "main.cf" 787L, 30558C written
> $ tail main.cf
> check_recipient_access pcre:/etc/postfix/recipient_class.pcre
>
> smtpd_data_restrictions =
> reject_unauth_pipelining,
> reject_multi_recipient_bounce
> mime_header_checks = regexp:/etc/postfix/mime_header_checks.regexp
> body_checks = regexp:/etc/postfix/body_checks.regexp
> body_checks_size_limit = 307200
>
> data_directory = /var/lib/postfix
> $ sudo postfix start
> postsuper: fatal: bad string length 0 < 1: data_directory =
> postfix/postlog: fatal: bad string length 0 < 1: data_directory =
> $ tail main.cf
> check_recipient_access pcre:/etc/postfix/recipient_class.pcre
>
> smtpd_data_restrictions =
> reject_unauth_pipelining,
> reject_multi_recipient_bounce
> mime_header_checks = regexp:/etc/postfix/mime_header_checks.regexp
> body_checks = regexp:/etc/postfix/body_checks.regexp
> body_checks_size_limit = 307200
>
> data_directory =
> $

This makes no sense. "postfix start" does not change main.cf.
I installed versions of 20080127 on several *BSD and Linux systems.

        Wietse