This is a discussion on postfix-install ignores DEF_CONFIG_DIR ?? within the alt.comp.mail.postfix forums, part of the Mail Servers and Related category; I'm building postfix-2.3.4 from source. It will replace the older Postfix from Debian stable. make makefiles \ ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
I'm building postfix-2.3.4 from source. It will replace the older Postfix from Debian stable. make makefiles \ CCARGS='-DHAS_PCRE -DUSE_TLS -DHAS_PGSQL -I/usr/include/postgresql' \ ' -DDEF_CONFIG_DIR=\"/etc/postfix-2.3\"'\ AUXLIBS='-ldb -lpcre -lssl -lcrypto -lpq' I've changed some of the other -DDEF's but that's the relevant one. "make install" fails like this: Skipping /usr/local/share/html/postfix-2.3.4/virtual.8.html... postfix: fatal: open /etc/postfix/main.cf: No such file or directory make: *** [install] Error 1 The "postfix post-install" at the very end of postfix-install isn't being told where to find the new main.cf. I don't know if this is a bug or a feature I don't understand. Maybe it wants to use the old config file? But there wasn't one. He's supposed to think he's the first MTA ever installed on this host. This patch to postfix-install lets the install complete successfully. (The orig file has a today time stamp because I put some debug statements in it. No real changes.) *** postfix-install.orig 2006-11-12 20:06:17.000000000 -0800 --- postfix-install 2006-11-12 20:28:17.000000000 -0800 *************** *** 739,743 **** # post-install processing now. test -n "$install_root" || { ! bin/postfix post-install $post_install_options || exit 1 } --- 739,743 ---- # post-install processing now. test -n "$install_root" || { ! bin/postfix -c $CONFIG_DIRECTORY post-install $post_install_options || exit 1 } Traditionally, to preserve white space from the slings and arrows, Cameron |
|
|||
|
Cameron L. Spitzer wrote: Regarding "make install" problem when a directory other than /etc/postfix is used: > postfix: fatal: open /etc/postfix/main.cf: No such file or directory Good find. I was talking to a developer about it today, and I understand that it will get corrected in a future release. -- Greg |