postfix-install ignores DEF_CONFIG_DIR ??

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 \ ...


Go Back   Usenet Forums > Mail Servers and Related > alt.comp.mail.postfix

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 11-13-2006
Cameron L. Spitzer
 
Posts: n/a
Default postfix-install ignores DEF_CONFIG_DIR ??


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






Reply With Quote
  #2 (permalink)  
Old 11-14-2006
Greg Hackney
 
Posts: n/a
Default Re: postfix-install ignores DEF_CONFIG_DIR ??


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
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 01:56 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0