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: Victor Duchovni (Victor.DuchovniMorganStanley.com)
Date: Thu Jan 31 2008 - 16:33:01 CST


On Thu, Jan 31, 2008 at 05:09:22PM -0500, Victor Duchovni wrote:

> On Thu, Jan 31, 2008 at 03:54:32PM -0600, Peter H. Coffin wrote:
>
> > 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 =
> > $
> > -----------------
> >
> > I'm not sure, but it LOOKS like the postfix start is first wiping out
> > the data_directory = value, and then complaining that it doesn't have a
> > value long enough.
>
> "postfix start" does not modify main.cf. It runs "postfix-script" with
> the argument "start". This checks the spool and then starts the master
> daemons. The checks don't modify main.cf.

Are you sure you are running the *new* "postfix" binary? If using a POSIX
shell, report the output of:

    strings `type -p postfix` | grep mail_version=

The new postfix-script file has:

    for name in config_directory $MOST_PARAMETERS
    do
        eval test -n \${$name} || {
            echo "$0: Error: do not invoke this command directly" 1>&2
            echo Re-run this command as: postfix $0 ... 1>&2
            exit 1
        }
    done

this should catch missing "data_directory" initialization. Are you using
the wrong postfix-script?

Finally report the output of:

        postfix /bin/env | grep '^[a-z]' | sort

--
        Viktor.

Disclaimer: off-list followups get on-list replies or get ignored.
Please do not ignore the "Reply-To" header.

To unsubscribe from the postfix-users list, visit
http://www.postfix.org/lists.html or click the link below:
<mailto:majordomopostfix.org?body=unsubscribe%20postfix-users>

If my response solves your problem, the best way to thank me is to not
send an "it worked, thanks" follow-up. If you must respond, please put
"It worked, thanks" in the "Subject" so I can delete these quickly.