1 最后由 livemoon (2012-05-07 17:15:49) 编辑

主题: FreeBSD 9x 下装iRedmail到postfix时脚本报错

==== 提供基本信息便于分析问题并得到快速回复 ====
- iRedMail 版本:iRedMail-0.7.4
- 使用的 Linux/BSD 发行版名称及版本号:FreeBSD 9.0
- 与您的问题相关的日志信息:
====

我认为应该是脚本里面哪里设置有问题:
在安装到postfix-2.7.9,1时会报个文件目录没有的错误,
===>  Building for postfix-2.7.9,1
rm -f libexec/post-install && ln -sf ../conf/post-install libexec/post-install
rm -f libexec/postfix-files && ln -sf ../conf/postfix-files libexec/postfix-files
rm -f libexec/postfix-script && ln -sf ../conf/postfix-script libexec/postfix-script
rm -f libexec/postfix-wrapper && ln -sf ../conf/postfix-wrapper libexec/postfix-wrapper
rm -f libexec/main.cf && ln -sf ../conf/main.cf libexec/main.cf
rm -f libexec/master.cf && ln -sf ../conf/master.cf libexec/master.cf
rm -f libexec/postmulti-script && ln -sf ../conf/postmulti-script libexec/postmulti-script
set -e; for i in src/util src/global src/dns src/tls src/xsasl src/milter src/master  src/postfix src/fsstone src/smtpstone  src/sendmail src/error src/pickup src/cleanup src/smtpd src/local  src/trivial-rewrite src/qmgr src/oqmgr src/smtp src/bounce  src/pipe src/showq src/postalias src/postcat src/postconf src/postdrop  src/postkick src/postlock src/postlog src/postmap src/postqueue  src/postsuper src/qmqpd src/spawn src/flush src/verify  src/virtual src/proxymap src/anvil src/scache src/discard src/tlsmgr  src/postmulti; do  (set -e; echo "[$i]"; cd $i; make 'CC=cc -DDEF_CONFIG_DIR=\"/usr/local/etc/postfix\" -DDEF_DAEMON_DIR=\"/usr/local/libexec/postfix\" -DDEF_COMMAND_DIR=\"/usr/local/sbin\" -DDEF_SENDMAIL_PATH=\"/usr/local/sbin/sendmail\" -DDEF_NEWALIAS_PATH=\"/usr/local/bin/newaliases\" -DDEF_MAILQ_PATH=\"/usr/local/bin/mailq\" -DDEF_MANPAGE_DIR=\"/usr/local/man\" -DDEF_README_DIR=\"/usr/local/share/doc/postfix\" -DDEF_HTML_DIR=\"/usr/local/share/doc/postfix\" -DDEF_QUEUE_DIR=\"/var/spool/postfix\" -DDEF_DATA_DIR=\"/var/db/postfix\" -DDEF_MAIL_OWNER=\"postfix\" -DDEF_SGID_GROUP=\"maildrop\" -DHAS_PCRE -I/usr/local/include -DUSE_SASL_AUTH -DDEF_SERVER_SASL_TYPE=\"dovecot\" -DUSE_TLS -I/usr/include -I/usr/local/include/db46 -DHAS_MYSQL -I/usr/local/include/mysql -DHAS_LDAP -I/usr/local/include -DHAS_CDB -I/usr/local/include' update MAKELEVEL=) || exit 1;  done
[src/util]
cc -DDEF_CONFIG_DIR=\"/usr/local/etc/postfix\" -DDEF_DAEMON_DIR=\"/usr/local/libexec/postfix\" -DDEF_COMMAND_DIR=\"/usr/local/sbin\" -DDEF_SENDMAIL_PATH=\"/usr/local/sbin/sendmail\" -DDEF_NEWALIAS_PATH=\"/usr/local/bin/newaliases\" -DDEF_MAILQ_PATH=\"/usr/local/bin/mailq\" -DDEF_MANPAGE_DIR=\"/usr/local/man\" -DDEF_README_DIR=\"/usr/local/share/doc/postfix\" -DDEF_HTML_DIR=\"/usr/local/share/doc/postfix\" -DDEF_QUEUE_DIR=\"/var/spool/postfix\" -DDEF_DATA_DIR=\"/var/db/postfix\" -DDEF_MAIL_OWNER=\"postfix\" -DDEF_SGID_GROUP=\"maildrop\" -DHAS_PCRE -I/usr/local/include -DUSE_SASL_AUTH -DDEF_SERVER_SASL_TYPE=\"dovecot\" -DUSE_TLS -I/usr/include -I/usr/local/include/db46 -DHAS_MYSQL -I/usr/local/include/mysql -DHAS_LDAP -I/usr/local/include -DHAS_CDB -I/usr/local/include NO -O2 -pipe -DLDAP_DEPRECATED -fno-strict-aliasing -I. -DFREEBSD9 -c alldig.c
cc: NO: No such file or directory
*** Error code 1

Stop in /usr/ports/mail/postfix27/work/postfix-2.7.9/src/util.
*** Error code 1

Stop in /usr/ports/mail/postfix27/work/postfix-2.7.9.
*** Error code 1

Stop in /usr/ports/mail/postfix27.
*** Error code 1

Stop in /usr/ports/mail/postfix27.
< ERROR > Port was not success installed, please fix it manually and then re-execute this script.
具体我现在通过手动安装,没有问题
然后在.iRedMail.installation.status里面加入
export status_install_port_mailpostfix27='DONE'
然后继续重新运行iRedmail.sh

请张工能告知是什么原因导致脚本跑到这里就报错呢

回复: FreeBSD 9x 下装iRedmail到postfix时脚本报错

这个是已知问题,在即将发布的 iRedMail-0.8.0 稳定版里已经修正了这个问题。
问题根源在于 iRedMail 设置了一个全局的 DEBUG 变量,而恰好 Postfix 的 Makefile 里也调用 DEBUG 参数。因此导致问题。

此问题存在了1年多时间,终于被修正。

回复: FreeBSD 9x 下装iRedmail到postfix时脚本报错

多谢你们的努力了