Yep, I'm replying to an old question.
.......

OP, just following up, were you able to resolve your issues?

If so, can you post a summary please.

Jerry




On 01/15/15 12:59 PM, post...@outputservices.com wrote:
I am attempting to install postfix-2.11.3 on a Solaris 10 x86 machine.

I want to use dovecot and postfix exclusively and not use the standard Solaris
sendmail programs and such.

I want to place all my postfix files in the following directory:
     /usr/local/tools/postfix

Never mind the issue of programs such as mailq, sendmail, newaliases, etc
I can make links to the proper places these really need to be. I want to
consolidate all my postfix files in this one area and not spread out in
different locations.

I can compile postfix just fine using the following commands:

/bin/sh
LD_LIBRARY_PATH=
export LD_LIBRARY_PATH

gmake tidy

/usr/sfw/bin/gmake makefiles CC=/usr/sfw/bin/gcc \
CCARGS="-DEF_CONFIG_DIR=\"/usr/local/tools/postfix/etc\" \
-DEF_COMMAND_DIR=\"/usr/local/tools/postfix/bin\" \
-DEF_DAEMON_DIR=\"/usr/local/tools/postfix/libexec\" \
-DEF_DATA_DIR=\"/usr/local/tools/postfix/lib\" \
-DEF_MANPAGE_DIR=\"/usr/local/tools/postfix/man\" \
-DEF_NEWALIAS_PATH=\"/usr/sbin/newaliases\" \
-DEF_QUEUE_DIR=\"/usr/local/tools/postfix/mqueue\" \
-DNO_IPV6 -DNO_NIS \
-I/usr/local/include -I/usr/local/openldap/include  -DHAS_LDAP \
-DUSE_SASL_AUTH -DEF_SERVER_SASL_TYPE=\"dovecot\" " \
AUXLIBS="-L/usr/local/lib -R/usr/local/lib -lldap \
-L/usr/local/lib -R/usr/local/lib -llber -L/usr/local/openldap/lib 
-R/usr/local/openldap/lib"


However when I attempt to install postfix via make install in my 
/usr/local/tools/postfix
I specified on the compile settings I get the following.

email ROOT [/tmp/postfix-2.11.3]# gmake install
/bin/sh postfix-install

     Warning: if you use this script to install Postfix locally, this
     script will replace existing sendmail or Postfix programs.  Make
     backups if you want to be able to recover.

     Before installing files, this script prompts you for some
     definitions.  Most definitions will be remembered, so you have to
     specify them only once. All definitions should have a reasonable
     default value.

Please specify the prefix for installed file names. Specify this ONLY
if you are building ready-to-install packages for distribution to OTHER
machines. See PACKAGE_README for instructions.
install_root: [/]  /usr/local/tools/postfix

Please specify a directory for scratch files while installing Postfix.
You must have write permission in this directory.
tempdir: [/tmp/postfix-2.11.3]  /tmp/post_install_tmp

Please specify the final destination directory for installed Postfix
configuration files.
config_directory: [/etc/postfix]  /usr/local/tools/postfix/etc

Please specify the final destination directory for installed Postfix
administrative commands. This directory should be in the command search
path of adminstrative users.
command_directory: [/usr/sbin]  /usr/local/tools/postfix/bin

Please specify the final destination directory for installed Postfix
daemon programs. This directory should not be in the command search
path of any users.
daemon_directory: [/usr/libexec/postfix]  /usr/local/tools/postfix/libexec

Please specify the final destination directory for Postfix-writable
data files such as caches or random numbers. This directory should not
be shared with non-Postfix software.
data_directory: [/var/lib/postfix]  /usr/local/tools/postfix/lib

Please specify the final destination directory for the Postfix HTML
files. Specify "no" if you do not want to install these files.
html_directory: [no]

Please specify the owner of the Postfix queue. Specify an account with
numerical user ID and group ID values that are not used by any other
accounts on the system.
mail_owner: [postfix]

Please specify the final destination pathname for the installed Postfix
mailq command. This is the Sendmail-compatible mail queue listing
command.
mailq_path: [/usr/bin/mailq]  /usr/local/tools/postfix/bin/mailq

Please specify the final destination directory for the Postfix on-line
manual pages. You can no longer specify "no" here.
manpage_directory: [/usr/local/man]  /usr/local/tools/postfix/man

Please specify the final destination pathname for the installed Postfix
newaliases command. This is the Sendmail-compatible command to build
alias databases for the Postfix local delivery agent.
newaliases_path: [/usr/bin/newaliases]  /usr/local/tools/postfix/bin/newaliases

Please specify the final destination directory for Postfix queues.
queue_directory: [/var/spool/postfix]  /usr/local/tools/postfix/mqueue

Please specify the final destination directory for the Postfix README
files. Specify "no" if you do not want to install these files.
readme_directory: [no]

Please specify the final destination pathname for the installed Postfix
sendmail command. This is the Sendmail-compatible mail posting
interface.
sendmail_path: [/usr/lib/sendmail]  /usr/local/tools/postfix/bin/sendmail

Please specify the group for mail submission and for queue management
commands. Specify a group name with a numerical group ID that is not
shared with other accounts, not even with the Postfix mail_owner
account. You can no longer specify "no" here.
setgid_group: [postdrop]
Updating /usr/local/tools/postfix/usr/local/tools/postfix/libexec/anvil...
.
.
.
Updating 
/usr/local/tools/postfix/usr/local/tools/postfix/man/man8/trivial-rewrite.8...
Updating /usr/local/tools/postfix/usr/local/tools/postfix/man/man8/verify.8...
Updating /usr/local/tools/postfix/usr/local/tools/postfix/man/man8/virtual.8...
email ROOT [/tmp/postfix-2.11.3]#


But now I have /usr/local/tools/postfix/usr/local/tools/postfix directory. 
Double what it should be.

So I install with a root of (/) but specify the others in the 
/usr/local/tools/postfix location, I
get this error.

email ROOT [/tmp/postfix-2.11.3]# gmake install
/bin/sh postfix-install

     Warning: if you use this script to install Postfix locally, this
     script will replace existing sendmail or Postfix programs.  Make
     backups if you want to be able to recover.

     Before installing files, this script prompts you for some
     definitions.  Most definitions will be remembered, so you have to
     specify them only once. All definitions should have a reasonable
     default value.

Please specify the prefix for installed file names. Specify this ONLY
if you are building ready-to-install packages for distribution to OTHER
machines. See PACKAGE_README for instructions.
install_root: [/]

Please specify a directory for scratch files while installing Postfix.
You must have write permission in this directory.
tempdir: [/tmp/postfix-2.11.3]  /tmp/post_install_tmp

Please specify the final destination directory for installed Postfix
configuration files.
config_directory: [/etc/postfix]  /usr/local/tools/postfix/etc

Please specify the final destination directory for installed Postfix
administrative commands. This directory should be in the command search
path of adminstrative users.
command_directory: [/usr/sbin]  /usr/local/tools/postfix/bin

Please specify the final destination directory for installed Postfix
daemon programs. This directory should not be in the command search
path of any users.
daemon_directory: [/usr/libexec/postfix]  /usr/local/tools/postfix/libexec

Please specify the final destination directory for Postfix-writable
data files such as caches or random numbers. This directory should not
be shared with non-Postfix software.
data_directory: [/var/lib/postfix]  /usr/local/tools/postfix/lib

Please specify the final destination directory for the Postfix HTML
files. Specify "no" if you do not want to install these files.
html_directory: [no]

Please specify the owner of the Postfix queue. Specify an account with
numerical user ID and group ID values that are not used by any other
accounts on the system.
mail_owner: [postfix]

Please specify the final destination pathname for the installed Postfix
mailq command. This is the Sendmail-compatible mail queue listing
command.
mailq_path: [/usr/bin/mailq]  /usr/local/tools/postfix/bin/mailq

Please specify the final destination directory for the Postfix on-line
manual pages. You can no longer specify "no" here.
manpage_directory: [/usr/local/man]  /usr/local/tools/postfix/man

Please specify the final destination pathname for the installed Postfix
newaliases command. This is the Sendmail-compatible command to build
alias databases for the Postfix local delivery agent.
newaliases_path: [/usr/bin/newaliases]  /usr/local/tools/postfix/bin/newaliases

Please specify the final destination directory for Postfix queues.
queue_directory: [/var/spool/postfix]  /usr/local/tools/postfix/mqueue

Please specify the final destination directory for the Postfix README
files. Specify "no" if you do not want to install these files.
readme_directory: [no]

Please specify the final destination pathname for the installed Postfix
sendmail command. This is the Sendmail-compatible mail posting
interface.
sendmail_path: [/usr/lib/sendmail]  /usr/local/tools/postfix/bin/sendmail

Please specify the group for mail submission and for queue management
commands. Specify a group name with a numerical group ID that is not
shared with other accounts, not even with the Postfix mail_owner
account. You can no longer specify "no" here.
setgid_group: [postdrop]
Updating /usr/local/tools/postfix/libexec/anvil...
.
.
.
Updating /usr/local/tools/postfix/man/man8/trivial-rewrite.8...
Updating /usr/local/tools/postfix/man/man8/verify.8...
Updating /usr/local/tools/postfix/man/man8/virtual.8...
postfix: fatal: open /etc/postfix/main.cf: No such file or directory
gmake: *** [install] Error 1
email ROOT [/tmp/postfix-2.11.3]#
email ROOT [/tmp]# ls -l /usr/local/tools/postfix/etc/main.cf
-rw-r--r--   1 root     root       26373 Jan 15 11:35 
/usr/local/tools/postfix/etc/main.cf
email ROOT [/tmp]#


The main.cf file is there in the /usr/local/tools/postfix/etc directory.

Any suggestions to get the postfix files in the directory I want and still find 
the main.cf file.

Reply via email to