On Thu, Sep 11, 2014 at 09:24:38AM -0700, Den wrote:

Do not post main.cf files.  Rather, post or attach output of
"postconf -n" that is not line-wrapped after cut/paste, you
need to post it with the original line-breaks preserved.

> # Debian specific:  Specifying a file name will cause the first
> # line of that file to be used as the name.  The Debian default
> # is /etc/mailname.
> myorigin = $mydomain
> #myhostname = localhost
> myhostname = 

This cannot be your active main.cf file, since Postfix enforces a
non-empty setting for myhostname.

    ... bash used below for sub-process file handles <( ... ) ...

    $ touch /tmp/master.cf
    $ echo "myhostname =" > /tmp/main.cf

    $ postconf -c /tmp -n
    config_directory = /tmp
    myhostname =

    $ postmap -c /tmp -q "foo" pcre:<(echo '/foo/ bar')
    postmap: fatal: bad string length 0 < 1: myhostname =

    $ echo "myhostname = bogus" > /tmp/main.cf
    $ postmap -c /tmp -q "foo" pcre:<(echo '/foo/ bar')
    bar

Similar fatal errors would break pretty much everything other than
postconf(1).

-- 
        Viktor.

Reply via email to